mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Improve server version info
This commit is contained in:
parent
88014fcec0
commit
4e48a73f9c
5 changed files with 45 additions and 1 deletions
|
@ -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 () => {
|
||||
|
|
9
editors/code/src/commands/server_version.ts
Normal file
9
editors/code/src/commands/server_version.ts
Normal 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);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue