-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose the current editor overtype state #236218
Comments
Also - please consider to not make this a setting directly but (from the model) local to the current editor window. This will allow to optionally provide a setting later (was already requested) to toggle overtype mode per editor, not for vscode altogether. |
@GitMensch Wouldn't that mean having two states? One global, and one per editor? If it's only going to be per editor, my request doesn't seem to make sense anymore. |
One per editor, with the overtype key(s) toggling either all editors at once (current behavior) or only a single one, depending on a new setting like It seems necessary to have an overtype state per editor in its "model" to be able to implement that option. |
Maybe I've never encountered the use case, but to me having n states for n editors seems unnecessary complex as built-in behavior. |
I'm fine with this approach (but in this case there should be a good way of using it by disabling the internal overtype handling - haven't tried but it seems there are problems with that). In theory that extension may could query/set the global state depending on the editor currently active - but for now we can't query/set the mode, as you've outlined in the topic start. |
When dealing with webviews using the standalone version of Monaco Editor, we'd like to align our environment with the current VS Code state. That means if the user is currently using
overtype
mode, that should be activated by default in our webviews.We'd like to have access to:
inputMode: 'insert' | 'overtype'
onDidChangeInputMode(...)
The text was updated successfully, but these errors were encountered: