File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ local function from_cache(node)
117
117
return { value = max_severity , cache_version = NODE_SEVERITIES_VERSION }
118
118
end
119
119
120
- --- Fired on DiagnosticChanged for a single buffer
120
+ --- Fired on DiagnosticChanged for a single buffer.
121
+ --- This will be called on set and reset of diagnostics.
122
+ --- On disabling LSP, a reset event will be sent for all buffers.
121
123
--- @param ev table standard event with data.diagnostics populated
122
124
function M .update_lsp (ev )
123
125
if not M .enable or not ev or not ev .data or not ev .data .diagnostics then
@@ -171,7 +173,7 @@ function M.update_coc()
171
173
return
172
174
end
173
175
utils .debounce (" CocDiagnosticChanged update" , M .debounce_delay , function ()
174
- local profile = log .profile_start (" diagnostics update" )
176
+ local profile = log .profile_start (" CocDiagnosticChanged update" )
175
177
NODE_SEVERITIES = from_coc ()
176
178
NODE_SEVERITIES_VERSION = NODE_SEVERITIES_VERSION + 1
177
179
if log .enabled (" diagnostics" ) then
You can’t perform that action at this time.
0 commit comments