File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
extensions/markdown-language-features/server Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 17
17
"vscode-languageserver" : " ^8.0.2" ,
18
18
"vscode-languageserver-textdocument" : " ^1.0.5" ,
19
19
"vscode-languageserver-types" : " ^3.17.1" ,
20
- "vscode-markdown-languageservice" : " ^0.2.0-alpha.7 " ,
20
+ "vscode-markdown-languageservice" : " ^0.2.0-alpha.8 " ,
21
21
"vscode-nls" : " ^5.2.0" ,
22
22
"vscode-uri" : " ^3.0.3"
23
23
},
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class VsCodeDocument implements md.ITextDocument {
65
65
}
66
66
67
67
hasInMemoryDoc ( ) : boolean {
68
- return ! this . inMemoryDoc ;
68
+ return ! ! this . inMemoryDoc ;
69
69
}
70
70
71
71
isDetached ( ) : boolean {
@@ -176,7 +176,7 @@ export class VsCodeClientWorkspace implements md.IWorkspaceWithWatching {
176
176
// Check that if file has been deleted on disk.
177
177
// This can happen when directories are renamed / moved. VS Code's file system watcher does not
178
178
// notify us when this happens.
179
- if ( await this . statBypassingCache ( uri ) === undefined ) {
179
+ if ( ! ( await this . statBypassingCache ( uri ) ) ) {
180
180
if ( this . _documentCache . get ( uri ) === doc && ! doc . hasInMemoryDoc ( ) ) {
181
181
this . doDeleteDocument ( uri ) ;
182
182
return ;
@@ -355,7 +355,8 @@ export class VsCodeClientWorkspace implements md.IWorkspaceWithWatching {
355
355
if ( this . documents . get ( uri ) ) {
356
356
return { isDirectory : false } ;
357
357
}
358
- return this . connection . sendRequest ( protocol . fs_stat , { uri } ) ;
358
+ const fsResult = await this . connection . sendRequest ( protocol . fs_stat , { uri } ) ;
359
+ return fsResult ?? undefined ; // Force convert null to undefined
359
360
}
360
361
361
362
async readDirectory ( resource : URI ) : Promise < [ string , md . FileStat ] [ ] > {
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ vscode-languageserver@^8.0.2:
42
42
dependencies :
43
43
vscode-languageserver-protocol "3.17.2"
44
44
45
- vscode-markdown-languageservice@^0.2.0-alpha.7 :
46
- version "0.2.0-alpha.7 "
47
- resolved "https://registry.yarnpkg.com/vscode-markdown-languageservice/-/vscode-markdown-languageservice-0.2.0-alpha.7 .tgz#1f5fd345630e9d0d585cb00155d433c2320fa9c2 "
48
- integrity sha512-5QYz1+LpvazK21Hphx8wZiZIXE9cQ9R3jzhQr+I89xNHJi+NWTEBA555ZFkaaYR68B7SI7OQ4jihjkGLZTUTnw ==
45
+ vscode-markdown-languageservice@^0.2.0-alpha.8 :
46
+ version "0.2.0-alpha.8 "
47
+ resolved "https://registry.yarnpkg.com/vscode-markdown-languageservice/-/vscode-markdown-languageservice-0.2.0-alpha.8 .tgz#f77c20adea2ddafdad88b99b09be1778c358ca42 "
48
+ integrity sha512-kydgGkSarjFk71culFover7lBym82wmJdvuqCzS3IPZV+fhW1l0poca/Dt4bDku3ioda0kNH9xdmi0fiHkIDUQ ==
49
49
dependencies :
50
50
picomatch "^2.3.1"
51
51
vscode-languageserver-textdocument "^1.0.5"
You can’t perform that action at this time.
0 commit comments