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/04 17:30:03 UTC

[camel-karavan] branch main updated: Update extension.ts

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 8d88c04  Update extension.ts
8d88c04 is described below

commit 8d88c04b8ff5f89ef9ed304f5927881b1d3987a3
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Fri Mar 4 12:29:58 2022 -0500

    Update extension.ts
---
 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 1d3f613..5109a0b 100644
--- a/karavan-vscode/src/extension.ts
+++ b/karavan-vscode/src/extension.ts
@@ -140,7 +140,7 @@ function openKaravanWebView(context: vscode.ExtensionContext, webviewContent: st
                     if (vscode.workspace.workspaceFolders) {
                         console.log(message);
                         const uriFolder: vscode.Uri = vscode.workspace.workspaceFolders[0].uri;
-                        const uriFile: vscode.Uri = vscode.Uri.file(path.join(uriFolder.path, message.filename));
+                        const uriFile: vscode.Uri = vscode.Uri.file(path.join(uriFolder.path, message.relativePath));
                         fs.writeFile(uriFile.fsPath, message.yaml, err => {
                             if (err) vscode.window.showErrorMessage("Error: " + err?.message);
                         });