Skip to content

Always notify correctly on config changes including in projects - #2937

Merged
rchl merged 5 commits into
mainfrom
fix/config-change-detect
May 29, 2026
Merged

rchl merged 5 commits into
mainfrom
fix/config-change-detect

Conversation

@rchl

@rchl rchl commented May 28, 2026 •

Copy link
Copy Markdown
Member

This should properly detect whether only "settings" were updated (which shouldn't restart server) or also other settings (that should result in server restart).

Should handle changes in package, global and project settings.

Fixes case reported in #2932 (comment):

I think there is still another bug that if you modify a server setting in project settings, then the server is restarted (but that also happens on main, so it's not a new bug).

Should also correctly handle cases when project-only server config is removed (should shut down server) but this is probably a rather rare use case.

@rchl

rchl commented May 29, 2026

Copy link
Copy Markdown
Member Author

The failures are due to #2936.

RETRY_COUNT_TIMEDELTA = timedelta(minutes=3)


ConfigChangeType = Literal['added', 'removed', 'root_changed', 'settings_changed', 'unchanged']

@rchl rchl May 29, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to come up with good names for changes in this PR...

@rchl

rchl commented May 29, 2026

Copy link
Copy Markdown
Member Author

Depending on how you feel about this and whether you have time to review @jwortmann we'll either include it in pending release or not. Fine either way. I just don't want to delay release more due to sublimelsp/LSP-copilot#288 (comment) for example.

@jwortmann jwortmann left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't reviewed all the changes line by line, but I have tested with a server and modifying server settings in the project settings file works correctly now.

@rchl
rchl merged commit 86fee47 into main May 29, 2026
8 checks passed
@rchl
rchl deleted the fix/config-change-detect branch May 29, 2026 18:08
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