File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export function analyzerStatus(ctx: Ctx): Cmd {
2121 provideTextDocumentContent ( _uri : vscode . Uri ) : vscode . ProviderResult < string > {
2222 if ( ! vscode . window . activeTextEditor ) return '' ;
2323
24- return ctx . client . sendRequest ( ra . analyzerStatus , null ) ;
24+ return ctx . client . sendRequest ( ra . analyzerStatus ) ;
2525 }
2626
2727 get onDidChange ( ) : vscode . Event < vscode . Uri > {
@@ -63,7 +63,7 @@ export function memoryUsage(ctx: Ctx): Cmd {
6363 provideTextDocumentContent ( _uri : vscode . Uri ) : vscode . ProviderResult < string > {
6464 if ( ! vscode . window . activeTextEditor ) return '' ;
6565
66- return ctx . client . sendRequest ( ra . memoryUsage , null ) . then ( ( mem : any ) => {
66+ return ctx . client . sendRequest ( ra . memoryUsage ) . then ( ( mem : any ) => {
6767 return 'Per-query memory usage:\n' + mem + '\n(note: database has been cleared)' ;
6868 } ) ;
6969 }
@@ -372,7 +372,7 @@ export function expandMacro(ctx: Ctx): Cmd {
372372}
373373
374374export function reloadWorkspace ( ctx : Ctx ) : Cmd {
375- return async ( ) => ctx . client . sendRequest ( ra . reloadWorkspace , null ) ;
375+ return async ( ) => ctx . client . sendRequest ( ra . reloadWorkspace ) ;
376376}
377377
378378export function showReferences ( ctx : Ctx ) : Cmd {
Original file line number Diff line number Diff line change 44
55import * as lc from "vscode-languageclient" ;
66
7- export const analyzerStatus = new lc . RequestType < null , string , void > ( "rust-analyzer/analyzerStatus" ) ;
8- export const memoryUsage = new lc . RequestType < null , string , void > ( "rust-analyzer/memoryUsage" ) ;
7+ export const analyzerStatus = new lc . RequestType0 < string , void > ( "rust-analyzer/analyzerStatus" ) ;
8+ export const memoryUsage = new lc . RequestType0 < string , void > ( "rust-analyzer/memoryUsage" ) ;
99
1010export type Status = "loading" | "ready" | "invalid" | "needsReload" ;
1111export interface StatusParams {
1212 status : Status ;
1313}
1414export const status = new lc . NotificationType < StatusParams > ( "rust-analyzer/status" ) ;
1515
16- export const reloadWorkspace = new lc . RequestType < null , null , void > ( "rust-analyzer/reloadWorkspace" ) ;
16+ export const reloadWorkspace = new lc . RequestType0 < null , void > ( "rust-analyzer/reloadWorkspace" ) ;
1717
1818export interface SyntaxTreeParams {
1919 textDocument : lc . TextDocumentIdentifier ;
You can’t perform that action at this time.
0 commit comments