diff --git a/package.json b/package.json index fb7d690331..ad265e8257 100644 --- a/package.json +++ b/package.json @@ -607,7 +607,7 @@ }, "powershell.scriptAnalysis.settingsPath": { "type": "string", - "default": "", + "default": "PSScriptAnalyzerSettings.psd1", "description": "Specifies the path to a PowerShell Script Analyzer settings file. To override the default settings for all projects, enter an absolute path, or enter a path relative to your workspace." }, "powershell.codeFolding.enable": { diff --git a/src/settings.ts b/src/settings.ts index a8e931aaf8..00c561225b 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -124,7 +124,7 @@ export function load(): ISettings { const defaultScriptAnalysisSettings: IScriptAnalysisSettings = { enable: true, - settingsPath: "", + settingsPath: "PSScriptAnalyzerSettings.psd1", }; const defaultDebuggingSettings: IDebuggingSettings = {