diff --git a/languageserver/src/file-provider.ts b/languageserver/src/file-provider.ts index e97a653..6bed0b1 100644 --- a/languageserver/src/file-provider.ts +++ b/languageserver/src/file-provider.ts @@ -32,8 +32,8 @@ export function getFileProvider( } const workspaceURI = vscodeURI.URI.parse(workspace); - const path = vscodeURI.Utils.joinPath(workspaceURI, ref.path); - const file = await readFile(path.toString()); + const refURI = vscodeURI.Utils.joinPath(workspaceURI, ref.path); + const file = await readFile(refURI.toString()); if (!file) { throw new Error(`File not found: ${ref.path}`);