After [#19444](https://github.com/nim-lang/Nim/pull/19444) was merged, the devel branch compiler can syntax check NimScript files properly. Therefore, the Visual Studio Code won't report errors for correct NimScript files anymore.
Try [the devel release](https://github.com/nim-lang/nightlies/releases/tag/2022-03-24-devel-7c3c61f2f1e898e5c70dfd619d94d09e339836e4) to verify whether it works for you. It will be backported to 1.6.x too. see also [#19440](https://github.com/nim-lang/Nim/issues/19440), [#3858](https://github.com/nim-lang/Nim/issues/3858).
