Skip to content

Comments

Restart server on config file change#383

Merged
edvilme merged 5 commits intomicrosoft:mainfrom
edvilme:config-restart
Feb 17, 2026
Merged

Restart server on config file change#383
edvilme merged 5 commits intomicrosoft:mainfrom
edvilme:config-restart

Conversation

@edvilme
Copy link
Contributor

@edvilme edvilme commented Feb 17, 2026

This pull request introduces a new mechanism to watch for changes in Flake8 configuration files and automatically trigger the server to rerun when these files are updated, created, or deleted. This ensures that changes to linting configurations are picked up immediately, improving the developer experience.

Configuration file watching improvements:

  • Added a new utility function createConfigFileWatchers in configWatcher.ts to watch for changes in Flake8 configuration files (.flake8, setup.cfg, tox.ini). When any of these files are changed, created, or deleted, the server is notified to rerun. [1] [2]
  • Integrated the new config file watchers into the extension activation lifecycle by registering them in extension.ts so they are properly disposed of with the extension context. [1] [2]

@edvilme edvilme added the feature-request Request for new features or functionality label Feb 17, 2026
@edvilme edvilme merged commit 7cd554f into microsoft:main Feb 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants