Archived
1
0

chore(vscode): update to 1.54.2

This commit is contained in:
Joe Previte
2021-03-11 10:27:10 -07:00
1459 changed files with 53404 additions and 51004 deletions

View File

@ -439,6 +439,9 @@ class MarkdownPreview extends Disposable implements WebviewResourceProvider {
if (hrefPath[0] !== '/') {
// Fix #93691, use this.resource.fsPath instead of this.resource.path
hrefPath = path.join(path.dirname(this.resource.fsPath), hrefPath);
} else {
// Handle any normalized file paths
hrefPath = vscode.Uri.parse(hrefPath.replace('/file', '')).fsPath;
}
const config = vscode.workspace.getConfiguration('markdown', this.resource);

View File

@ -216,7 +216,7 @@ export class MarkdownEngine {
const src = token.attrGet('src');
if (src) {
env.containingImages.push({ src });
env.containingImages?.push({ src });
const imgHash = hash(src);
token.attrSet('id', `image-hash-${imgHash}`);
}