mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
parent
0b1c344d5d
commit
b8a7485526
|
@ -158,7 +158,7 @@ class MarkdownPreview extends Disposable implements WebviewResourceProvider {
|
|||
this._register(watcher.onDidChange(uri => {
|
||||
if (this.isPreviewOf(uri)) {
|
||||
// Only use the file system event when VS Code does not already know about the file
|
||||
if (!vscode.workspace.textDocuments.some(doc => doc.uri.toString() !== uri.toString())) {
|
||||
if (!vscode.workspace.textDocuments.some(doc => doc.uri.toString() === uri.toString())) {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue