diff options
Diffstat (limited to 'server-beta/src/proto/provider.lua')
-rw-r--r-- | server-beta/src/proto/provider.lua | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/server-beta/src/proto/provider.lua b/server-beta/src/proto/provider.lua index 38428362..f5636a2f 100644 --- a/server-beta/src/proto/provider.lua +++ b/server-beta/src/proto/provider.lua @@ -1,13 +1,19 @@ -local util = require 'utility' -local cap = require 'proto.capability' -local pub = require 'pub' -local task = require 'task' -local files = require 'files' -local proto = require 'proto.proto' -local inte = require 'proto.interface' +local util = require 'utility' +local cap = require 'proto.capability' +local pub = require 'pub' +local task = require 'task' +local files = require 'files' +local proto = require 'proto.proto' +local inte = require 'proto.interface' +local workspace = require 'workspace' proto.on('initialize', function (params) --log.debug(util.dump(params)) + if params.workspaceFolders then + local name = params.workspaceFolders[1].name + local uri = params.workspaceFolders[1].uri + workspace.init(name, uri) + end return { capabilities = cap.initer, } |