Skip to content

Commit ac7726f

Browse files
committed
Bug fixed document formatting
1 parent b6585af commit ac7726f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/project/workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class Workspace implements IWorkspace {
172172
// Exceptions thrown by the parser should be ignored.
173173
let result: VbaFmtListener | undefined;
174174
try {
175-
const projectDocument = this.projectDocuments.get(document.uri);
175+
const projectDocument = this.projectDocuments.get(document.uri.toFilePath().toFileUri());
176176
result = await projectDocument?.formatParse(token);
177177
this.logger.info(`Formatted ${document.uri}`);
178178
}

0 commit comments

Comments
 (0)