mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
@@ -44,7 +44,15 @@ class TypeScriptWorkspaceSymbolProvider implements vscode.WorkspaceSymbolProvide
|
||||
file: filepath,
|
||||
searchValue: search
|
||||
};
|
||||
const { body } = await this.client.execute('navto', args, token);
|
||||
|
||||
let response: Proto.NavtoResponse;
|
||||
try {
|
||||
response = await this.client.execute('navto', args, token);
|
||||
} catch {
|
||||
return [];
|
||||
|
||||
}
|
||||
const { body } = response;
|
||||
if (!body) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user