Skip to content

Commit 2b1bd04

Browse files
Point PSScriptAnalyzer rules to published documentation (#3642)
Co-authored-by: Andy Schwartzmeyer <[email protected]>
1 parent c664e25 commit 2b1bd04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/CodeActions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class CodeActionsFeature implements vscode.Disposable {
3434
}
3535

3636
public showRuleDocumentation(ruleId: string) {
37-
const pssaDocBaseURL = "https://github.com/PowerShell/PSScriptAnalyzer/blob/master/docs/Rules";
37+
const pssaDocBaseURL = "https://docs.microsoft.com/powershell/utility-modules/psscriptanalyzer/rules/";
3838

3939
if (!ruleId) {
4040
this.log.writeWarning("Cannot show documentation for code action, no ruleName was supplied.");
@@ -45,6 +45,6 @@ export class CodeActionsFeature implements vscode.Disposable {
4545
ruleId = ruleId.substr(2);
4646
}
4747

48-
vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(pssaDocBaseURL + `/${ruleId}.md`));
48+
vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(pssaDocBaseURL + `${ruleId}`));
4949
}
5050
}

0 commit comments

Comments
 (0)