Skip to content

Commit 469716f

Browse files
committed
bump version
1 parent 6c5451b commit 469716f

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 1.4.4 (2025/04/14)
4+
5+
- fix: timing issue when generating timestamps for imageRules
6+
37
## 1.4.3 (2025/04/14)
48

59
- fix: Cannot download redirect file.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-markdown-paste-image",
33
"displayName": "Markdown Paste",
44
"description": "A smartly paste for markdown.",
5-
"version": "1.4.3",
5+
"version": "1.4.4",
66
"publisher": "telesoho",
77
"author": {
88
"name": "telesoho",

test/suite/extension.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ suite("Extension Tests", () => {
4949
ret = paster.Paster.parsePasteImageContext(
5050
"w:/Source Markdown/Build Ours Blog/images/test.gif"
5151
);
52+
53+
// Mock the getConfig method to return encodePath as "encodeSpaceOnly"
54+
const originalGetConfig = paster.Paster.getConfig;
55+
paster.Paster.getConfig = function () {
56+
const config = originalGetConfig.apply(this);
57+
return {
58+
...config,
59+
encodePath: "encodeSpaceOnly",
60+
};
61+
};
5262
assert.strictEqual(
5363
"w:/Source%20Markdown/Build%20Ours%20Blog/images/test.gif",
5464
paster.Paster.encodePath(ret.targetFile.fsPath)
@@ -63,7 +73,7 @@ suite("Extension Tests", () => {
6373
paster.Paster.encodePath(targetFile.fsPath),
6474
"w:/Source%20Markdown/Build%20Ours%20Blog/images/test.gif"
6575
);
66-
76+
paster.Paster.getConfig = originalGetConfig;
6777
ret = paster.Paster.parsePasteImageContext(
6878
"d:/Source Markdown/Build Ours Blog/images/"
6979
);

0 commit comments

Comments
 (0)