You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2022/03/17 23:08:38 UTC
[camel-karavan] branch main updated: Fix #215 (#218)
This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 3fae8ca Fix #215 (#218)
3fae8ca is described below
commit 3fae8ca7981347dbd0367d0db0af012e8e8438bb
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Thu Mar 17 19:08:35 2022 -0400
Fix #215 (#218)
---
karavan-vscode/package.json | 6 +++---
karavan-vscode/src/extension.ts | 8 +++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/karavan-vscode/package.json b/karavan-vscode/package.json
index cf73b55..b24276d 100644
--- a/karavan-vscode/package.json
+++ b/karavan-vscode/package.json
@@ -54,7 +54,7 @@
"properties": {
"camel.version": {
"type": "string",
- "default": "3.15.0",
+ "default": "3.16.0-SNAPSHOT",
"description": "Camel version"
},
"camel.maxMessages": {
@@ -78,10 +78,10 @@
"default": "true",
"description": "Reload routes on change"
},
- "camel.backward": {
+ "camel.health": {
"type": "boolean",
"default": false,
- "description": "Compatibility with Camel version < 3.16"
+ "description": "Enable health-check when run in Jbang"
},
"Karavan.kameletsPath": {
"type": "string",
diff --git a/karavan-vscode/src/extension.ts b/karavan-vscode/src/extension.ts
index 3a2453e..e7b8967 100644
--- a/karavan-vscode/src/extension.ts
+++ b/karavan-vscode/src/extension.ts
@@ -225,13 +225,15 @@ function parceYaml(filename: string, yaml: string): [boolean, string?] {
function runCamelJbang(filename: string) {
const version = vscode.workspace.getConfiguration().get("camel.version");
- const maxMessages = vscode.workspace.getConfiguration().get("camel.maxMessages");
+ const maxMessages:number = vscode.workspace.getConfiguration().get("camel.maxMessages") || -1;
const loggingLevel = vscode.workspace.getConfiguration().get("camel.loggingLevel");
const reload = vscode.workspace.getConfiguration().get("camel.reload");
+ const health = vscode.workspace.getConfiguration().get("camel.health");
const command = "jbang -Dcamel.jbang.version=" + version + " camel@apache/camel run " + filename
- + " --max-messages=" + maxMessages
+ + (maxMessages > -1 ? " --max-messages=" + maxMessages : "")
+ " --logging-level=" + loggingLevel
- + (reload ? " --reload" : "");
+ + (reload ? " --reload" : "")
+ + (health ? " --health" : "");
const existTerminal = TERMINALS.get(filename);
if (existTerminal) existTerminal.dispose();
const terminal = vscode.window.createTerminal('Camel: ' + filename);