File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
extensions/markdown-language-features Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,10 @@ export class VsCodeClientWorkspace implements md.IWorkspace {
162
162
}
163
163
}
164
164
165
- stat ( resource : URI ) : Promise < md . FileStat | undefined > {
165
+ async stat ( resource : URI ) : Promise < md . FileStat | undefined > {
166
+ if ( this . _documentCache . has ( resource ) || this . documents . get ( resource . toString ( ) ) ) {
167
+ return { isDirectory : false } ;
168
+ }
166
169
return this . connection . sendRequest ( protocol . statFileRequestType , { uri : resource . toString ( ) } ) ;
167
170
}
168
171
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ async function getLinksForFile(file: vscode.Uri): Promise<vscode.DocumentLink[]>
134
134
}
135
135
} ) ;
136
136
137
- test . skip ( 'Should navigate to fragment within current untitled file' , async ( ) => { // TODO: skip for now for ls migration
137
+ test ( 'Should navigate to fragment within current untitled file' , async ( ) => { // TODO: skip for now for ls migration
138
138
const testFile = workspaceFile ( 'x.md' ) . with ( { scheme : 'untitled' } ) ;
139
139
await withFileContents ( testFile , joinLines (
140
140
'[](#second)' ,
You can’t perform that action at this time.
0 commit comments