mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Merge pull request #168066 from microsoft/hediet/previous-crow
Addresses #166969
This commit is contained in:
commit
f6b21f5097
|
@ -13,7 +13,7 @@ import { InlineCompletionsHoverParticipant } from 'vs/editor/contrib/inlineCompl
|
|||
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { KeybindingsRegistry } from 'vs/platform/keybinding/common/keybindingsRegistry';
|
||||
|
||||
registerEditorContribution(GhostTextController.ID, GhostTextController, EditorContributionInstantiation.Eager);
|
||||
registerEditorContribution(GhostTextController.ID, GhostTextController, EditorContributionInstantiation.Eventually);
|
||||
registerEditorAction(TriggerInlineSuggestionAction);
|
||||
registerEditorAction(ShowNextInlineSuggestionAction);
|
||||
registerEditorAction(ShowPreviousInlineSuggestionAction);
|
||||
|
|
|
@ -49,10 +49,7 @@ export class GhostTextController extends Disposable {
|
|||
this.updateModelController();
|
||||
}));
|
||||
this._register(this.editor.onDidChangeConfiguration((e) => {
|
||||
if (e.hasChanged(EditorOption.suggest)) {
|
||||
this.updateModelController();
|
||||
}
|
||||
if (e.hasChanged(EditorOption.inlineSuggest)) {
|
||||
if (e.hasChanged(EditorOption.suggest) || e.hasChanged(EditorOption.inlineSuggest)) {
|
||||
this.updateModelController();
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue