Skip to content

Commit 2c861f3

Browse files
carsakillersumneko
authored andcommitted
fix: storage path should use OS dependent fsPath
1 parent e5244e6 commit 2c861f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

client/src/languageserver.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class LuaClient extends Disposable {
154154
codeLensViewReferences: true,
155155
fixIndents: true,
156156
languageConfiguration: true,
157-
storagePath: this.context.globalStorageUri.path,
157+
storagePath: this.context.globalStorageUri.fsPath,
158158
},
159159
};
160160

@@ -330,23 +330,23 @@ class LuaClient extends Disposable {
330330
if (typeof config !== 'object' || config === null) {
331331
return config;
332332
}
333-
333+
334334
for (const key in config) {
335335
if (config.hasOwnProperty(key)) {
336336
const value = config[key];
337-
337+
338338
if (typeof value === 'object' && value !== null) {
339339
convertStringsToRegex(value);
340340
}
341-
341+
342342
if (key === 'beforeText' || key === 'afterText') {
343343
if (typeof value === 'string') {
344344
config[key] = new RegExp(value);
345345
}
346346
}
347347
}
348348
}
349-
349+
350350
return config;
351351
}
352352

0 commit comments

Comments
 (0)