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 2021/11/02 23:29:32 UTC

[camel-karavan] branch main updated: Hotfix 1 (#68)

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 1f4fe2f  Hotfix 1 (#68)
1f4fe2f is described below

commit 1f4fe2fc96426385ec56255dfe2cd2e3a30fbf3d
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Tue Nov 2 19:29:26 2021 -0400

    Hotfix 1 (#68)
---
 karavan-vscode/package.json     |  5 +++--
 karavan-vscode/src/extension.ts | 10 +++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/karavan-vscode/package.json b/karavan-vscode/package.json
index df9d9ac..bd435cc 100644
--- a/karavan-vscode/package.json
+++ b/karavan-vscode/package.json
@@ -42,8 +42,9 @@
   ],
   "activationEvents": [
     "onCommand:karavan.create-crd",
-    "onCommand:karavan.open-yaml",
-    "onCommand:karavan.jbang-run"
+    "onCommand:karavan.create-yaml",
+    "onCommand:karavan.jbang-run",
+    "onCommand:karavan.open"
   ],
   "main": "./dist/extension.js",
   "contributes": {
diff --git a/karavan-vscode/src/extension.ts b/karavan-vscode/src/extension.ts
index 8d5df09..4c4c962 100644
--- a/karavan-vscode/src/extension.ts
+++ b/karavan-vscode/src/extension.ts
@@ -46,9 +46,11 @@ export function activate(context: vscode.ExtensionContext) {
 
     // Create new Camel-K Integration CRD command
     const createCrd = vscode.commands.registerCommand("karavan.create-crd", () => createIntegration(context, webviewContent, true));
-
+    context.subscriptions.push(createCrd);
+    
     // Create new Camel Integration YAML command
     const createYaml = vscode.commands.registerCommand("karavan.create-yaml", () => createIntegration(context, webviewContent, false));
+    context.subscriptions.push(createYaml);
 
     // Open Camel-K integration in designer
     const open = vscode.commands.registerCommand(
@@ -66,6 +68,7 @@ export function activate(context: vscode.ExtensionContext) {
             }
         }
     );
+    context.subscriptions.push(open);
 
     // Run Camel-K integration in designer
     const run = vscode.commands.registerCommand(
@@ -90,9 +93,6 @@ export function activate(context: vscode.ExtensionContext) {
             }
         }
     );
-    context.subscriptions.push(createCrd);
-    context.subscriptions.push(createYaml);
-    context.subscriptions.push(open);
     context.subscriptions.push(run);
 }
 
@@ -142,7 +142,7 @@ function openKaravanWebView(context: vscode.ExtensionContext, webviewContent: st
                     }
                     return;
                 case 'url-mapping':
-                    KARAVAN_PANELS.set('webview-panel/webview-' + message.pathId, CamelUi.nameFromTitle(message.filename));
+                    KARAVAN_PANELS.set('webview-panel/webview-' + message.pathId, message.filename);
             }
         },
         undefined,