diff options
Diffstat (limited to 'server/src/workspace.lua')
-rw-r--r-- | server/src/workspace.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/workspace.lua b/server/src/workspace.lua index c2478e40..655dd873 100644 --- a/server/src/workspace.lua +++ b/server/src/workspace.lua @@ -175,6 +175,12 @@ function mt:reset() self.lsp:reCompile() end +function mt:relativePathByUri(uri) + local path = uriDecode(uri) + local relate = fs.relative(path, self.root) + return relate +end + return function (lsp, name, uri) local workspace = setmetatable({ lsp = lsp, |