diff --git a/workspaces/ballerina/ballerina-extension/src/utils/webview-utils.ts b/workspaces/ballerina/ballerina-extension/src/utils/webview-utils.ts index 0061b1ae349..9ebb4a3f029 100644 --- a/workspaces/ballerina/ballerina-extension/src/utils/webview-utils.ts +++ b/workspaces/ballerina/ballerina-extension/src/utils/webview-utils.ts @@ -132,7 +132,7 @@ function getComposerURI(webView: Webview): string { function getComposerCSSFiles(disableComDebug: boolean, devHost: string, webView: Webview): string[] { const filePath = join((extension.ballerinaExtInstance.context as ExtensionContext).extensionPath, 'resources', 'jslibs', 'themes', 'ballerina-default.min.css'); return [ - (isDevMode && !disableComDebug) ? join(devHost, 'themes', 'ballerina-default.min.css') + (isDevMode && !disableComDebug) ? new URL('themes/ballerina-default.min.css', devHost).toString() : webView.asWebviewUri(Uri.file(filePath)).toString() ]; } @@ -140,7 +140,7 @@ function getComposerCSSFiles(disableComDebug: boolean, devHost: string, webView: function getComposerJSFiles(componentName: string, disableComDebug: boolean, devHost: string, webView: Webview): string[] { const filePath = join((extension.ballerinaExtInstance.context as ExtensionContext).extensionPath, 'resources', 'jslibs') + sep + componentName + '.js'; return [ - (isDevMode && !disableComDebug) ? join(devHost, componentName + '.js') + (isDevMode && !disableComDebug) ? new URL(componentName + '.js', devHost).toString() : webView.asWebviewUri(Uri.file(filePath)).toString(), isDevMode ? 'http://localhost:8097' : '' // For React Dev Tools ]; diff --git a/workspaces/wso2-platform/wso2-platform-extension/scripts/download-choreo-cli.js b/workspaces/wso2-platform/wso2-platform-extension/scripts/download-choreo-cli.js index bc3ff5e535f..503192675fc 100644 --- a/workspaces/wso2-platform/wso2-platform-extension/scripts/download-choreo-cli.js +++ b/workspaces/wso2-platform/wso2-platform-extension/scripts/download-choreo-cli.js @@ -337,7 +337,7 @@ function extractBinary(archivePath, platform, destDir) { try { if (platform.ext === '.tar.gz') { - execSync(`tar -xzf '${archivePath}' -C '${tmpExtractDir}'`, { stdio: 'inherit' }); + execSync(`tar -xzf "${archivePath}" -C "${tmpExtractDir}"`, { stdio: 'inherit' }); } else if (platform.ext === '.zip') { if (os.platform() === 'win32') { execSync(`powershell.exe -Command "Expand-Archive -Path '${archivePath}' -DestinationPath '${tmpExtractDir}' -Force"`, { stdio: 'inherit' });