diff options
Diffstat (limited to 'script/method/textDocument/didOpen.lua')
-rw-r--r-- | script/method/textDocument/didOpen.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/script/method/textDocument/didOpen.lua b/script/method/textDocument/didOpen.lua deleted file mode 100644 index 732ddacf..00000000 --- a/script/method/textDocument/didOpen.lua +++ /dev/null @@ -1,13 +0,0 @@ -local furi = require 'uri' - ---- @param lsp LSP ---- @param params table ---- @return boolean -return function (lsp, params) - local doc = params.textDocument - if #lsp.workspaces == 0 then - lsp:addWorkspace('root', furi.encode(furi.decode(doc.uri):parent_path())) - end - lsp:open(doc.uri, doc.version, doc.text) - return true -end |