Skip to content

Commit 5fbf272

Browse files
authored
Fix URI handling (#8630)
2 parents cff62d1 + c78e83a commit 5fbf272

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lsptoolshost/razor/htmlDocumentManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { HtmlDocumentContentProvider } from './htmlDocumentContentProvider';
1212
import { HtmlDocument } from './htmlDocument';
1313
import { RoslynLanguageServer } from '../server/roslynLanguageServer';
1414
import { RequestType, TextDocumentIdentifier } from 'vscode-languageserver-protocol';
15+
import { UriConverter } from '../utils/uriConverter';
1516

1617
export class HtmlDocumentManager {
1718
private readonly htmlDocuments: { [hostDocumentPath: string]: HtmlDocument } = {};
@@ -51,7 +52,7 @@ export class HtmlDocumentManager {
5152
// so making it a request means the logs end up in the right place.
5253
await this.roslynLanguageServer.sendRequest(
5354
this.razorDocumentClosedRequest,
54-
TextDocumentIdentifier.create(getUriPath(document.uri)),
55+
TextDocumentIdentifier.create(UriConverter.serialize(document.uri)),
5556
new vscode.CancellationTokenSource().token
5657
);
5758
}

0 commit comments

Comments
 (0)