fix(33377): use quoteStyle option for string literals completions (#36720)

This commit is contained in:
Alexander T authored and GitHub committed 2020-02-20 08:45:07 -08:00
1 parent d76380419d
commit c8147cb601
10 files changed
+149 -16

No files matched your search

+2 -2
View File
@@ -1490,9 +1490,9 @@ namespace ts {
);
}
function getCompletionEntrySymbol(fileName: string, position: number, name: string, source?: string): Symbol | undefined {
function getCompletionEntrySymbol(fileName: string, position: number, name: string, source?: string, preferences: UserPreferences = emptyOptions): Symbol | undefined {
synchronizeHostData();
return Completions.getCompletionEntrySymbol(program, log, getValidSourceFile(fileName), position, { name, source }, host);
return Completions.getCompletionEntrySymbol(program, log, getValidSourceFile(fileName), position, { name, source }, host, preferences);
}
function getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined {