ctx.registerCommand('viewHir', commands.viewHir);
ctx.registerCommand('expandMacro', commands.expandMacro);
ctx.registerCommand('run', commands.run);
+ ctx.registerCommand('copyRunCommandLine', commands.copyRunCommandLine);
ctx.registerCommand('debug', commands.debug);
ctx.registerCommand('newDebugConfig', commands.newDebugConfig);
ctx.registerCommand('openDocs', commands.openDocs);
}
return;
};
- if (serverPath(config) !== null) return;
+ if (serverPath(config)) return;
const now = Date.now();
if (config.package.releaseTag === NIGHTLY_TAG) {
url: artifact.browser_download_url,
dest,
progressTitle: "Downloading rust-analyzer extension",
- overwrite: true,
});
});
"x64 linux": "x86_64-unknown-linux-gnu",
"x64 darwin": "x86_64-apple-darwin",
"arm64 win32": "aarch64-pc-windows-msvc",
+ "arm64 linux": "aarch64-unknown-linux-gnu",
"arm64 darwin": "aarch64-apple-darwin",
};
const platform = platforms[`${process.arch} ${process.platform}`];
progressTitle: "Downloading rust-analyzer server",
gunzip: true,
mode: 0o755,
- overwrite: true,
});
});