Mark arrays readonly
This commit is contained in:
parent
9d25faad7f
commit
8c596fbf90
1 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,7 @@ function getSymbolKind(item: Proto.NavtoItem): vscode.SymbolKind {
|
||||||
class TypeScriptWorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
|
class TypeScriptWorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvider {
|
||||||
public constructor(
|
public constructor(
|
||||||
private readonly client: ITypeScriptServiceClient,
|
private readonly client: ITypeScriptServiceClient,
|
||||||
private readonly modeIds: string[]
|
private readonly modeIds: readonly string[]
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
public async provideWorkspaceSymbols(
|
public async provideWorkspaceSymbols(
|
||||||
|
@ -121,7 +121,8 @@ class TypeScriptWorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvide
|
||||||
|
|
||||||
export function register(
|
export function register(
|
||||||
client: ITypeScriptServiceClient,
|
client: ITypeScriptServiceClient,
|
||||||
modeIds: string[],
|
modeIds: readonly string[],
|
||||||
) {
|
) {
|
||||||
return vscode.languages.registerWorkspaceSymbolProvider(new TypeScriptWorkspaceSymbolProvider(client, modeIds));
|
return vscode.languages.registerWorkspaceSymbolProvider(
|
||||||
|
new TypeScriptWorkspaceSymbolProvider(client, modeIds));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue