diff options
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/client.ts | 2 | ||||
-rw-r--r-- | editors/code/src/main.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index aec5c70c0..db5f4c023 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts | |||
@@ -79,7 +79,7 @@ export function createClient(serverPath: string, cwd: string, extraEnv: Env): lc | |||
79 | return hover; | 79 | return hover; |
80 | }, | 80 | }, |
81 | (error) => { | 81 | (error) => { |
82 | client.handleFailedRequest(lc.HoverRequest.type, error, null); | 82 | client.handleFailedRequest(lc.HoverRequest.type, token, error, null); |
83 | return Promise.resolve(null); | 83 | return Promise.resolve(null); |
84 | }); | 84 | }); |
85 | }, | 85 | }, |
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index d18d6c8a9..620810d72 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -246,10 +246,10 @@ async function patchelf(dest: PathLike): Promise<void> { | |||
246 | }, | 246 | }, |
247 | async (progress, _) => { | 247 | async (progress, _) => { |
248 | const expression = ` | 248 | const expression = ` |
249 | {src, pkgs ? import <nixpkgs> {}}: | 249 | {srcStr, pkgs ? import <nixpkgs> {}}: |
250 | pkgs.stdenv.mkDerivation { | 250 | pkgs.stdenv.mkDerivation { |
251 | name = "rust-analyzer"; | 251 | name = "rust-analyzer"; |
252 | inherit src; | 252 | src = /. + srcStr; |
253 | phases = [ "installPhase" "fixupPhase" ]; | 253 | phases = [ "installPhase" "fixupPhase" ]; |
254 | installPhase = "cp $src $out"; | 254 | installPhase = "cp $src $out"; |
255 | fixupPhase = '' | 255 | fixupPhase = '' |
@@ -262,7 +262,7 @@ async function patchelf(dest: PathLike): Promise<void> { | |||
262 | await fs.rename(dest, origFile); | 262 | await fs.rename(dest, origFile); |
263 | progress.report({ message: "Patching executable", increment: 20 }); | 263 | progress.report({ message: "Patching executable", increment: 20 }); |
264 | await new Promise((resolve, reject) => { | 264 | await new Promise((resolve, reject) => { |
265 | const handle = exec(`nix-build -E - --arg src '${origFile}' -o ${dest}`, | 265 | const handle = exec(`nix-build -E - --argstr srcStr '${origFile}' -o '${dest}'`, |
266 | (err, stdout, stderr) => { | 266 | (err, stdout, stderr) => { |
267 | if (err != null) { | 267 | if (err != null) { |
268 | reject(Error(stderr)); | 268 | reject(Error(stderr)); |