diff options
Diffstat (limited to 'server-beta/src/proto/provider.lua')
-rw-r--r-- | server-beta/src/proto/provider.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server-beta/src/proto/provider.lua b/server-beta/src/proto/provider.lua index 3fdbd34c..4eb1a669 100644 --- a/server-beta/src/proto/provider.lua +++ b/server-beta/src/proto/provider.lua @@ -110,6 +110,9 @@ proto.on('workspace/configuration', function () updateConfig() end) +proto.on('workspace/didChangeWatchedFiles', function (params) +end) + proto.on('textDocument/didOpen', function (params) local doc = params.textDocument local uri = doc.uri @@ -122,6 +125,9 @@ proto.on('textDocument/didClose', function (params) local doc = params.textDocument local uri = doc.uri files.close(uri) + if not files.isLua(uri) then + files.remove(uri) + end end) proto.on('textDocument/didChange', function (params) |