-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Simple widget editor that is hidden from extensions #46169
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,11 @@ export namespace EditorContextKeys { | |
*/ | ||
export const focus = new RawContextKey<boolean>('editorFocus', false); | ||
|
||
/** | ||
* A context key that is set when any editor input has focus (regular editor, repl input...). | ||
*/ | ||
export const inputFocus = new RawContextKey<boolean>('inputFocus', false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's ask in the stand-up what would be a good name. Perhaps |
||
|
||
export const readOnly = new RawContextKey<boolean>('editorReadonly', false); | ||
export const writable: ContextKeyExpr = readOnly.toNegated(); | ||
export const hasNonEmptySelection = new RawContextKey<boolean>('editorHasSelection', false); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ export class ReplInputEditor extends CodeEditorWidget { | |
@IContextKeyService contextKeyService: IContextKeyService, | ||
@IThemeService themeService: IThemeService | ||
) { | ||
super(domElement, options, instantiationService, codeEditorService, commandService, contextKeyService, themeService); | ||
super(domElement, options, true, instantiationService, codeEditorService, commandService, contextKeyService, themeService); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's postpone turning the flag to |
||
} | ||
|
||
protected _getContributions(): IEditorContributionCtor[] { | ||
|
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.
Absolute imports