We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94e046 commit 5513712Copy full SHA for 5513712
script/provider/provider.lua
@@ -1072,6 +1072,7 @@ m.register '$/status/click' {
1072
local result = client.awaitRequestMessage('Info', lang.script.WINDOW_LUA_STATUS_DIAGNOSIS_MSG, {
1073
titleDiagnostic,
1074
DEVELOP and 'Restart Server',
1075
+ DEVELOP and 'Clear Node Cache',
1076
})
1077
if not result then
1078
return
@@ -1085,6 +1086,11 @@ m.register '$/status/click' {
1085
1086
local diag = require 'provider.diagnostic'
1087
diag.clearAll(true)
1088
os.exit(0, true)
1089
+ elseif result == 'Clear Node Cache' then
1090
+ local vm = require 'vm'
1091
+ vm.clearNodeCache()
1092
+ collectgarbage()
1093
1094
end
1095
1096
}
0 commit comments