#VSCode ignore workspace module error
16 messages · Page 1 of 1 (latest)
tbh, not really, especially if you have multiple environments ytou want to support at the same time
i would ignore it
its a bit hard to just ignore an error like that, i think it will make features like autocomplete unavailable for the whole file
build constraint exclude files dont prevent autocomplete no
oh, then its just a bit buggy, because i just had an issue where it said that a type from a cgo package did not exist
cgo support in general is kinda meh
at least in gopls
its unfortunate
but its also hard
oh well...
I'll leave this open for a while in case anyone has a solution
this is what i mean, the code works, but with the env set to wasm it does not find the type properly:
gopls env?
yes, you mean the setting.json?
yes