Only trigger session when typing, not when the model context changes.

This commit is contained in:
Henning Dieterichs 2021-05-31 11:29:13 +02:00
parent 6832b7ec4b
commit e9579534bb
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06

View file

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