-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
rm terminal tab focus mode #192000
rm terminal tab focus mode #192000
Conversation
Pull request was converted to draft
@Tyriar not sure, but think you missed this |
@@ -726,7 +726,7 @@ export interface IEditorOptions { | |||
pasteAs?: IPasteAsOptions; | |||
|
|||
/** | |||
* Controls whether the editor receives tabs or defers them to the workbench for navigation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't mention terminal anywhere in vs/editor
@@ -3690,7 +3690,7 @@ declare namespace monaco.editor { | |||
*/ | |||
pasteAs?: IPasteAsOptions; | |||
/** | |||
* Controls whether the editor receives tabs or defers them to the workbench for navigation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really shouldn't mention terminal here as it's monaco's public API where a terminal doesn't exist.
if (tabFocusMode !== undefined) { | ||
this.onTabFocusModeChange(tabFocusMode); | ||
} else { | ||
this.onTabFocusModeChange(this.configurationService.getValue('editor.tabFocusMode')); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice imo:
this.onTabFocusModeChange(tabFocusMode ?? this.configurationService.getValue('editor.tabFocusMode'));
fixes #191938