summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/method/textDocument')
-rw-r--r--server/src/method/textDocument/completion.lua2
-rw-r--r--server/src/method/textDocument/definition.lua2
-rw-r--r--server/src/method/textDocument/hover.lua2
-rw-r--r--server/src/method/textDocument/implementation.lua2
-rw-r--r--server/src/method/textDocument/references.lua2
-rw-r--r--server/src/method/textDocument/rename.lua2
6 files changed, 6 insertions, 6 deletions
diff --git a/server/src/method/textDocument/completion.lua b/server/src/method/textDocument/completion.lua
index 33b994c7..9919bc63 100644
--- a/server/src/method/textDocument/completion.lua
+++ b/server/src/method/textDocument/completion.lua
@@ -2,7 +2,7 @@ local matcher = require 'matcher'
return function (lsp, params)
local uri = params.textDocument.uri
- local vm, lines = lsp:loadText(uri)
+ local vm, lines = lsp:loadVM(uri)
if not vm then
return {}
end
diff --git a/server/src/method/textDocument/definition.lua b/server/src/method/textDocument/definition.lua
index a40c1832..d2ff7c3f 100644
--- a/server/src/method/textDocument/definition.lua
+++ b/server/src/method/textDocument/definition.lua
@@ -2,7 +2,7 @@ local matcher = require 'matcher'
return function (lsp, params)
local uri = params.textDocument.uri
- local vm, lines = lsp:loadText(uri)
+ local vm, lines = lsp:loadVM(uri)
if not vm then
return {}
end
diff --git a/server/src/method/textDocument/hover.lua b/server/src/method/textDocument/hover.lua
index e25e56a1..33b90c7d 100644
--- a/server/src/method/textDocument/hover.lua
+++ b/server/src/method/textDocument/hover.lua
@@ -2,7 +2,7 @@ local matcher = require 'matcher'
return function (lsp, params)
local uri = params.textDocument.uri
- local vm, lines = lsp:loadText(uri)
+ local vm, lines = lsp:loadVM(uri)
if not vm then
return nil
end
diff --git a/server/src/method/textDocument/implementation.lua b/server/src/method/textDocument/implementation.lua
index 9b29d4ec..d0898f08 100644
--- a/server/src/method/textDocument/implementation.lua
+++ b/server/src/method/textDocument/implementation.lua
@@ -2,7 +2,7 @@ local matcher = require 'matcher'
return function (lsp, params)
local uri = params.textDocument.uri
- local vm, lines = lsp:loadText(uri)
+ local vm, lines = lsp:loadVM(uri)
if not vm then
return {}
end
diff --git a/server/src/method/textDocument/references.lua b/server/src/method/textDocument/references.lua
index ee62a9dc..f9df13ed 100644
--- a/server/src/method/textDocument/references.lua
+++ b/server/src/method/textDocument/references.lua
@@ -3,7 +3,7 @@ local matcher = require 'matcher'
return function (lsp, params)
local uri = params.textDocument.uri
local declarat = params.context.includeDeclaration
- local vm, lines = lsp:loadText(uri)
+ local vm, lines = lsp:loadVM(uri)
if not vm then
return {}
end
diff --git a/server/src/method/textDocument/rename.lua b/server/src/method/textDocument/rename.lua
index dca6cbe4..43f0f7cb 100644
--- a/server/src/method/textDocument/rename.lua
+++ b/server/src/method/textDocument/rename.lua
@@ -3,7 +3,7 @@ local matcher = require 'matcher'
return function (lsp, params)
local uri = params.textDocument.uri
local newName = params.newName
- local vm, lines = lsp:loadText(uri)
+ local vm, lines = lsp:loadVM(uri)
if not vm then
return {}
end