We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--fix
1 parent 5761a06 commit c3a9cfeCopy full SHA for c3a9cfe
src/features/GetCommands.ts
@@ -71,7 +71,7 @@ export class GetCommandsFeature extends LanguageClientConsumer {
71
await this.languageClient.sendRequest(GetCommandRequestType).then((result) => {
72
const exclusions = getSettings().sideBar.CommandExplorerExcludeFilter;
73
const excludeFilter = exclusions.map((filter: string) => filter.toLowerCase());
74
- result = result.filter((command) => (excludeFilter.indexOf(command.moduleName.toLowerCase()) === -1));
+ result = result.filter((command) => (!excludeFilter.includes(command.moduleName.toLowerCase())));
75
this.commandsExplorerProvider.powerShellCommands = result.map(toCommand);
76
this.commandsExplorerProvider.refresh();
77
});
0 commit comments