Skip to content

Commit 48cd259

Browse files
committed
fix #601
1 parent bfb7d2e commit 48cd259

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"type": "lua",
2525
"request": "attach",
2626
"stopOnEntry": true,
27-
"address": "127.0.0.1:11413",
27+
"address": "127.0.0.1:11427",
2828
"outputCapture": [
2929
],
3030
"sourceMaps": [

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* `FIX` [#596](https://github.com/sumneko/lua-language-server/issues/596)
2929
* `FIX` [#597](https://github.com/sumneko/lua-language-server/issues/597)
3030
* `FIX` [#598](https://github.com/sumneko/lua-language-server/issues/598)
31+
* `FIX` [#601](https://github.com/sumneko/lua-language-server/issues/601)
3132

3233
## 2.2.3
3334
`2021-7-9`

script/client.lua

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function m.setConfig(changes, onlyMemory)
120120
finalChanges[#finalChanges+1] = change
121121
end
122122
end
123+
change.uri = m.info.rootUri
123124
end
124125
if onlyMemory then
125126
return

script/provider/diagnostic.lua

-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ local function askForDisable()
286286
key = 'Lua.diagnostics.workspaceDelay',
287287
action = 'set',
288288
value = delay * 1000,
289-
uri = ws.uri,
290289
}
291290
}
292291
elseif item.title == lang.script.WINDOW_DISABLE_DIAGNOSTIC then
@@ -295,7 +294,6 @@ local function askForDisable()
295294
key = 'Lua.diagnostics.workspaceDelay',
296295
action = 'set',
297296
value = -1,
298-
uri = ws.uri,
299297
}
300298
}
301299
end

script/provider/semantic-tokens.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ local function enable()
6969
key = 'editor.semanticHighlighting.enabled',
7070
action = 'set',
7171
value = true,
72-
isGlobal = true,
72+
global = true,
7373
}
7474
}
7575
end

script/service/telemetry.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function m.updateConfig()
135135
key = 'Lua.telemetry.enable',
136136
action = 'set',
137137
value = true,
138-
isGlobal = true,
138+
global = true,
139139
}
140140
}
141141
elseif item.title == disableTitle then
@@ -144,7 +144,7 @@ function m.updateConfig()
144144
key = 'Lua.telemetry.enable',
145145
action = 'set',
146146
value = false,
147-
isGlobal = true,
147+
global = true,
148148
}
149149
}
150150
end

script/workspace/workspace.lua

-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ local function loadFileFactory(root, progressData, isLibrary)
212212
action = 'set',
213213
value = config.get 'Lua.workspace.maxPreload'
214214
+ math.max(1000, config.get 'Lua.workspace.maxPreload'),
215-
uri = m.uri,
216215
}
217216
}
218217
end

0 commit comments

Comments
 (0)