Skip to content

Commit ad321b8

Browse files
committed
使用相对路径启动服务器时应该设置cwd
1 parent 3e243d1 commit ad321b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/languageserver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ class LuaClient extends Disposable {
183183
}
184184
: undefined,
185185
args: commandParam,
186+
options: {
187+
cwd: path.dirname(path.dirname(command)),
188+
},
186189
};
187190

188191
this.client = new LanguageClient(

0 commit comments

Comments
 (0)