mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Outdated comment removed
This commit is contained in:
parent
26691a1165
commit
37d4cf0cc6
@ -15,7 +15,7 @@ export async function bootstrap(
|
|||||||
if (!path) {
|
if (!path) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"rust-analyzer Language Server is not available. " +
|
"rust-analyzer Language Server is not available. " +
|
||||||
"Please, ensure its [proper installation](https://rust-analyzer.github.io/manual.html#installation).",
|
"Please, ensure its [proper installation](https://rust-analyzer.github.io/manual.html#installation).",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,11 +103,11 @@ async function getServer(
|
|||||||
|
|
||||||
await vscode.window.showErrorMessage(
|
await vscode.window.showErrorMessage(
|
||||||
"Unfortunately we don't ship binaries for your platform yet. " +
|
"Unfortunately we don't ship binaries for your platform yet. " +
|
||||||
"You need to manually clone the rust-analyzer repository and " +
|
"You need to manually clone the rust-analyzer repository and " +
|
||||||
"run `cargo xtask install --server` to build the language server from sources. " +
|
"run `cargo xtask install --server` to build the language server from sources. " +
|
||||||
"If you feel that your platform should be supported, please create an issue " +
|
"If you feel that your platform should be supported, please create an issue " +
|
||||||
"about that [here](https://github.com/rust-lang/rust-analyzer/issues) and we " +
|
"about that [here](https://github.com/rust-lang/rust-analyzer/issues) and we " +
|
||||||
"will consider it.",
|
"will consider it.",
|
||||||
);
|
);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
@ -153,7 +153,6 @@ function orderFromPath(
|
|||||||
path: string,
|
path: string,
|
||||||
raVersionResolver: (path: string) => string | undefined,
|
raVersionResolver: (path: string) => string | undefined,
|
||||||
): string {
|
): string {
|
||||||
// It is a semver, so we must resolve Rust Analyzer's version.
|
|
||||||
const raVersion = raVersionResolver(path);
|
const raVersion = raVersionResolver(path);
|
||||||
const raDate = raVersion?.match(/^rust-analyzer .*\(.* (\d{4}-\d{2}-\d{2})\)$/);
|
const raDate = raVersion?.match(/^rust-analyzer .*\(.* (\d{4}-\d{2}-\d{2})\)$/);
|
||||||
if (raDate?.length === 2) {
|
if (raDate?.length === 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user