Skip to content

Commit

Permalink
FIX double language server
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Apr 3, 2024
1 parent 0aa7341 commit 7469f1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

[English Change Log](CHANGELOG_EN.md)

# 0.6.4

`FIX` 修复双倍服务器的问题

# 0.6.3

`NEW` 支持emmylua经典代码渲染
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "emmylua",
"displayName": "EmmyLua",
"description": "EmmyLua for vscode",
"version": "0.6.3",
"version": "0.6.4",
"icon": "res/icon.png",
"publisher": "tangzx",
"engines": {
Expand Down
10 changes: 5 additions & 5 deletions src/extension.ts
Expand Up @@ -32,15 +32,15 @@ export function activate(context: vscode.ExtensionContext) {
);
if (!ctx.newLanguageServer) {
javaExecutablePath = findJava();
context.subscriptions.push(vscode.commands.registerCommand("emmy.restartServer", restartServer));
context.subscriptions.push(vscode.commands.registerCommand("emmy.showReferences", showReferences));
context.subscriptions.push(vscode.commands.registerCommand("emmy.stopServer", stopServer));
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(onDidChangeConfiguration, null, context.subscriptions));
}
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(onDidChangeConfiguration, null, context.subscriptions));
context.subscriptions.push(vscode.workspace.onDidChangeTextDocument(onDidChangeTextDocument, null, context.subscriptions));
context.subscriptions.push(vscode.window.onDidChangeActiveTextEditor(onDidChangeActiveTextEditor, null, context.subscriptions));
context.subscriptions.push(vscode.commands.registerCommand("emmy.restartServer", restartServer));
context.subscriptions.push(vscode.commands.registerCommand("emmy.showReferences", showReferences));
context.subscriptions.push(vscode.commands.registerCommand("emmy.insertEmmyDebugCode", insertEmmyDebugCode));
context.subscriptions.push(vscode.commands.registerCommand("emmy.stopServer", stopServer));

context.subscriptions.push(vscode.commands.registerCommand("emmy.insertEmmyDebugCode", insertEmmyDebugCode));
context.subscriptions.push(vscode.languages.setLanguageConfiguration("lua", new LuaLanguageConfiguration()));

configWatcher = new EmmyConfigWatcher();
Expand Down

0 comments on commit 7469f1b

Please sign in to comment.