cgballance opened a new issue #207:
URL: https://github.com/apache/camel-karavan/issues/207
The commit for issue #72 does not work. my local change...replace
getRalativePath (sic)
I changed path to fsPath and forced normalization of the path because the
workspace folder path is normalilzed already.
Would somebody please try on *nix?
function getRalativePath(fullPath:string): string {
const root = vscode.workspace.workspaceFolders ?
vscode.workspace.workspaceFolders[0].uri.fsPath : "" ;
//
// normalize fullPath before we try to look for common base(win32 needs
this).
//
const nFullPath: vscode.Uri = vscode.Uri.file( fullPath ) ;
const relativePath = path.resolve(nFullPath.fsPath).replace(root +
path.sep, '');
return relativePath;
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]