From 03919a89fce6331ab127636bd6de7506d039f82f Mon Sep 17 00:00:00 2001 From: carsakiller Date: Fri, 25 Oct 2024 16:07:38 +0000 Subject: [PATCH] fix: storage path should use OS dependent fsPath --- client/src/languageserver.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/languageserver.ts b/client/src/languageserver.ts index 689b858..fb33548 100644 --- a/client/src/languageserver.ts +++ b/client/src/languageserver.ts @@ -154,7 +154,7 @@ class LuaClient extends Disposable { codeLensViewReferences: true, fixIndents: true, languageConfiguration: true, - storagePath: this.context.globalStorageUri.path, + storagePath: this.context.globalStorageUri.fsPath, }, }; @@ -330,15 +330,15 @@ class LuaClient extends Disposable { if (typeof config !== 'object' || config === null) { return config; } - + for (const key in config) { if (config.hasOwnProperty(key)) { const value = config[key]; - + if (typeof value === 'object' && value !== null) { convertStringsToRegex(value); } - + if (key === 'beforeText' || key === 'afterText') { if (typeof value === 'string') { config[key] = new RegExp(value); @@ -346,7 +346,7 @@ class LuaClient extends Disposable { } } } - + return config; }