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 c006628 resolve root to normalize just like fullpath (#220) c006628 is described below commit c0066288320c3f7eb77d1e7478ed737b6809c654 Author: cgballance <cgballa...@gmail.com> AuthorDate: Fri Mar 18 14:40:30 2022 -0400 resolve root to normalize just like fullpath (#220) --- 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 31460b9..34c58e6 100644 --- a/karavan-vscode/src/extension.ts +++ b/karavan-vscode/src/extension.ts @@ -186,7 +186,7 @@ function createIntegration(context: vscode.ExtensionContext, webviewContent: str function getRalativePath(fullPath: string): string { const root = vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0].uri.path : ""; - const relativePath = path.resolve(fullPath).replace(root + path.sep, ''); + const relativePath = path.resolve(fullPath).replace( path.resolve(root) + path.sep, ''); return relativePath; }