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
Remove Settings class, use VS Code config API directly (#5464)
* Remove Settings class, use VS Code config API directly
Replace the cached Settings class hierarchy with direct
`vscode.workspace.getConfiguration()` calls throughout the codebase.
This eliminates race conditions from stale cached values and removes the
burden of keeping the class in sync with package.json.
- Remove Settings, DebuggingSettings, DeveloperSettings, etc. classes
- Remove getSettings(), getSetting(), getEffectiveConfigurationTarget(),
onSettingChange(), and onPowerShellSettingChange() helpers
- Remove PowerShellLanguageId constant (inline "powershell" literal)
- Remove unused enums: StartLocation, ExecuteMode, CodeFormattingPreset,
PipelineIndentationStyle
- Move CommentType enum to HelpCompletion.ts (its only consumer)
- Replace restartOnCriticalConfigChange() stale-vs-fresh comparisons
with affectsConfiguration() calls
- Replace powerShellDefaultVersion mutation with dedicated
powerShellVersionOverride field
- Audit and fix all setting defaults to match package.json
- Disable no-unnecessary-type-arguments ESLint rule (conflicts with
no-unnecessary-condition when using VS Code .get<T>(key, default) API)
- Update tests
* Fix typo in session.ts and remove deprecated whitespaceAroundPipe setting from package.json
Agent-Logs-Url: https://github.com/PowerShell/vscode-powershell/sessions/608cb061-0790-485f-9613-43fabdaa403f
Co-authored-by: andyleejordan <2226434+andyleejordan@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
"markdownDescription": "**Deprecated:** Please use the `#powershell.codeFormatting.addWhitespaceAroundPipe#` setting instead. If you've used this setting before, we have moved it for you automatically.",
871
-
"markdownDeprecationMessage": "**Deprecated:** Please use the `#powershell.codeFormatting.addWhitespaceAroundPipe#` setting instead. If you've used this setting before, we have moved it for you automatically."
0 commit comments