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;
|
return compilerOptions;
|
||||||
},
|
},
|
||||||
dispose() {
|
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) {
|
for (let serverIndex = 0; serverIndex < this.servers.length; ++serverIndex) {
|
||||||
const server = this.servers[serverIndex].server;
|
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) {
|
if (serverIndex === 0) {
|
||||||
firstRequest = request;
|
firstRequest = request;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue