fix tests

This commit is contained in:
Daniel Hung 2021-01-27 19:32:26 -08:00
parent b58f00b376
commit f2ffd024b9
2 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,7 @@ export default class KiteRelatedCodeDecorationsProvider {
if (typeof(this.editTimeout) === 'undefined' && (event.kind === TextEditorSelectionChangeKind.Command || event.kind === TextEditorSelectionChangeKind.Mouse)) {
// If timeout is not set (i.e. the decoration is already showing), and the cursor is moved by
// a non-edit event, then show the decoration immediately.
this.decorate(event);
await this.decorate(event);
} else {
// Otherwise, show the decoration after 1 second of inactivity.

View File

@ -3,6 +3,7 @@ import {
MarkdownString,
Position,
Selection,
TextEditorSelectionChangeKind,
workspace,
window,
} from 'vscode';
@ -126,7 +127,8 @@ async function setupDocument(
new Position(0,0),
new Position(0,0),
),
]
],
kind: TextEditorSelectionChangeKind.Mouse,
});
}
};