File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,16 @@ export function isSupported(doc: vscode.TextDocument) {
4
4
return doc . uri . scheme === 'file' ;
5
5
}
6
6
7
- export function isNotNeeded ( doc : vscode . TextDocument , position : vscode . Position ) : boolean {
7
+ export function isNotNeeded ( doc : vscode . TextDocument , position : vscode . Position , context : vscode . InlineCompletionContext ) : boolean {
8
8
9
9
// Avoid autocomplete on empty lines
10
- const line = doc . lineAt ( position . line ) . text . trim ( ) ;
11
- if ( line . trim ( ) === '' ) {
10
+ // const line = doc.lineAt(position.line).text.trim();
11
+ // if (line.trim() === '') {
12
+ // return true;
13
+ // }
14
+
15
+ // Avoid autocomplete when system menu is shown (ghost text is hidden anyway)
16
+ if ( context . selectedCompletionInfo ) {
12
17
return true ;
13
18
}
14
19
You can’t perform that action at this time.
0 commit comments