Skip to content

Commit fb47aa0

Browse files
author
Kapil Borle
committed
Update list of active PSSA rules
1 parent bbc41f0 commit fb47aa0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/features/SelectPSSARules.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import { LanguageClient, RequestType, NotificationType } from 'vscode-languagecl
99
const figures = require('figures');
1010

1111
export namespace GetPSSARulesRequest {
12-
export const type: RequestType<any, any, void> = { get method() { return 'powerShell/GetPSSARules'; } };
12+
export const type: RequestType<any, any, void> = { get method() { return 'powerShell/getPSSARules'; } };
1313
}
1414

15-
interface LabelToCheckboxMap {
16-
[Label: string]: string;
15+
export namespace SetPSSARulesRequest {
16+
export const type: RequestType<any, any, void> = { get method() {return 'powerShell/setPSSARules';}}
1717
}
1818

1919
interface RuleInfo {
@@ -46,7 +46,6 @@ export class SelectPSSARulesFeature implements IFeature {
4646
var element = returnedRules[index];
4747
rules.push({Name : element.name, IsEnabled : element.isEnabled})
4848
}
49-
5049
this.GetSelections(rules);
5150
});
5251
});
@@ -63,6 +62,7 @@ export class SelectPSSARulesFeature implements IFeature {
6362

6463
if (selection.label == figures.tick)
6564
{
65+
this.languageClient.sendRequest(SetPSSARulesRequest.type, rules); //TODO handle error
6666
return;
6767
}
6868

0 commit comments

Comments
 (0)