mirror of
https://github.com/kiteco/vscode-plugin.git
synced 2024-09-11 16:08:10 +03:00
fix tests
This commit is contained in:
parent
b58f00b376
commit
f2ffd024b9
@ -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.
|
||||
|
@ -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,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user