diff --git a/src/clojureEval.ts b/src/clojureEval.ts index e10c524..d39b6ca 100644 --- a/src/clojureEval.ts +++ b/src/clojureEval.ts @@ -47,8 +47,11 @@ export function clojureEval(context: vscode.ExtensionContext, outputChannel?: vs diagnostics.clear(); nrepl1.evalFile(text, filename, (result) => { console.log(result); + if (result.out) { + outputChannel.append(result.out); + outputChannel.show(); + } if (result.value) { - diagnostics.clear(); if (outputChannel) { outputChannel.appendLine(`=> ${result.value}`); outputChannel.show(); @@ -70,7 +73,7 @@ export function clojureEval(context: vscode.ExtensionContext, outputChannel?: vs } let errMsg = stackteace.message; - // Adjust error position if selection has been evaluated + // Adjust an error position if a selection has been evaluated if (isSelection) { errLine = errLine + selection.start.line; errChar = errChar + selection.start.character; diff --git a/src/clojureMain.ts b/src/clojureMain.ts index dcf7493..c9102ff 100644 --- a/src/clojureMain.ts +++ b/src/clojureMain.ts @@ -96,7 +96,7 @@ function connect(context: vscode.ExtensionContext) { context.workspaceState.update('port', port); context.workspaceState.update('host', host); updateConnectionIndicator(port, host); - vscode.window.showInformationMessage(onSuccesfullConnectMessage) + vscode.window.showInformationMessage(onSuccesfullConnectMessage); } else { vscode.window.showErrorMessage('Can\'t connect to the nREPL.'); }