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/06/15 14:38:54 UTC
[camel-karavan] branch main updated: Fix Create integration command (#371)
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 c7c8091 Fix Create integration command (#371)
c7c8091 is described below
commit c7c80915922d3e4e4505fd635146afd6e4d0cd47
Author: Aurélien Pupier <ap...@redhat.com>
AuthorDate: Wed Jun 15 16:38:50 2022 +0200
Fix Create integration command (#371)
fixes #370
There was no guard check in case no argument is provided. It is the case
when creating a new file. No need for this check when there is a clause
on commands forcing to have an argument as parameter. The other creation
is for the CRD file. There is already a check using an if condition
because there is a different treatment in this case.
Signed-off-by: Aurélien Pupier <ap...@redhat.com>
---
karavan-vscode/src/extension.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/karavan-vscode/src/extension.ts b/karavan-vscode/src/extension.ts
index b1baa2f..ee95900 100644
--- a/karavan-vscode/src/extension.ts
+++ b/karavan-vscode/src/extension.ts
@@ -95,7 +95,7 @@ export function activate(context: ExtensionContext) {
context.subscriptions.push(createCrd);
// Create new Integration YAML command
- const createYaml = commands.registerCommand("karavan.create-yaml", (...args: any[]) => designer.createIntegration(false, args[0].fsPath));
+ const createYaml = commands.registerCommand("karavan.create-yaml", (...args: any[]) => designer.createIntegration(false, args[0]?.fsPath));
context.subscriptions.push(createYaml);
// Open integration in designer command