mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Only trigger session when typing, not when the model context changes.
This commit is contained in:
parent
6832b7ec4b
commit
e9579534bb
|
@ -33,7 +33,7 @@ export class InlineCompletionsModel extends Disposable implements GhostTextWidge
|
|||
) {
|
||||
super();
|
||||
|
||||
this._register(this.editor.onDidChangeModelContent((e) => {
|
||||
this._register(this.editor.onDidType((e) => {
|
||||
if (this.session && !this.session.isValid) {
|
||||
this.hide();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue