Skip to content
Permalink
Browse files

Some fixes for LanguageClient-neovim support

  • Loading branch information...
Gama11 committed Apr 13, 2018
1 parent c023356 commit 95dfaa35fb20b466c70fb9387e77a82e0e5557fa
Showing with 13 additions and 4 deletions.
  1. +1 −1 protocol
  2. +12 −3 src/haxeLanguageServer/Context.hx
@@ -90,10 +90,19 @@ class Context {
}

function onInitialize(params:InitializeParams, token:CancellationToken, resolve:InitializeResult->Void, reject:ResponseError<InitializeError>->Void) {
workspacePath = params.workspaceFolders[0].uri.toFsPath();
workspacePath = params.rootUri.toFsPath();
var options = (params.initializationOptions : InitOptions);
displayServerConfig = options.displayServerConfig;
displayArguments = options.displayArguments;
if (options == null) {
displayServerConfig = {
path: "haxe",
env: new haxe.DynamicAccess(),
arguments: []
};
displayArguments = [];
} else {
displayServerConfig = options.displayServerConfig;
displayArguments = options.displayArguments;
}
documents = new TextDocuments(protocol);
return resolve({
capabilities: {

0 comments on commit 95dfaa3

Please sign in to comment.
You can’t perform that action at this time.