feat: Completed the client side implementation of rust-analyzer/hoverRange

This commit is contained in:
Alexander Gonzalez 2021-07-25 17:26:54 -04:00
parent 8ca3bb8fcd
commit 18644720eb
7 changed files with 129 additions and 30 deletions

View file

@ -19,6 +19,13 @@ export const serverStatus = new lc.NotificationType<ServerStatusParams>("experim
export const reloadWorkspace = new lc.RequestType0<null, void>("rust-analyzer/reloadWorkspace");
export const hoverRange = new lc.RequestType<HoverRangeParams, lc.Hover | null, void>("rust-analyzer/hoverRange");
export interface HoverRangeParams {
textDocument: lc.TextDocumentIdentifier;
range: lc.Range;
}
export interface SyntaxTreeParams {
textDocument: lc.TextDocumentIdentifier;
range: lc.Range | null;