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

dprint.experimentalLsp prevents config schema from being loaded #77

Open
jakebailey opened this issue Jan 12, 2024 · 1 comment
Open
Labels
bug Something isn't working lsp

Comments

@jakebailey
Copy link

If you set "dprint.experimentalLsp": true and open a dprint config file, VS Code says:

Unable to load schema from 'dprint://schemas/config.json': cannot open dprint://schemas/config.json. Detail: Unable to resolve resource dprint://schemas/config.json.

Disable LSP and reload, and the error goes away.

It looks like the schema provider is a part of the legacy system, and probably just needs to be moved out. https://github.com/dprint/dprint-vscode/blob/main/src/legacy/context.ts#L22

@dsherret dsherret added bug Something isn't working lsp labels Jan 15, 2024
@jakebailey
Copy link
Author

I tried my hand at this, but it's a lot more complicated than I thought because the schema provider is so tied to the "legacy" WorkspaceService. 🙁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp
Projects
None yet
Development

No branches or pull requests

2 participants