Skip to content

Commit 7fe56f1

Browse files
committed
Fix ContextFlags compile error
1 parent 69a0879 commit 7fe56f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/stringCompletions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function getStringLiteralCompletionEntries(sourceFile: SourceFile, node: StringL
434434
const uniques = new Set<string>();
435435
const stringLiteralTypes = concatenate(
436436
getStringLiteralTypes(typeChecker.getContextualType(node, ContextFlags.None), uniques),
437-
getStringLiteralTypes(typeChecker.getContextualType(node, ContextFlags.Completions), uniques),
437+
getStringLiteralTypes(typeChecker.getContextualType(node, ContextFlags.IgnoreNodeInferences), uniques),
438438
);
439439
return toStringLiteralCompletionsFromTypes(stringLiteralTypes);
440440
}

0 commit comments

Comments
 (0)