VSC looks and works with the currently opened files from my knowledge.
I had the impression that the lsp implementation does some own internal lookup work, but i can’t say much about that.
We would have to ask openHAB Core maintainers, since hte lsp parts are maintained there.
We have plenty threads where a share opened on windows shows the linux paths in the language error messages and then can’t be opened.
This must come from the language server code.
On extension side, we are just starting the connection to remote language server currently.