meraymond2 / idris-vscode

Idris front-end for VS Code
MIT License
59 stars 10 forks source link

Only prompt reload on relevant config changes #27

Closed meraymond2 closed 3 years ago

meraymond2 commented 3 years ago

I had naïvely assumed that the onDidChangeConfiguration listener would only listen to events to this extensions config, but I noticed when testing that it fires for everything, so it would ask to reload the editor if I change the colour theme.

Since I'm now responding to changes to specific config values, it only asks to restart if it has to, i.e. if it needs to restart the Idris process.