Merge pull request #168066 from microsoft/hediet/previous-crow

Addresses #166969
This commit is contained in:
Henning Dieterichs 2022-12-05 13:09:39 +01:00 committed by GitHub
commit f6b21f5097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -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);

View file

@ -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();
}
}));