Skip to content

Commit 9c55c90

Browse files
author
Tyler Deemer
committed
Add option to enable or disable studio action debug output.
1 parent 7a87d16 commit 9c55c90

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,11 @@
624624
"type": "boolean",
625625
"default": true,
626626
"description": "Show `Debug this method` action for ClassMethods"
627+
},
628+
"objectscript.studioActionDebugOutput": {
629+
"type": "boolean",
630+
"default": false,
631+
"description": "Output the action that VSCode should perform as requested by the server in JSON format."
627632
}
628633
}
629634
},

src/commands/studio.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ class StudioActions {
4545
outputChannel.appendLine(errorText);
4646
outputChannel.show();
4747
}
48-
// outputChannel.appendLine(JSON.stringify(userAction));
48+
if(config().studioActionDebugOutput) {
49+
outputChannel.appendLine(JSON.stringify(userAction));
50+
}
4951
switch (serverAction) {
5052
case 0:
5153
/// do nothing

0 commit comments

Comments
 (0)