aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-02-21 02:04:03 +0000
committerEdwin Cheng <[email protected]>2020-02-21 10:33:45 +0000
commit4e48a73f9c342544e4eabd1c1cd31cdfb6a6e5e3 (patch)
tree209de25b4853a596750d2963b2adec705db4efc0 /editors/code/src/commands
parent88014fcec04721350abc156efb1e18889fca5255 (diff)
Improve server version info
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/index.ts1
-rw-r--r--editors/code/src/commands/server_version.ts9
2 files changed, 10 insertions, 0 deletions
diff --git a/editors/code/src/commands/index.ts b/editors/code/src/commands/index.ts
index bebd99ca9..839245f48 100644
--- a/editors/code/src/commands/index.ts
+++ b/editors/code/src/commands/index.ts
@@ -13,6 +13,7 @@ export * from './syntax_tree';
13export * from './expand_macro'; 13export * from './expand_macro';
14export * from './runnables'; 14export * from './runnables';
15export * from './ssr'; 15export * from './ssr';
16export * from './server_version';
16 17
17export function collectGarbage(ctx: Ctx): Cmd { 18export function collectGarbage(ctx: Ctx): Cmd {
18 return async () => { 19 return async () => {
diff --git a/editors/code/src/commands/server_version.ts b/editors/code/src/commands/server_version.ts
new file mode 100644
index 000000000..3a982a418
--- /dev/null
+++ b/editors/code/src/commands/server_version.ts
@@ -0,0 +1,9 @@
1import * as vscode from 'vscode';
2import { ServerVersion } from '../installation/server';
3import { Cmd } from '../ctx';
4
5export function serverVersion(): Cmd {
6 return () => {
7 vscode.window.showInformationMessage('rust-analyzer version : ' + ServerVersion);
8 };
9} \ No newline at end of file