Skip to content

Commit cdae237

Browse files
committed
xslt-js task: remove requirement for nodeModulesFolder property - no longer used
1 parent 969fc5c commit cdae237

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@
299299
"label",
300300
"xsltFile",
301301
"xmlSource",
302-
"resultPath",
303-
"nodeModulesFolder"
302+
"resultPath"
304303
],
305304
"properties": {
306305
"label": {
@@ -309,7 +308,7 @@
309308
},
310309
"nodeModulesFolder": {
311310
"type": "string",
312-
"description": "The path of the node_modules folder"
311+
"description": "[No longer used] The path of the node_modules folder"
313312
},
314313
"xsltFile": {
315314
"type": "string",

src/saxonJsTaskProvider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function exists(file: string): Promise<boolean> {
2121
interface XSLTJSTask {
2222
type: string,
2323
label: string,
24-
nodeModulesFolder: string,
24+
nodeModulesFolder?: string,
2525
xsltFile: string,
2626
xmlSource: string,
2727
useJsonSource?: boolean,
@@ -110,14 +110,12 @@ export class SaxonJsTaskProvider implements vscode.TaskProvider {
110110
}
111111

112112
private addTemplateTask() {
113-
let nodeModulesDefault = '${workspaceFolder}/node_modules'
114113
let xmlSourceValue = '${file}';
115114
let xsltFilePath = '${file}';
116115
let resultPathValue = '${workspaceFolder}/xslt-out/result1.xml';
117116

118117
let xsltTask: XSLTJSTask = {
119118
type: 'xslt-js',
120-
nodeModulesFolder: nodeModulesDefault,
121119
label: this.templateTaskLabel,
122120
xsltFile: xsltFilePath,
123121
xmlSource: xmlSourceValue,

0 commit comments

Comments
 (0)