vscode-nim
vscode-nim copied to clipboard
Proactively send file changes to nimsuggest
If you're working with multiple files, sooner or later you run into the situation where the changes in one module aren't displayed in another module which imports it.
The reason for this is that nimsuggest seems not to pickup file changes on it's own, only after issuing a request. My solution would be to send a dummy request to all nimsuggest instances every time the focus of the editor is changed. I would make a PR, but wanted to hear some feedback first.
Sounds good. This is one of the reasons I tend to work with as few files as I can.
As a workaround for this, you can enable autosave under the file menu, even for working on a single module, in my experience things go smoother with this extension.