Skip to content

Always notify user when an unexpected setting value is found#2086

Merged
plemarquand merged 3 commits intoswiftlang:mainfrom
plemarquand:always-notify-on-bad-setting
Feb 5, 2026
Merged

Always notify user when an unexpected setting value is found#2086
plemarquand merged 3 commits intoswiftlang:mainfrom
plemarquand:always-notify-on-bad-setting

Conversation

@plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Feb 5, 2026

Description

We started validating that setting values were of the expected type in da0e04c however the user was only notified with a popup if the malformed setting was used during extension activation.

A user recently encountered an issue with a malfored swift.sourcekit-lsp.backgroundIndexing setting. Because sourcekit-lsp is set up so its creation doesn't block extension activation, this error never bubbled up to the activation error handler, and they were not notified.

Instead notify the user immediately when we detect the malformed setting. The malformed value is cached so we only notify the first time we detect it, avoiding spamming the user with prompts.

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

We started validating that setting values were of the expected type in
da0e04c however the user was only notified with a popup if the malformed
setting was used during extension activation.

A user recently encountered an issue with a malfored
`swift.sourcekit-lsp.backgroundIndexing` setting. Because sourcekit-lsp
is set up so its creation doesn't block extension activation, this error
never bubbled up to the activation error handler, and they were not
notified.

Instead notify the user immediately when we detect the malformed
setting. The malformed value is cached so we only notify the first time
we detect it, avoiding spamming the user with prompts.
plemarquand and others added 2 commits February 5, 2026 10:36
Co-authored-by: Matthew Bastien <matthew_bastien@apple.com>
@plemarquand plemarquand merged commit f232e5c into swiftlang:main Feb 5, 2026
21 checks passed
@plemarquand plemarquand deleted the always-notify-on-bad-setting branch February 5, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants