We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be42bff commit 63e4db7Copy full SHA for 63e4db7
src/razor/src/document/razorDocumentManager.ts
@@ -230,15 +230,9 @@ export class RazorDocumentManager implements IRazorDocumentManager {
230
return this.razorDocuments[path];
231
}
232
233
- const lowerCasePath = path.toLowerCase();
234
- const key = Object.keys(this.razorDocuments).find(
235
- (documentPath) => documentPath.toLowerCase() === lowerCasePath
+ return Object.values(this.razorDocuments).find(
+ (document) => document.path.localeCompare(path, undefined, { sensitivity: 'base' }) === 0
236
);
237
- if (key) {
238
- return this.razorDocuments[key];
239
- }
240
-
241
- return undefined;
242
243
244
private async updateCSharpBuffer(updateBufferRequest: UpdateBufferRequest) {
0 commit comments