Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension uses a document selector without scheme #38

Open
Danp2 opened this issue Apr 3, 2023 · 1 comment
Open

Extension uses a document selector without scheme #38

Danp2 opened this issue Apr 3, 2023 · 1 comment

Comments

@Danp2
Copy link

Danp2 commented Apr 3, 2023

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 --

const documentSelector: DocumentSelector | string = [{ language: 'au3' }];

Would adding scheme: 'file' here break anything?

@genius257
Copy link
Owner

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants