mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
@@ -59,7 +59,6 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
|
||||
let syntax = emmetMode;
|
||||
|
||||
const helper = getEmmetHelper();
|
||||
let validateLocation = syntax === 'html' || syntax === 'jsx' || syntax === 'xml';
|
||||
let rootNode: Node | undefined;
|
||||
let currentNode: Node | undefined;
|
||||
@@ -67,6 +66,13 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
const lsDoc = toLSTextDocument(document);
|
||||
position = document.validatePosition(position);
|
||||
|
||||
// Don't show completions if there's a comment at the beginning of the line
|
||||
const lineRange = new vscode.Range(position.line, 0, position.line, position.character);
|
||||
if (document.getText(lineRange).trimStart().startsWith('//')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const helper = getEmmetHelper();
|
||||
if (syntax === 'html') {
|
||||
if (context.triggerKind === vscode.CompletionTriggerKind.TriggerForIncompleteCompletions) {
|
||||
switch (this.lastCompletionType) {
|
||||
|
||||
Reference in New Issue
Block a user