vscode-nim icon indicating copy to clipboard operation
vscode-nim copied to clipboard

Proactively send file changes to nimsuggest

Open RSDuck opened this issue 4 years ago • 2 comments

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.

RSDuck avatar Mar 25 '20 15:03 RSDuck

Sounds good. This is one of the reasons I tend to work with as few files as I can.

dawkot avatar Apr 09 '20 19:04 dawkot

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.

polypus74 avatar Jul 01 '20 20:07 polypus74