Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c3a9cfe

Browse files
authoredNov 4, 2022
Run ESLint --fix for new automatic fix (#4246)
1 parent 5761a06 commit c3a9cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/features/GetCommands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class GetCommandsFeature extends LanguageClientConsumer {
7171
await this.languageClient.sendRequest(GetCommandRequestType).then((result) => {
7272
const exclusions = getSettings().sideBar.CommandExplorerExcludeFilter;
7373
const excludeFilter = exclusions.map((filter: string) => filter.toLowerCase());
74-
result = result.filter((command) => (excludeFilter.indexOf(command.moduleName.toLowerCase()) === -1));
74+
result = result.filter((command) => (!excludeFilter.includes(command.moduleName.toLowerCase())));
7575
this.commandsExplorerProvider.powerShellCommands = result.map(toCommand);
7676
this.commandsExplorerProvider.refresh();
7777
});

0 commit comments

Comments
 (0)
Please sign in to comment.