Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions client/src/languageserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class LuaClient extends Disposable {
codeLensViewReferences: true,
fixIndents: true,
languageConfiguration: true,
storagePath: this.context.globalStorageUri.path,
storagePath: this.context.globalStorageUri.fsPath,
},
};

Expand Down Expand Up @@ -330,23 +330,23 @@ 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);
}
}
}
}

return config;
}

Expand Down