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

volar.config.js does not load on Windows #36

Closed
hunyan-io opened this issue May 4, 2023 · 1 comment
Closed

volar.config.js does not load on Windows #36

hunyan-io opened this issue May 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hunyan-io
Copy link

volar.config.js has no effect on Windows because the language server fails to resolve the file path.

This happens because of the path property on the URI class from vscode-uri. On windows it returns /c:/path instead of c:/path.

The fix is to use fsPath instead of path when calling loadConfig

@johnsoncodehk
Copy link
Member

Thanks for investigating it. 👍

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

No branches or pull requests

2 participants