Skip to content

Commit fe54a22

Browse files
committed
Remove redundant wait for Java language server start
1 parent ef3e8ad commit fe54a22

2 files changed

Lines changed: 2 additions & 72 deletions

File tree

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import { LibertyProject, ProjectProvider } from "./liberty/libertyProject";
1010
import { LanguageClientOptions } from "vscode-languageclient";
1111
import { LanguageClient } from "vscode-languageclient/node";
1212
import { workspace, commands, ExtensionContext, extensions, window, StatusBarAlignment, TextEditor } from "vscode";
13-
import { JAVA_EXTENSION_ID, waitForStandardMode } from "./util/javaServerMode";
1413
import { localize } from "./util/i18nUtil";
1514
import { RequirementsData, resolveRequirements, resolveLclsRequirements } from "./util/requirements";
1615
import { prepareExecutable } from "./util/javaServerStarter";
1716
import * as helperUtil from "./util/helperUtil";
1817
import path = require('path');
1918
import * as fs from "fs";
2019

20+
const JAVA_EXTENSION_ID = "redhat.java";
21+
2122
const LIBERTY_CLIENT_ID = "LANGUAGE_ID_LIBERTY";
2223
const JAKARTA_CLIENT_ID = "LANGUAGE_ID_JAKARTA";
2324
export const LIBERTY_LS_JAR = "liberty-langserver-2.3.2-jar-with-dependencies.jar";
@@ -37,7 +38,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
3738
* If java ls was started in lightweight mode, It will prompt user to switch
3839
*/
3940
const api: JavaExtensionAPI = await getJavaExtensionAPI();
40-
await waitForStandardMode(api);
4141

4242
const item = window.createStatusBarItem(StatusBarAlignment.Right, Number.MIN_VALUE);
4343
// item.name = "Liberty Language Server";

src/util/javaServerMode.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)