Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@QuentinLemCode

Description

@QuentinLemCode
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.