Skip to content

Commit d504733

Browse files
committed
0.9.11
1 parent 50c6c39 commit d504733

File tree

6 files changed

+14
-31
lines changed

6 files changed

+14
-31
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[中文Log](CHANGELOG_CN.md)
44

5+
# 0.9.11
6+
7+
`FIX` Fix mac path issue
8+
59
# 0.9.10
610

711
`FIX` Fix generic table infer issue

CHANGELOG_CN.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
# 0.9.11
4+
5+
`FIX` 修复mac路径问题
6+
37
# 0.9.10
48

59
`FIX` 修复泛型表推断问题

build/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.default = {
22
emmyDebuggerVersion: '1.8.2',
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
4-
newLanguageServerVersion: "0.4.5",
4+
newLanguageServerVersion: "0.4.6",
55
newLanguageServerUrl: "https://github.com/CppCXY/emmylua-analyzer-rust/releases/download"
66
}

build/prepare.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ async function build() {
4343

4444
// new ls
4545
if (args[2].endsWith('.tar.gz')) {
46-
let name = args[2].substring(0, args[2].length - 7);
47-
await decompress(`temp/${args[2]}`, `server/${name}/`, { plugins: [decompressTargz()] });
48-
} else {
49-
await decompress(`temp/${args[2]}`, 'server/');
46+
await decompress(`temp/${args[2]}`, `server/`, { plugins: [decompressTargz()] });
47+
} else if (args[2].endsWith('.zip')) {
48+
await decompress(`temp/${args[2]}`, `server/`);
5049
}
5150
}
5251

package.json

Lines changed: 1 addition & 1 deletion
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.9.10",
5+
"version": "0.9.11",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

src/extension.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,6 @@ async function startServer() {
105105
});
106106
}
107107

108-
const serverPaths: { [key: string]: { [key: string]: string } } = {
109-
win32: {
110-
arm64: 'emmylua_ls-win32-arm64',
111-
x64: 'emmylua_ls-win32-x64',
112-
ia32: 'emmylua_ls-win32-ia32'
113-
},
114-
linux: {
115-
arm64: 'emmylua_ls-linux-aarch64-glibc.2.17',
116-
x64: 'emmylua_ls-linux-x64-glibc.2.17'
117-
},
118-
darwin: {
119-
arm64: 'emmylua_ls-darwin-arm64',
120-
x64: 'emmylua_ls-darwin-x64'
121-
}
122-
};
123-
124108
async function doStartServer() {
125109
const context = ctx.extensionContext;
126110
const clientOptions: LanguageClientOptions = {
@@ -148,16 +132,8 @@ async function doStartServer() {
148132
};
149133
} else {
150134
let platform = os.platform();
151-
let arch = os.arch();
152135
let executableName = platform === 'win32' ? 'emmylua_ls.exe' : 'emmylua_ls';
153-
154-
const serverDir = serverPaths[platform]?.[arch];
155-
if (!serverDir) {
156-
vscode.window.showErrorMessage(`Unsupported platform: ${platform} ${arch}`);
157-
return;
158-
}
159-
160-
const exe = path.join(context.extensionPath, 'server', serverDir, executableName);
136+
const exe = path.join(context.extensionPath, 'server', executableName);
161137

162138
if (platform !== 'win32') {
163139
fs.chmodSync(exe, '777');

0 commit comments

Comments
 (0)