mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fixing two more cases for promises in conditionals
This commit is contained in:
parent
3feb2ece1e
commit
1f567e10f3
|
@ -65,9 +65,7 @@ function getLanguageServiceHost(scriptKind: ts.ScriptKind) {
|
|||
return compilerOptions;
|
||||
},
|
||||
dispose() {
|
||||
if (jsLanguageService) {
|
||||
jsLanguageService.then(s => s.dispose());
|
||||
}
|
||||
jsLanguageService.then(s => s.dispose());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -355,7 +355,7 @@ class RequestRouter {
|
|||
for (let serverIndex = 0; serverIndex < this.servers.length; ++serverIndex) {
|
||||
const server = this.servers[serverIndex].server;
|
||||
|
||||
const request = server.executeImpl(command, args, { ...executeInfo, token });
|
||||
const request = server.executeImpl(command, args, { ...executeInfo, token }) as Promise<ServerResponse.Response<Proto.Response>> | undefined;
|
||||
if (serverIndex === 0) {
|
||||
firstRequest = request;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue