2
2
* Copyright (C) Microsoft Corporation. All rights reserved.
3
3
*--------------------------------------------------------*/
4
4
import * as vscode from "vscode" ;
5
- import { LanguageClient , RequestType } from "vscode-languageclient" ;
5
+ import { LanguageClient , RequestType0 } from "vscode-languageclient" ;
6
6
import { IFeature } from "../feature" ;
7
7
import { Logger } from "../logging" ;
8
8
@@ -18,7 +18,7 @@ interface ICommand {
18
18
* RequestType sent over to PSES.
19
19
* Expects: ICommand to be returned
20
20
*/
21
- export const GetCommandRequestType = new RequestType < string , ICommand [ ] , void , void > ( "powerShell/getCommand" ) ;
21
+ export const GetCommandRequestType = new RequestType0 < ICommand [ ] , void , void > ( "powerShell/getCommand" ) ;
22
22
23
23
/**
24
24
* A PowerShell Command listing feature. Implements a treeview control.
@@ -63,7 +63,7 @@ export class GetCommandsFeature implements IFeature {
63
63
this . log . writeVerbose ( `<${ GetCommandsFeature . name } >: Unable to send getCommand request` ) ;
64
64
return ;
65
65
}
66
- this . languageClient . sendRequest ( GetCommandRequestType , "" ) . then ( ( result ) => {
66
+ this . languageClient . sendRequest ( GetCommandRequestType ) . then ( ( result ) => {
67
67
const SidebarConfig = vscode . workspace . getConfiguration ( "powershell.sideBar" ) ;
68
68
const excludeFilter = ( SidebarConfig . CommandExplorerExcludeFilter ) . map ( ( filter ) => filter . toLowerCase ( ) ) ;
69
69
result = result . filter ( ( command ) => ( excludeFilter . indexOf ( command . moduleName . toLowerCase ( ) ) === - 1 ) ) ;
0 commit comments