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/ 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/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 diff --git a/package.json b/package.json index 60cd9dcc..7d525c9e 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": [ { @@ -281,7 +278,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", @@ -293,6 +291,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",