dprint-vscode icon indicating copy to clipboard operation
dprint-vscode copied to clipboard

dprint.experimentalLsp prevents config schema from being loaded

Open jakebailey opened this issue 1 year ago • 1 comments

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

jakebailey avatar Jan 12 '24 23:01 jakebailey

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

jakebailey avatar Apr 16 '24 04:04 jakebailey