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

QuoteStyle not respected for string literal types in implement interface #39332

Copy link
Copy link
@mjbvz

Description

@mjbvz
Issue body actions

From microsoft/vscode#101219

TypeScript Version: 4.0.0-dev.20200629

Search Terms:

Code
Using "typescript.preferences.quoteStyle": "single"

interface IFoo {
  a(x: 'abc') : void;
}

class Foo implements IFoo {

}

Run implement interface on Foo

Bug:
The parameter value uses double quotes:

class Foo implements IFoo {
  a(x: "abc"): void {
    throw new Error('Method not implemented.');
  }
}

Also, if typescript.preferences.quoteStyle is unset, it would be nice if we used the original quote style for implement interface

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptA bug in TypeScript

    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.