dprint-vscode
dprint-vscode copied to clipboard
dprint.experimentalLsp prevents config schema from being loaded
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
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. 🙁