Revert "feat(lsp): implement workspace/didChangeWatchedFiles (#21293)"

This reverts commit 5732aa706c.

Causes editor to freeze in projects with many watcher registrations
This commit is contained in:
Mathias Fussenegger
2023-02-25 11:17:28 +01:00
parent 5732aa706c
commit f0f27e9aef
9 changed files with 9 additions and 1279 deletions

View File

@@ -28,10 +28,6 @@ end
---@class lsp.MessageActionItem
---@field title string
---@class lsp.FileEvent
---@field uri string
---@field type lsp.FileChangeType
local constants = {
DiagnosticSeverity = {
-- Reports an error.
@@ -64,7 +60,6 @@ local constants = {
},
-- The file event type.
---@enum lsp.FileChangeType
FileChangeType = {
-- The file got created.
Created = 1,
@@ -846,10 +841,6 @@ function protocol.make_client_capabilities()
semanticTokens = {
refreshSupport = true,
},
didChangeWatchedFiles = {
dynamicRegistration = true,
relativePatternSupport = true,
},
},
experimental = nil,
window = {