genius257 / vscode-autoit

AutoIt language extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=genius257.autoit
MIT License
4 stars 2 forks source link

Extension uses a document selector without scheme #38

Open Danp2 opened 1 year ago

Danp2 commented 1 year ago

I noticed this message in the Output pane --

2023-04-02 11:47:05.073 [info] Extension 'genius257.autoit' uses a document selector without scheme. Learn more about this: https://go.microsoft.com/fwlink/?linkid=872305

After researching, it appears to be resolved by adding a scheme to this line -- https://github.com/genius257/vscode-autoit/blob/918b9b44d8b354b9511a69b0da8841fa8ccc0f85/client/src/main.ts#L21

Would adding scheme: 'file' here break anything?

genius257 commented 1 year ago

Hi @Danp2 😄 According to the link provided, if scheme is set to "file", the language client will only work on au3 files that exists on disk. Whist i am not sure if it should try and work with things like: "cached documents that git uses", i would like it to work on both unsaved documents and files that exists on disk 😅

But it was something i hadn't noticed 😄