3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #195186 from lblasc/vscode-sumneko-lua

vscode-extensions.sumneko.lua: init at 3.5.6
This commit is contained in:
Aaron Andersen 2022-10-20 22:09:13 +02:00 committed by GitHub
commit 919545242e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View file

@ -2375,6 +2375,8 @@ let
};
};
sumneko.lua = callPackage ./lua { };
svelte.svelte-vscode = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "svelte-vscode";

View file

@ -0,0 +1,27 @@
{ lib
, vscode-utils
, sumneko-lua-language-server
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "lua";
publisher = "sumneko";
version = "3.5.6";
sha256 = "sha256-Unzs9rX/0MlQprSvScdBCCFMeLCaGzWsMbcFqSKY2XY=";
};
patches = [ ./remove-chmod.patch ];
postInstall = ''
ln -sf ${sumneko-lua-language-server}/bin/lua-language-server \
$out/$installPrefix/server/bin/lua-language-server
'';
meta = with lib; {
description = "The Lua language server provides various language features for Lua to make development easier and faster.";
homepage = "https://marketplace.visualstudio.com/items?itemName=sumneko.lua";
license = licenses.mit;
maintainers = with maintainers; [ lblasc ];
};
}

View file

@ -0,0 +1,16 @@
diff --git a/client/out/languageserver.js b/client/out/languageserver.js
index 6c7429c..6f53aa4 100644
--- a/client/out/languageserver.js
+++ b/client/out/languageserver.js
@@ -79,11 +79,9 @@ class LuaClient {
break;
case "linux":
command = this.context.asAbsolutePath(path.join('server', binDir ? binDir : 'bin-Linux', 'lua-language-server'));
- yield fs.promises.chmod(command, '777');
break;
case "darwin":
command = this.context.asAbsolutePath(path.join('server', binDir ? binDir : 'bin-macOS', 'lua-language-server'));
- yield fs.promises.chmod(command, '777');
break;
}
let serverOptions = {