Skip to content

Commit

Permalink
Give more time for the ts server to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed May 10, 2024
1 parent 265c832 commit 7f68348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public void testJSFile() throws Exception {
file.create(new ByteArrayInputStream("ERROR".getBytes()), true, null);
ITextEditor editor = (ITextEditor) IDE
.openEditor(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(), file);
DisplayHelper.sleep(2000); // Give time for LS to initialize enough before making edit and sending a
// didChange
DisplayHelper.sleep(10000); // Give time for LS to initialize enough before making edit and sending a
// didChange
editor.getDocumentProvider().getDocument(editor.getEditorInput()).set("a<");
assertTrue(new DisplayHelper() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public Object getInitializationOptions(URI rootUri) {
if (!TYPESCRIPT_PREFERENCES_TSSERVER_TYPESCRIPT_VERSION_PROJECT.equals(getTypeScriptVersion())) {
Map<String, String> tsServer = new HashMap<>();
tsServer.put("path", tsserverPath);
tsServer.put("useSyntaxServer", "never");
options.put("tsserver", tsServer);
}
} catch (IOException e) {
Expand Down

0 comments on commit 7f68348

Please sign in to comment.