File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,6 @@ exports.initialise = (context) => {
88
88
const statement = this . parseStatement ( editor ) ;
89
89
90
90
if ( statement . content . trim ( ) . length > 0 ) {
91
-
92
- statement . content = [
93
- `SET CURRENT SCHEMA = '${ config . currentLibrary . toUpperCase ( ) } '` ,
94
- statement . content
95
- ] . join ( `;\n` ) ;
96
-
97
91
try {
98
92
if ( statement . type === `cl` ) {
99
93
const commandResult = await vscode . commands . executeCommand ( `code-for-ibmi.runCommand` , {
@@ -111,8 +105,18 @@ exports.initialise = (context) => {
111
105
if ( commandResult . stderr . length > 0 ) output += `${ commandResult . stderr } \n\n` ;
112
106
if ( commandResult . stdout . length > 0 ) output += `${ commandResult . stdout } \n\n` ;
113
107
114
- // TODO: CompileTools.appendOutput(output);
108
+ const textDoc = await vscode . workspace . openTextDocument ( { language : `txt` , content : output } ) ;
109
+ await vscode . window . showTextDocument ( textDoc , {
110
+ preserveFocus : true ,
111
+ preview : true
112
+ } ) ;
113
+
115
114
} else {
115
+ statement . content = [
116
+ `SET CURRENT SCHEMA = '${ config . currentLibrary . toUpperCase ( ) } '` ,
117
+ statement . content
118
+ ] . join ( `;\n` ) ;
119
+
116
120
if ( statement . type === `statement` ) {
117
121
resultSetProvider . setLoadingText ( `Executing statement...` ) ;
118
122
}
You can’t perform that action at this time.
0 commit comments