Skip to content

Commit 908ea65

Browse files
committed
support saxon cli arg: '-T' (traceListener)
1 parent f8162c1 commit 908ea65

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@
311311
"description": "Export filename: If set, exports the compiled stylesheet, in a form suitable for subsequent execution"
312312
},
313313
"traceOutFilename": {
314+
"type": "string",
315+
"description": "Display stylesheet tracing information using the class name supplied. An empty-string causes a system-supplied traceListener to be used."
316+
},
317+
"traceListener": {
314318
"type": "string",
315319
"description": "Indicates that the output of the trace() function should be directed to a specified file"
316320
},

src/saxonTaskProvider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ export class SaxonTaskProvider implements vscode.TaskProvider {
220220
case 'traceOutFilename':
221221
commandLineArgs.push('-traceOut:' + propValue);
222222
break;
223+
case 'traceListener':
224+
if (propValue.length > 0) {
225+
commandLineArgs.push('-T:' + propValue);
226+
} else {
227+
commandLineArgs.push('-T');
228+
}
229+
break;
223230
case 'timing':
224231
if (propValue !== "off") {
225232
commandLineArgs.push('-t');

0 commit comments

Comments
 (0)