You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial attempt to fixPowerShell#122 analyzer settings path
This adds a scriptAnalysis.settingsPath setting but uncovers some issues about how to be an absolute path back to the language host from the client. Depending on where the user "set" this setting a relative path has a different meaning. If set in .vscode\settings.json then relative probably should be relative to the workspaceRoot. In the global settings file, it should probably be the extensionInstallDir. If in the user's settings file, then what ... their home dir?
If we treated this like the other HostPaths then relative would *always* be relative to the extensionInstallDir. If we could get VSCode to expand ${workspaceRoot} that would allow the user to specify a path in the current workspace folder.
Copy file name to clipboardExpand all lines: package.json
+5
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,11 @@
233
233
"default": true,
234
234
"description": "Enables real-time script analysis using PowerShell Script Analyzer."
235
235
},
236
+
"powershell.scriptAnalysis.settingsPath": {
237
+
"type": "string",
238
+
"default": "./PSScriptAnalyzerSettings.psd1",
239
+
"description": "Specifies the path to the PowerShell Script Analyzer settings file. The settings file can be used to customize which rules to include or exclude as well as what severity levels to report."
0 commit comments