Skip to content

Commit 7469f1b

Browse files
committed
FIX double language server
1 parent 0aa7341 commit 7469f1b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[English Change Log](CHANGELOG_EN.md)
44

5+
# 0.6.4
6+
7+
`FIX` 修复双倍服务器的问题
8+
59
# 0.6.3
610

711
`NEW` 支持emmylua经典代码渲染

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "emmylua",
33
"displayName": "EmmyLua",
44
"description": "EmmyLua for vscode",
5-
"version": "0.6.3",
5+
"version": "0.6.4",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

src/extension.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ export function activate(context: vscode.ExtensionContext) {
3232
);
3333
if (!ctx.newLanguageServer) {
3434
javaExecutablePath = findJava();
35+
context.subscriptions.push(vscode.commands.registerCommand("emmy.restartServer", restartServer));
36+
context.subscriptions.push(vscode.commands.registerCommand("emmy.showReferences", showReferences));
37+
context.subscriptions.push(vscode.commands.registerCommand("emmy.stopServer", stopServer));
38+
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(onDidChangeConfiguration, null, context.subscriptions));
3539
}
36-
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(onDidChangeConfiguration, null, context.subscriptions));
3740
context.subscriptions.push(vscode.workspace.onDidChangeTextDocument(onDidChangeTextDocument, null, context.subscriptions));
3841
context.subscriptions.push(vscode.window.onDidChangeActiveTextEditor(onDidChangeActiveTextEditor, null, context.subscriptions));
39-
context.subscriptions.push(vscode.commands.registerCommand("emmy.restartServer", restartServer));
40-
context.subscriptions.push(vscode.commands.registerCommand("emmy.showReferences", showReferences));
41-
context.subscriptions.push(vscode.commands.registerCommand("emmy.insertEmmyDebugCode", insertEmmyDebugCode));
42-
context.subscriptions.push(vscode.commands.registerCommand("emmy.stopServer", stopServer));
4342

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

4646
configWatcher = new EmmyConfigWatcher();

0 commit comments

Comments
 (0)