Skip to content

Commit f352dfb

Browse files
committed
Adds more Open Xml File types. Closes #8
1 parent 38ced42 commit f352dfb

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed
1.5 KB
Binary file not shown.
560 Bytes
Binary file not shown.

OOXMLValidator/OOXMLValidatorCLI.runtimeconfig.dev.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,22 @@
6565
{
6666
"id": "ooxml",
6767
"extensions": [
68-
".docx",
69-
".pptx",
70-
".xlsx"
68+
"docx",
69+
"docm",
70+
"dotm",
71+
"dotx",
72+
"pptx",
73+
"pptm",
74+
"potm",
75+
"potx",
76+
"ppam",
77+
"ppsm",
78+
"ppsx",
79+
"xlsx",
80+
"xlsm",
81+
"xltm",
82+
"xltx",
83+
"xlam"
7184
]
7285
}
7386
],
@@ -130,4 +143,4 @@
130143
"dependencies": {
131144
"csv-writer": "^1.6.0"
132145
}
133-
}
146+
}

src/ooxml-validator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ export default class OOXMLValidator {
381381
const stderr = result?.stderr?.toString();
382382

383383
if (stderr?.length > 0) {
384-
window.showErrorMessage(`Failed to run OOXML Validator. The error was:\n${stderr}`);
384+
window.showErrorMessage(`Failed to run OOXML Validator. The error was:\n${stderr}`, { modal: true });
385+
panel.dispose();
385386

386387
return;
387388
}

0 commit comments

Comments
 (0)