From 518b57c8b3d5b2123c7ee6f728588a56c00e0c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Fri, 3 May 2024 17:31:36 +0200 Subject: [PATCH] Added workaround for https://github.com/eclipse-theia/theia/issues/13679 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- examples/api-tests/src/typescript.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/api-tests/src/typescript.spec.js b/examples/api-tests/src/typescript.spec.js index ff2da90e99141..e6f08d28344b9 100644 --- a/examples/api-tests/src/typescript.spec.js +++ b/examples/api-tests/src/typescript.spec.js @@ -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);