Closed luis-soares-sky closed 3 years ago
Sorry, opened on the wrong repo. Closing this one in favor of https://github.com/rokucommunity/vscode-brightscript-language/issues/294
No that's the right place.
This has been fixed in vscode-brightscript-language@2.17.1
While running a debug session in VS Code, the editor will often lose context of the project, and only one file (or set of files) will be considered.
The most recent time this happened, I happened to open a file inside a folder that's not included in bsconfig's files (it's within a
build/
folder). While I'm not sure if it's related at all, I looked at the BrighterScript Language Server, and this was the output:At 1:42 PM was when I opened the "external" file. Once I made changes to a file inside the project while it was running, errors started popping up as if it were the only file in the project (file not included anywhere else, non-declared methods, etc).
Restarting the language server solves the errors, but they pop back up under the right conditions (can't figure those out, but it always happens during debug).