Skip to content

Commit

Permalink
Merge pull request dotnet#47 from microsoft/merge-omnisharp-lsp-engine
Browse files Browse the repository at this point in the history
Merge omnisharp lsp engine
  • Loading branch information
JoeRobich authored Oct 27, 2022
2 parents 7e89db0 + 5197397 commit 1bcbed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/omnisharp/engines/LspEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Events, OmniSharpServer } from '../server';
import { IEngine } from './IEngine';
import { PlatformInformation } from '../../platform';
import { IHostExecutableResolver } from '../../constants/IHostExecutableResolver';
import { Command, DynamicFeature, LanguageClientOptions, RequestType0, StaticFeature, Trace } from 'vscode-languageclient';
import { Command, DynamicFeature, LanguageClientOptions, RequestType, StaticFeature, Trace } from 'vscode-languageclient';
import { LanguageClient, ServerOptions } from 'vscode-languageclient/node';
import { SelectionRangeFeature } from 'vscode-languageclient/lib/common/selectionRange';
import { ColorProviderFeature } from 'vscode-languageclient/lib/common/colorProvider';
Expand Down Expand Up @@ -296,10 +296,10 @@ export class LspEngine implements IEngine {
return this._initializeTask;

async function waitForReady(client: LanguageClient) {
const readyStatus = new RequestType0<boolean, void>(
const statusRequest = new RequestType<{}, boolean, void>(
'o#/checkreadystatus'
);
while (!(await client.sendRequest(readyStatus))) {
while (!await client.sendRequest(statusRequest, {})) {
await new Promise((r) => setTimeout(r, 100));
}
}
Expand Down

0 comments on commit 1bcbed2

Please sign in to comment.