Koihik / vscode-lua-format

Reformats your Lua source code
Apache License 2.0
56 stars 13 forks source link

Wrong path resolving for relative files on windows #28

Closed Cr4xy closed 4 years ago

Cr4xy commented 4 years ago

I have vscode-lua-format.configPath set to .lua-format, the resolvePath function resolves the fullPath to this: C:\c:\Users\<user>\folder\<project folder>\.lua-format, therefore failing.

A fix I found is to replace workspaceFolder.uri.path with workspaceFolder.uri.fsPath in resolvePath.