summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua24
1 files changed, 11 insertions, 13 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index c3826a69..a7a15b84 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -114,20 +114,18 @@ proto.on('initialized', function (params)
local registrations = {}
-- 监视文件变化
- if not client.info.capabilities.workspace.fileOperations then
- registrations[#registrations+1] = {
- id = 'workspace/didChangeWatchedFiles',
- method = 'workspace/didChangeWatchedFiles',
- registerOptions = {
- watchers = {
- {
- globPattern = '**/',
- kind = 1 | 2 | 4,
- }
- },
+ registrations[#registrations+1] = {
+ id = 'workspace/didChangeWatchedFiles',
+ method = 'workspace/didChangeWatchedFiles',
+ registerOptions = {
+ watchers = {
+ {
+ globPattern = '**/',
+ kind = 1 | 2 | 4,
+ }
},
- }
- end
+ },
+ }
-- 监视配置变化
registrations[#registrations+1] = {