diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-25 11:17:40 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-25 11:17:40 +0100 |
commit | e4f91bfa578e57c1ef4be3343ebb4e8950e5dae6 (patch) | |
tree | cb0ab7180b97dfdf8347c15d6e445628f7802367 /editors/code/src/commands/server_version.ts | |
parent | 1527feb744c7911b6ca482554f0399d3ef0ebfdc (diff) | |
parent | 6058b8b0f6a24ad5b905d99d780a31b9e3d578d7 (diff) |
Merge #4605
4605: Reorganize TypeScript r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code/src/commands/server_version.ts')
-rw-r--r-- | editors/code/src/commands/server_version.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/editors/code/src/commands/server_version.ts b/editors/code/src/commands/server_version.ts deleted file mode 100644 index d64ac726e..000000000 --- a/editors/code/src/commands/server_version.ts +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | import * as vscode from "vscode"; | ||
2 | import { spawnSync } from "child_process"; | ||
3 | import { Ctx, Cmd } from '../ctx'; | ||
4 | |||
5 | export function serverVersion(ctx: Ctx): Cmd { | ||
6 | return async () => { | ||
7 | const { stdout } = spawnSync(ctx.serverPath, ["--version"], { encoding: "utf8" }); | ||
8 | const commitHash = stdout.slice(`rust-analyzer `.length).trim(); | ||
9 | const { releaseTag } = ctx.config.package; | ||
10 | |||
11 | void vscode.window.showInformationMessage( | ||
12 | `rust-analyzer version: ${releaseTag ?? "unreleased"} (${commitHash})` | ||
13 | ); | ||
14 | }; | ||
15 | } | ||