Skip to content

Commit

Permalink
Added workaround for eclipse-theia#13679
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <[email protected]>
  • Loading branch information
tsmaeder committed May 3, 2024
1 parent adead98 commit 518b57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/api-tests/src/typescript.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ describe('TypeScript', function () {
const editorWidget = widget instanceof EditorWidget ? widget : undefined;
const editor = MonacoEditor.get(editorWidget);
assert.isDefined(editor);
await timeout(1000); // workaround for https://github.com/eclipse-theia/theia/issues/13679
// wait till tsserver is running, see:
// https://github.com/microsoft/vscode/blob/93cbbc5cae50e9f5f5046343c751b6d010468200/extensions/typescript-language-features/src/extension.ts#L98-L103
await waitForAnimation(() => contextKeyService.match('typescript.isManagedFile'));
// wait till projects are loaded, see:
// await waitForAnimation(() => contextKeyService.match('typescript.isManagedFile'));
// https://github.com/microsoft/vscode/blob/4aac84268c6226d23828cc6a1fe45ee3982927f0/extensions/typescript-language-features/src/typescriptServiceClient.ts#L911
await waitForAnimation(() => !progressStatusBarItem.currentProgress);
return /** @type {MonacoEditor} */ (editor);
Expand Down

0 comments on commit 518b57c

Please sign in to comment.