summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-17 03:55:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-17 03:55:36 +0800
commit059442e0c9f667ab73dc3eb5a9bebaa5fc6fe0f5 (patch)
treeab990640bd38d824601f915accaa4064da33ca9e /script/provider/provider.lua
parente2987aaff16365b5ef6201b5d9139ea1543eeba3 (diff)
downloadlua-language-server-059442e0c9f667ab73dc3eb5a9bebaa5fc6fe0f5.zip
cleanup local cache
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 018db0c3..2ac9fd55 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -6,7 +6,6 @@ local proto = require 'proto.proto'
local define = require 'proto.define'
local workspace = require 'workspace'
local config = require 'config'
-local library = require 'library'
local client = require 'client'
local pub = require 'pub'
local lang = require 'language'
@@ -19,10 +18,8 @@ local json = require 'json'
local scope = require 'workspace.scope'
local furi = require 'file-uri'
local inspect = require 'inspect'
-local markdown = require 'provider.markdown'
local guide = require 'parser.guide'
local fs = require 'bee.filesystem'
-local jumpSource = require 'core.jump-source'
---@async
local function updateConfig(uri)
@@ -105,7 +102,7 @@ filewatch.event(function (ev, path) ---@async
end)
m.register 'initialize' {
- function (params)
+ function(params)
client.init(params)
if params.rootUri then
@@ -159,7 +156,7 @@ m.register 'initialized'{
m.register 'exit' {
function ()
log.info('Server exited.')
- os.exit(true)
+ os.exit(0, true)
end
}