mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Fix md document links for untitled files (#155248)
This commit is contained in:
@@ -162,7 +162,10 @@ export class VsCodeClientWorkspace implements md.IWorkspace {
|
||||
}
|
||||
}
|
||||
|
||||
stat(resource: URI): Promise<md.FileStat | undefined> {
|
||||
async stat(resource: URI): Promise<md.FileStat | undefined> {
|
||||
if (this._documentCache.has(resource) || this.documents.get(resource.toString())) {
|
||||
return { isDirectory: false };
|
||||
}
|
||||
return this.connection.sendRequest(protocol.statFileRequestType, { uri: resource.toString() });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user