Skip to content

Optional methods in vscode.d.ts should be methods and not fields #11203

@joaomoreno

Description

@joaomoreno

Regular methods in interfaces appear as:

provideWorkspaceSymbols(query: string, token: CancellationToken): SymbolInformation[] | Thenable<SymbolInformation[]>;

Optional methods appear as fields:

resolveWorkspaceSymbol?: (symbol: SymbolInformation, token: CancellationToken) => SymbolInformation | Thenable<SymbolInformation>;

It's supported, so I suggest to show them like:

resolveWorkspaceSymbol?(symbol: SymbolInformation, token: CancellationToken): SymbolInformation | Thenable<SymbolInformation>;

Metadata

Metadata

Assignees

Labels

apidebtCode quality issuesuxUser experience issues

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