Completion for tuple index doesn't need to include quotes (#26750)

This commit is contained in:
Andy
2018-08-29 16:38:42 -07:00
committed by GitHub
parent f78dc2ad11
commit cea49dfb0d
2 changed files with 21 additions and 0 deletions

View File

@@ -264,6 +264,9 @@ namespace ts.Completions {
}
function quote(text: string, preferences: UserPreferences): string {
if (/^\d+$/.test(text)) {
return text;
}
const quoted = JSON.stringify(text);
switch (preferences.quotePreference) {
case undefined: