vscode-extensions.reditorsupport.r: install languageserver correctly (#419610)
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
vscode-utils,
|
||||
jq,
|
||||
moreutils,
|
||||
languageserver ? rPackages.languageserver,
|
||||
R,
|
||||
rPackages,
|
||||
radian,
|
||||
|
||||
rPackages,
|
||||
}:
|
||||
|
||||
vscode-utils.buildVscodeMarketplaceExtension {
|
||||
@@ -19,17 +21,13 @@ vscode-utils.buildVscodeMarketplaceExtension {
|
||||
jq
|
||||
moreutils
|
||||
];
|
||||
buildInputs = [
|
||||
radian
|
||||
R
|
||||
rPackages.languageserver
|
||||
];
|
||||
postInstall = ''
|
||||
cd "$out/$installPrefix"
|
||||
jq '.contributes.configuration.properties."r.rpath.mac".default = "${lib.getExe' R "R"}"' package.json | sponge package.json
|
||||
jq '.contributes.configuration.properties."r.rpath.linux".default = "${lib.getExe' R "R"}"' package.json | sponge package.json
|
||||
jq '.contributes.configuration.properties."r.rterm.mac".default = "${lib.getExe radian}"' package.json | sponge package.json
|
||||
jq '.contributes.configuration.properties."r.rterm.linux".default = "${lib.getExe radian}"' package.json | sponge package.json
|
||||
jq '.contributes.configuration.properties."r.libPaths".default = [ "${languageserver}/library" ]' package.json | sponge package.json
|
||||
'';
|
||||
meta = {
|
||||
changelog = "https://marketplace.visualstudio.com/items/REditorSupport.r/changelog";
|
||||
|
||||
Reference in New Issue
Block a user