Improve server version info

This commit is contained in:
Edwin Cheng 2020-02-21 10:04:03 +08:00
parent 88014fcec0
commit 4e48a73f9c
5 changed files with 45 additions and 1 deletions

View file

@ -13,6 +13,7 @@ export * from './syntax_tree';
export * from './expand_macro';
export * from './runnables';
export * from './ssr';
export * from './server_version';
export function collectGarbage(ctx: Ctx): Cmd {
return async () => {

View file

@ -0,0 +1,9 @@
import * as vscode from 'vscode';
import { ServerVersion } from '../installation/server';
import { Cmd } from '../ctx';
export function serverVersion(): Cmd {
return () => {
vscode.window.showInformationMessage('rust-analyzer version : ' + ServerVersion);
};
}