Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,7 @@ preview-src
.eslintcache
.eslintcache.browser
*.tsbuildinfo
.vscode-test-web
.vscode-test-web
*.orig
*.re
*.patch
42 changes: 32 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
"--extensionDevelopmentPath=${workspaceFolder}",
"--disable-extension=GitHub.vscode-pull-request-github"
],
"skipFiles": ["<node_internals>/**/*.js", "**/node_modules/**/*.js"],
"skipFiles": [
"<node_internals>/**/*.js",
"**/node_modules/**/*.js"
],
"smartStep": true,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/*.js"]
"outFiles": [
"${workspaceFolder}/dist/*.js"
]
},
{
"name": "Launch Extension in Webworker",
Expand All @@ -26,10 +31,15 @@
"--disable-extension=GitHub.vscode-pull-request-github",
"--disable-extension=GitHub.vscode-pull-request-github-insiders"
],
"skipFiles": ["<node_internals>/**/*.js", "**/node_modules/**/*.js"],
"skipFiles": [
"<node_internals>/**/*.js",
"**/node_modules/**/*.js"
],
"smartStep": true,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/browser/*.js"]
"outFiles": [
"${workspaceFolder}/dist/browser/*.js"
]
},
{
"name": "Watch & Launch Extension",
Expand All @@ -40,11 +50,16 @@
"--extensionDevelopmentPath=${workspaceFolder}",
"--disable-extension=GitHub.vscode-pull-request-github",
],
"skipFiles": ["<node_internals>/**/*.js", "**/node_modules/**/*.js"],
"skipFiles": [
"<node_internals>/**/*.js",
"**/node_modules/**/*.js"
],
"preLaunchTask": "npm: watch",
"smartStep": true,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/*.js"]
"outFiles": [
"${workspaceFolder}/dist/*.js"
]
},
{
"name": "Watch & Launch Extension in Webworker",
Expand All @@ -56,11 +71,16 @@
"--extensionDevelopmentPath=${workspaceFolder}",
"--disable-extension=GitHub.vscode-pull-request-github",
],
"skipFiles": ["<node_internals>/**/*.js", "**/node_modules/**/*.js"],
"skipFiles": [
"<node_internals>/**/*.js",
"**/node_modules/**/*.js"
],
"preLaunchTask": "npm: watch",
"smartStep": true,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/browser/*.js"]
"outFiles": [
"${workspaceFolder}/dist/browser/*.js"
]
},
{
"name": "Extension Tests",
Expand All @@ -77,7 +97,9 @@
"preLaunchTask": "npm: compile:test",
"smartStep": true,
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/out/src/test/**/*.js"]
"outFiles": [
"${workspaceFolder}/out/src/test/**/*.js"
]
},
{
"type": "pwa-node",
Expand Down Expand Up @@ -123,4 +145,4 @@
]
}
]
}
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.0.0
- Autodetect Azure DevOps URL and project name from remote.
- Fixing a lot of bugs and preparation for AI integration.

## 0.2.3
- Fixed [#86](https://github.com/ankitbko/vscode-pull-request-azdo/issues/86) thanks to [danigt91](https://github.com/danigt91)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ It's easy to get started with Azure Devops Pull Requests for Visual Studio Code.
1. Make sure you have VSCode version 1.52.0 or higher.
1. Reload VS Code after the installation (click the reload button next to the extension).
1. Open your desired Azure Devops repository.
1. You will need to configure the `azdoPullRequests.projectName` and `azdoPullRequests.orgUrl` setting. You can configure it in workspace settings and commit it so others in your team wouldn't need to do this configuration again. (Look at the next section to understand the format of these settings).
1. (Optional) Extension will autodetect the AzDO URL from git remote. In case it fails, you can configure the `azdoPullRequests.projectName` and `azdoPullRequests.orgUrl` setting. You can configure it in workspace settings and commit it so others in your team wouldn't need to do this configuration again. (Look at the next section to understand the format of these settings).
1. Signin to VS Code using same Microsoft account that you use to signin to Azure Devops. Authentication will work automatically. **PAT token is no longer required**.
1. You should be good to go!

Expand Down
70 changes: 46 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"enableProposedApi": false,
"preview": true,
"version": "0.2.3",
"version": "1.0.0",
"publisher": "ankitbko",
"engines": {
"vscode": "^1.79.0"
"vscode": "^1.97.0"
},
"categories": [
"Other"
Expand All @@ -38,10 +38,12 @@
"title": "Azdo Pull Requests",
"properties": {
"azdoPullRequests.projectName": {
"type": "string"
"type": "string",
"default": ""
},
"azdoPullRequests.orgUrl": {
"type": "string"
"type": "string",
"default": ""
},
"azdoPullRequests.patToken": {
"type": "string",
Expand Down Expand Up @@ -359,6 +361,13 @@
"enablement": "!commentThreadIsEmpty",
"icon": "$(settings)"
},
{
"command": "azdopr.applySuggestionWithCopilot",
"title": "Apply Suggestion with Copilot",
"category": "AzDO Pull Requests",
"enablement": "!commentThreadIsEmpty",
"icon": "$(lightbulb)"
},
{
"command": "azdopr.editComment",
"title": "Edit Comment",
Expand Down Expand Up @@ -393,13 +402,13 @@
"category": "AzDO Pull Requests"
},
{
"command": "pr.markFileAsViewed",
"command": "azdopr.markFileAsViewed",
"title": "Mark File As Viewed",
"category": "AzDO Pull Requests",
"icon": "$(check)"
},
{
"command": "pr.unmarkFileAsViewed",
"command": "azdopr.unmarkFileAsViewed",
"title": "Mark File As Not Viewed",
"category": "AzDO Pull Requests",
"icon": "$(eye-closed)"
Expand Down Expand Up @@ -642,12 +651,12 @@
"when": "view =~ /(azdopr|azdoprStatus):azdo/ && viewItem =~ /filechange:MODIFY/"
},
{
"command": "pr.markFileAsViewed",
"command": "azdopr.markFileAsViewed",
"when": "view =~ /(azdopr|azdoprStatus):azdo/ && viewItem =~ /filechange(.*):unviewed/",
"group": "inline"
},
{
"command": "pr.unmarkFileAsViewed",
"command": "azdopr.unmarkFileAsViewed",
"when": "view =~ /(azdopr|azdoprStatus):azdo/ && viewItem =~ /filechange(.*):viewed/",
"group": "inline"
}
Expand Down Expand Up @@ -678,6 +687,11 @@
"command": "azdopr.changeThreadStatus",
"group": "inline",
"when": "commentController =~ /^azdopr-(browse|review)/ && !commentThreadIsEmpty"
},
{
"command": "azdopr.applySuggestionWithCopilot",
"group": "inline@0",
"when": "commentController =~ /^azdopr-(review)/ && !(comment =~ /hasSuggestion/)"
}
],
"comments/comment/title": [
Expand Down Expand Up @@ -760,63 +774,68 @@
"watch:web": "webpack --watch --mode development --config-name extension:webworker --config-name webviews"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^7.0.3",
"@semantic-release/git": "^10.0.1",
"@types/chai": "^4.2.14",
"@types/glob": "7.1.3",
"@types/lru-cache": "^5.1.0",
"@types/marked": "^0.7.2",
"@types/mocha": "^5.2.2",
"@types/mocha": "^10.0.10",
"@types/node": "^12.12.70",
"@types/react": "^16.12.0",
"@types/react-dom": "^16.8.2",
"@types/sinon": "7.0.11",
"@types/temp": "0.8.34",
"@types/uuid": "^8.3.0",
"@types/vscode": "1.79.0",
"@types/webpack-env": "^1.16.0",
"@types/vscode": "^1.97.0",
"@types/webpack-env": "^1.18.8",
"@typescript-eslint/eslint-plugin": "4.18.0",
"@typescript-eslint/parser": "4.18.0",
"@vscode/test-electron": "^1.6.1",
"@vscode/test-web": "^0.0.8",
"@vscode/vsce": "2.15.0",
"@vscode/vsce": "3.2.2",
"assert": "2.0.0",
"browserify-zlib": "0.2.0",
"buffer": "^6.0.3",
"chai": "^4.2.0",
"constants-browserify": "^1.0.0",
"conventional-changelog-conventionalcommits": "7",
"crypto-browserify": "3.12.0",
"css-loader": "7.1.2",
"dotenv": "^8.2.0",
"esbuild-loader": "2.10.0",
"esbuild-loader": "^4.3.0",
"eslint": "7.22.0",
"eslint-cli": "1.1.1",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"fork-ts-checker-webpack-plugin": "6.1.1",
"glob": "7.1.6",
"https-browserify": "^1.0.0",
"jsdom": "16.4.0",
"jsdom": "26.0.0",
"jsdom-global": "3.0.2",
"json5": "2.2.0",
"json5": "2.2.2",
"merge-options": "3.0.4",
"minimist": "^1.2.5",
"mkdirp": "1.0.4",
"mocha": "^7.0.1",
"mocha-junit-reporter": "1.23.0",
"mocha-multi-reporters": "1.1.7",
"mocha": "^11.1.0",
"mocha-junit-reporter": "2.2.1",
"mocha-multi-reporters": "1.5.1",
"path-browserify": "1.0.1",
"prettier": "2.2.1",
"process": "^0.11.10",
"raw-loader": "4.0.2",
"react-testing-library": "7.0.1",
"remark-gfm": "^1.0.0",
"semantic-release": "^24.2.3",
"sinon": "9.0.0",
"source-map-support": "0.5.19",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"style-loader": "2.0.0",
"svg-inline-loader": "^0.8.2",
"temp": "0.9.4",
"terser-webpack-plugin": "5.1.1",
"terser-webpack-plugin": "5.3.11",
"ts-auto-mock": "^3.1.0",
"ts-loader": "8.0.18",
"tty": "1.0.1",
Expand All @@ -829,20 +848,22 @@
"webpack-cli": "6.0.1"
},
"dependencies": {
"@octokit/rest": "^18.0.0",
"@octokit/types": "^5.1.0",
"@types/diff": "^7.0.1",
"@vscode/chat-extension-utils": "^0.0.0-alpha.5",
"@vscode/prompt-tsx": "^0.3.0-alpha.17",
"apollo-boost": "^0.1.22",
"apollo-link-context": "^1.0.12",
"azure-devops-node-api": "^10.1.2",
"cross-fetch": "^3.0.5",
"diff": "^7.0.0",
"es6-promise": "^4.2.5",
"events": "3.2.0",
"fast-deep-equal": "^3.1.3",
"git-credential-node": "^1.1.0",
"graphql": "^14.0.2",
"js-base64": "^2.5.2",
"jsonwebtoken": "^9.0.2",
"lru-cache": "^5.1.1",
"marked": "^0.8.0",
"marked": "^4.0.10",
"moment": "^2.22.1",
"node-emoji": "^1.8.1",
"node-fetch": "3.0.0-beta.9",
Expand All @@ -853,6 +874,7 @@
"react-markdown": "^5.0.3",
"react-syntax-highlighter": "^15.4.3",
"ssh-config": "^2.0.0-alpha.3",
"tar": "^6.2.1",
"tunnel": "0.0.6",
"uuid": "8.3.2",
"vscode-extension-telemetry": "^0.1.6",
Expand All @@ -862,7 +884,7 @@
"spawn-sync": "^2.0.0"
},
"resolutions": {
"webpack/**/tar": "^4.4.2"
"webpack/**/tar": "^6.2.1"
},
"license": "MIT"
}
Loading
Loading