diff --git a/out/Record.js b/out/Record.js index c2b3bc2..4be7b4c 100644 --- a/out/Record.js +++ b/out/Record.js @@ -117,11 +117,11 @@ function startRecording(command, filepath, wslscriptPath, wsllogfilePath, script }); terminal.show(); if (process.platform === 'win32') { - const recordCmd = `${wslscriptPath} ${command} "${filepath}" ${wsllogfilePath} ; exit 0`; + const recordCmd = `${wslscriptPath} "${command}" "${filepath}" "${wsllogfilePath}" ; exit 0`; terminal.sendText(recordCmd); } else { - const recordCmd = `sudo ${scriptPath} ${command} "${filepath}" ${logfilePath} ; exit 0`; + const recordCmd = `sudo ${scriptPath} "${command}" "${filepath}" "${logfilePath}" ; exit 0`; // const exitCmd = 'exit'; terminal.sendText(recordCmd); } diff --git a/out/Record.js.map b/out/Record.js.map index a799e4e..3c86d1b 100644 --- a/out/Record.js.map +++ b/out/Record.js.map @@ -1 +1 @@ -{"version":3,"file":"Record.js","sourceRoot":"","sources":["../src/Record.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,2BAA+C;AAE/C,SAAsB,wBAAwB,CAAC,WAAmB,EAAE,OAAY;;QAC5E,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;QAC/C,IAAI,OAAO,CAAC;QACZ,IAAI;YACA,IAAI;gBACA,OAAO,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;aAC/C;YACD,OAAO,KAAK,EAAE;gBACV,IAAA,eAAU,EAAC,WAAW,EAAE,EAAE,EAAE,UAAU,GAAG;oBACrC,IAAI,GAAG,EAAE;wBAAE,OAAO,CAAC,GAAG,CAAC,UAAU,GAAI,GAAG,CAAC,CAAC;qBAAE;gBAChD,CAAC,CAAC,CAAC;gBACH,OAAO,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;aAC/C;YACL,gCAAgC;YAChC,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,IA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CAAC,EAAE;wBAChE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;wBAC/B,IAAI,aAAa,KAAK,QAAQ,EAAE;4BAC5B,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,uBAAuB;4BAC7C,wBAAwB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,wCAAwC;4BACxF,OAAO,EAAE,CAAC,CAAC,sBAAsB;yBACpC;oBACL,CAAC,CAAC,CAAC;iBAEN;gBAAC,OAAO,KAAK,EAAE;oBACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;oBACnB,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,gCAAgC,GAAG,KAAK,CAAC,CAAC;oBACzE,MAAM,CAAC,KAAK,CAAC,CAAC;iBACjB;YACL,CAAC,CAAC,CAAC;SACN;QACD,OAAO,KAAK,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,gCAAgC,GAAG,KAAK,CAAC,CAAC;YACzE,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CAAA;AApDD,wCAoDC"} \ No newline at end of file diff --git a/out/Test.js b/out/Test.js index 84202c4..4127043 100644 --- a/out/Test.js +++ b/out/Test.js @@ -124,11 +124,11 @@ function startTesting(command, filepath, wslscriptPath, wsllogfilePath, scriptPa }); terminal.show(); if (process.platform === 'win32') { - const testCmd = `${wslscriptPath} ${command} "${filepath}" ${wsllogfilePath} ;exit 0 `; + const testCmd = `${wslscriptPath} "${command}" "${filepath}" "${wsllogfilePath}" ;exit 0 `; terminal.sendText(testCmd); } else { - const testCmd = `sudo ${scriptPath} ${command} "${filepath}" ${logfilePath} ;exit 0 `; + const testCmd = `sudo ${scriptPath} "${command}" "${filepath}" "${logfilePath}" ;exit 0 `; // const exitCmd = 'exit'; terminal.sendText(testCmd); } diff --git a/out/Test.js.map b/out/Test.js.map index a4cbd2f..4b2d891 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8B,GAAG,KAAK,CAAC,CAAC;YACvE,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CAAA;AAlDD,oCAkDC;AAED,SAAsB,WAAW;;;QAC7B,IAAI;YACA,MAAA,MAAM,CAAC,MAAM,CAAC,cAAc,0CAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO;SACV;QACD,OAAO,KAAK,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,MAAM,KAAK,CAAC;SACf;;CACJ;AATD,kCASC"} \ No newline at end of file diff --git a/package.json b/package.json index e92d27d..e5ae7ba 100644 --- a/package.json +++ b/package.json @@ -1,88 +1,88 @@ -{ - "name": "heykeploy", - "displayName": "Keploy VSCode Extension", - "description": "Hello Keploy Community!", - "version": "2.1.2", - "publisher": "Akash-Singh04", - "icon": "media/logo.png", - "repository": { - "type": "git", - "url": "https://github.com/Akash-Singh04/KeployVScodeExtension" - }, - "engines": { - "vscode": "^1.86.0" - }, - "categories": [ - "Other" - ], - "activationEvents": [], - "main": "./out/extension.js", - "contributes": { - "viewsContainers": { - "activitybar": [ - { - "id": "Keploy-Sidebar", - "title": "Keploy", - "icon": "media/beaker.svg" - } - ] - }, - "views": { - "Keploy-Sidebar": [ - { - "type": "webview", - "id": "Keploy-Sidebar", - "name": "Keploy", - "icon": "media/beaker.svg", - "contextualTitle": "VSinder" - } - ] - }, - "commands": [ - { - "command": "heykeploy.HeyKeploy", - "title": "HeyKeploy" - }, - { - "command": "heykeploy.KeployVersion", - "title": "KeployVersion" - } - ] - }, - "scripts": { - "vscode:prepublish": "npm run compile", - "compile": "tsc -p ./", - "rollup": "rollup -c --bundleConfigAsCjs", - "watch": "rollup -c --bundleConfigAsCjs && tsc -watch -p ./", - "debug": "tsc -watch -p ./", - "pretest": "npm run compile && npm run lint", - "lint": "eslint src --ext ts", - "test": "vscode-test" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^25.0.7", - "@rollup/plugin-node-resolve": "^15.2.3", - "@rollup/plugin-terser": "^0.4.4", - "@rollup/plugin-typescript": "^11.1.6", - "@tsconfig/svelte": "^1.0.0", - "@types/mocha": "^10.0.6", - "@types/node": "18.x", - "@types/sinon": "^17.0.3", - "@types/vscode": "^1.86.0", - "@typescript-eslint/eslint-plugin": "^6.19.1", - "@typescript-eslint/parser": "^6.19.1", - "@vscode/test-cli": "^0.0.4", - "@vscode/test-electron": "^2.3.9", - "concurrently": "^8.2.2", - "eslint": "^8.56.0", - "rollup": "^4.12.0", - "rollup-plugin-svelte": "^6.0.0", - "svelte-check": "^3.6.6", - "svelte-preprocess": "^5.1.3", - "typescript": "^4.9.5" - }, - "dependencies": { - "sinon": "^17.0.1", - "svelte": "^4.2.12" - } -} +{ + "name": "heykeploy", + "displayName": "Keploy VSCode Extension", + "description": "Hello Keploy Community!", + "version": "2.1.2", + "publisher": "Akash-Singh04", + "icon": "media/logo.png", + "repository": { + "type": "git", + "url": "https://github.com/Akash-Singh04/KeployVScodeExtension" + }, + "engines": { + "vscode": "^1.86.0" + }, + "categories": [ + "Other" + ], + "activationEvents": [], + "main": "./out/extension.js", + "contributes": { + "viewsContainers": { + "activitybar": [ + { + "id": "Keploy-Sidebar", + "title": "Keploy", + "icon": "media/beaker.svg" + } + ] + }, + "views": { + "Keploy-Sidebar": [ + { + "type": "webview", + "id": "Keploy-Sidebar", + "name": "Keploy", + "icon": "media/beaker.svg", + "contextualTitle": "VSinder" + } + ] + }, + "commands": [ + { + "command": "heykeploy.HeyKeploy", + "title": "HeyKeploy" + }, + { + "command": "heykeploy.KeployVersion", + "title": "KeployVersion" + } + ] + }, + "scripts": { + "vscode:prepublish": "npm run compile", + "compile": "tsc -p ./", + "rollup": "rollup -c --bundleConfigAsCjs", + "watch": "rollup -c --bundleConfigAsCjs && tsc -watch -p ./", + "debug": "tsc -watch -p ./", + "pretest": "npm run compile && npm run lint", + "lint": "eslint src --ext ts", + "test": "vscode-test" + }, + "devDependencies": { + "@rollup/plugin-commonjs": "^25.0.7", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-terser": "^0.4.4", + "@rollup/plugin-typescript": "^11.1.6", + "@tsconfig/svelte": "^1.0.0", + "@types/mocha": "^10.0.6", + "@types/node": "18.x", + "@types/sinon": "^17.0.3", + "@types/vscode": "^1.86.0", + "@typescript-eslint/eslint-plugin": "^6.19.1", + "@typescript-eslint/parser": "^6.19.1", + "@vscode/test-cli": "^0.0.4", + "@vscode/test-electron": "^2.3.9", + "concurrently": "^8.2.2", + "eslint": "^8.56.0", + "rollup": "^4.12.0", + "rollup-plugin-svelte": "^6.0.0", + "svelte-check": "^3.6.6", + "svelte-preprocess": "^5.1.3", + "typescript": "^4.9.5" + }, + "dependencies": { + "sinon": "^17.0.1", + "svelte": "^4.2.12" + } +} diff --git a/src/Record.ts b/src/Record.ts index 1307dc2..f1b1f1f 100644 --- a/src/Record.ts +++ b/src/Record.ts @@ -75,11 +75,11 @@ export async function startRecording(command: string, filepath: string,wslscript terminal.show(); if (process.platform === 'win32'){ - const recordCmd = `${wslscriptPath} ${command} "${filepath}" ${wsllogfilePath} ; exit 0`; + const recordCmd = `${wslscriptPath} "${command}" "${filepath}" "${wsllogfilePath}" ; exit 0`; terminal.sendText(recordCmd); } else{ - const recordCmd = `sudo ${scriptPath} ${command} "${filepath}" ${logfilePath} ; exit 0`; + const recordCmd = `sudo ${scriptPath} "${command}" "${filepath}" "${logfilePath}" ; exit 0`; // const exitCmd = 'exit'; terminal.sendText(recordCmd); } diff --git a/src/Test.ts b/src/Test.ts index 3b5f65c..5e70c99 100644 --- a/src/Test.ts +++ b/src/Test.ts @@ -90,11 +90,11 @@ export async function startTesting(command: string, filepath: string,wslscriptPa terminal.show(); if (process.platform === 'win32') { - const testCmd = `${wslscriptPath} ${command} "${filepath}" ${wsllogfilePath} ;exit 0 `; + const testCmd = `${wslscriptPath} "${command}" "${filepath}" "${wsllogfilePath}" ;exit 0 `; terminal.sendText(testCmd); } else{ - const testCmd = `sudo ${scriptPath} ${command} "${filepath}" ${logfilePath} ;exit 0 `; + const testCmd = `sudo ${scriptPath} "${command}" "${filepath}" "${logfilePath}" ;exit 0 `; // const exitCmd = 'exit'; terminal.sendText(testCmd); }