Skip to content

completions for string literals don't follow quoteStyle preference #33377

Closed
@QuentinLemCode

Description

@QuentinLemCode

Template Info added by @mjbvz

TS Version: 3.7.0-dev.20190910

Search terms

  • intellisense
  • suggest, suggestions
  • quote
  • quoteStyle

Original report


Steps to Reproduce:

  1. In settings, set : "typescript.preferences.quoteStyle": "single"
  2. Create a file like this :
export enum E {
    VALID, INVALID
}

export interface a {
    test: keyof typeof E;
}

const a: a = {
    // should suggest with simple quote
    test: 
}
  1. Focus after 'test:' and launch suggestions with Ctrl+Space
  2. Choose first

Does this issue occur when all extensions are disabled?: Yes

Is there a way to autocomplete this with single quotes ? I haven't found any settings of this kind, except quoteStyle preferences.
Paramètres - Visual Studio Code 11_09_2019 15_49_24

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editor

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions