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 2023/10/18 00:01:13 UTC
[camel-karavan] branch main updated: Fix subfolder for #939
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 38d81957 Fix subfolder for #939
38d81957 is described below
commit 38d81957b034bb5a9b2813e5172b5553bf1828dc
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Tue Oct 17 20:01:05 2023 -0400
Fix subfolder for #939
---
karavan-vscode/src/utils.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/karavan-vscode/src/utils.ts b/karavan-vscode/src/utils.ts
index c31b25a6..44b612d6 100644
--- a/karavan-vscode/src/utils.ts
+++ b/karavan-vscode/src/utils.ts
@@ -197,7 +197,7 @@ export async function readCamelYamlFiles(dir: string) {
const readData = await readFile(path.resolve(filename));
const yaml = Buffer.from(readData).toString('utf8');
if (CamelDefinitionYaml.yamlIsIntegration(yaml)){
- const basename = path.basename(filename);
+ const basename = filename.replace(dir, '');
result[basename] = yaml;
}
}