From 1ce57ed907ecb7720286eaacc84c1f7026dd140c Mon Sep 17 00:00:00 2001 From: estebandalelr Date: Thu, 14 Jul 2022 10:58:43 -0500 Subject: [PATCH 1/3] Added VSCode Web Runner --- .vscode/launch.json | 68 ++++++++++++++++++++++++--------------------- .vscode/tasks.json | 39 +++++++++++++++----------- package.json | 9 +++--- 3 files changed, 64 insertions(+), 52 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 74557ee2..a929a559 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,35 +3,41 @@ // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 { - "version": "0.2.0", - "configurations": [ - { - "name": "Run Extension", - "type": "extensionHost", - "request": "launch", - "args": [ - "--extensionDevelopmentPath=${workspaceFolder}" - ], - "outFiles": [ - "${workspaceFolder}/out/**/*.js" - ], - "preLaunchTask": "${defaultBuildTask}" - }, - { - "name": "Extension Tests", - "type": "extensionHost", - "request": "launch", - "args": [ - ".", - "${workspaceFolder}/src/extension.ts", - "--extensionDevelopmentPath=${workspaceFolder}", - "--extensionTestsPath=${workspaceFolder}/out/test/suite/index", - "--disable-extensions" - ], - "outFiles": [ - "${workspaceFolder}/out/test/**/*.js" - ], - "preLaunchTask": "${defaultBuildTask}" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "args": ["--extensionDevelopmentPath=${workspaceFolder}"], + "outFiles": ["${workspaceFolder}/out/**/*.js"], + "preLaunchTask": "${defaultBuildTask}" + }, + { + "name": "Extension Tests", + "type": "extensionHost", + "request": "launch", + "args": [ + ".", + "${workspaceFolder}/src/extension.ts", + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test/suite/index", + "--disable-extensions" + ], + "outFiles": ["${workspaceFolder}/out/test/**/*.js"], + "preLaunchTask": "${defaultBuildTask}" + }, + { + "name": "Run Web Extension in VS Code", + "type": "pwa-extensionHost", + "debugWebWorkerHost": true, + "request": "launch", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionDevelopmentKind=web" + ], + "outFiles": ["${workspaceFolder}/dist/web/**/*.js"], + "preLaunchTask": "npm: watch-web" + } + ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3b17e53b..3126c146 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,20 +1,27 @@ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format { - "version": "2.0.0", - "tasks": [ - { - "type": "npm", - "script": "watch", - "problemMatcher": "$tsc-watch", - "isBackground": true, - "presentation": { - "reveal": "never" - }, - "group": { - "kind": "build", - "isDefault": true - } - } - ] + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "type": "npm", + "script": "watch-web", + "group": "build", + "isBackground": true, + "problemMatcher": ["$ts-webpack-watch"] + } + ] } diff --git a/package.json b/package.json index 89c10b67..c2a99e08 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,8 @@ "onWebviewPanel:watermelon", "onStartupFinished" ], - "extensionDependencies": [ - "vscode.git" - ], "main": "./out/extension.js", - "browser": "./out/extension.js", + "browser": "./out/main.js", "contributes": { "commands": [ { @@ -276,7 +273,8 @@ "watch": "tsc -w -p ./", "pretest": "npm run compile", "test": "node ./out/test/runTest.js", - "prepare": "husky install" + "prepare": "husky install", + "open-in-browser": "vscode-test-web --extensionDevelopmentPath=." }, "devDependencies": { "@types/git-url-parse": "^9.0.1", @@ -288,6 +286,7 @@ "@typescript-eslint/eslint-plugin": "^4.16.0", "@typescript-eslint/parser": "^4.16.0", "@vscode/test-electron": "^2.1.2", + "@vscode/test-web": "^0.0.27", "esbuild": "^0.14.39", "eslint": "^7.21.0", "glob": "^7.2.0", From c87ca0f4096f86b80ca9f1008fbc4785933a4cd7 Mon Sep 17 00:00:00 2001 From: estebandalelr Date: Thu, 14 Jul 2022 11:03:03 -0500 Subject: [PATCH 2/3] Ignore web vscode test folder --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aaec6554..8e8f5c8b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ package-lock.json .DS_Store .vscode/settings.json @types/*.js -@types/*.js.map \ No newline at end of file +@types/*.js.map +.vscode-test-web/ From cce9f53ed07772c5984a9a0e0adbda0426bbf4f6 Mon Sep 17 00:00:00 2001 From: Esteban Dalel R Date: Sat, 16 Jul 2022 21:08:41 -0500 Subject: [PATCH 3/3] Added VSCodium as supported IDE --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bb42118f..f0c42857 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ You may also highlight and right click on the code, you will find the 'Get Pull ### Daily Summary -Get an overview of which issues and PR reviews are assigned to you. Both on the current repository and across all GitHub. +Get an overview of which issues and PR reviews are assigned to you. Both on the current repository and across all GitHub. To use it, open the Watermelon sidebar. @@ -66,6 +66,7 @@ To use it, open the Watermelon sidebar. - macOS 10.11+, Windows 10+ or Linux - Visual Studio Code v1.63.0+ + - You may try it also in [VSCodium](https://www.vscodium.com/) with limited capabilities. - You must have Git locally installed (try `git --version` or [install it now](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)) ## Installation