Commit Graph

66 Commits

Author SHA1 Message Date
Joyce Er
73b34320c1 Add ability to continue desktop edit session in vscode.dev 2022-07-15 15:51:51 -07:00
Peng Lyu
f9f353c90b support vscode.dev link generation in notebook editor (#154183)
* support vscode.dev link generation in notebook editor

* Update comments.
2022-07-06 17:53:12 +02:00
Alex Ross
48fef0c1da Share link from File Menu shouldn't include active file (#153911)
Fixes #153537
2022-07-01 15:04:12 +02:00
Alex Ross
ffe53e8d71 Add a Share menu and a share vscode.dev command (#152765)
* Add a share menu
Fixes #146309

* Add vscod.dev command in github extension

* Make share menu proposed

* Add share submenu into editor context

* Add proposed to editor share menu
2022-06-27 09:56:36 +02:00
Babak K. Shandiz
766743629d Polish PR template picker (#151415)
* 🔨 Set ignoreFocusOut to true on PR template selection

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🔨 Translate PR template paths to relative in quick pick list

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 💄 Shorten line length

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* ⚗️ Update tests with latest required args

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* ⚗️ Update GitHub extension unit tests

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-06-10 12:54:37 +00:00
Johannes
0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Isidor Nikolic
96c9311e18 fix github push error handler regex (#151072)
Co-Authored-by: joaomoreno
Closes: #148568
Closes: #143083
Closes: #148326
2022-06-02 08:02:56 +00:00
Joyce Er
b9b2862341 Align auth scopes (#151045) 2022-06-01 16:50:05 -07:00
Roj
64e09597f1 Handle multiline commit messages when creating PR (#149426)
- This makes the body of the pull request non-empty when the commit message consists more than one line.
- The GitHub web client fills the body the same way, too, when you create a pull request.
- Some commit messages consist more than one line, like this one, which is giving more detail about the commit, and can be used as a shortcut to not write the same text when opening a pull request and on GitHub.
- Without these changes, the pull request title will be messed up if the commit message is similar to this.

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-05-18 11:13:32 -07:00
susiwen8
3854c3fa8e fix: close create fork message will create fork (#148438) 2022-05-02 05:49:00 -07:00
João Moreno
3b0b9e95cd fixes #148326 2022-04-28 14:49:00 +02:00
100paperkite
931997875e Fixes #147420 (#147930)
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-04-25 14:36:56 +02:00
Joyce Er
9fed2f7eb3 Enrich Git extension's remote source provider API (#147613)
* Allow custom title in remote source picker

* Include forks in query search results

* Support `RemoteSource.detail`

* Allow showing quickpicks in `getRemoteSources`

* Allow custom placeholder and remote source icons

* Add ability to customize placeholder

* Register and show recently opened sources

* Allow custom remote url labels

* Add a separator label for remote sources

* Update git-base typings

* Make showing recent sources opt in

* Add concept of recent remote source to `RemoteSourceProvider` concept

* Recent sources should be sorted by timestamp

* Pass current query to `getRemoteSources`

* Fix applying query
2022-04-22 07:25:06 -07:00
zz
a8097b5607 feat(git): Added remote url type option (#146124)
* feat(git): Added remote url type option

* Modify extension configuration

* Simplified code

Co-authored-by: Joao Moreno <joao.moreno@microsoft.com>
2022-04-05 06:49:50 -07:00
Babak K. Shandiz
7fc55261aa Ask user to select PR templates when forking a repository (#143733)
* Add getPullRequestTemplates method to discover templates

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Add method to quick pick for PR templates

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Handle possible PR templates

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Remove unnecessary return value assignment

Co-authored-by: João Moreno <mail@joaomoreno.com>

* Change comparison operands' order

Co-authored-by: João Moreno <mail@joaomoreno.com>

* Remove sorting template URIs in pickPullRequestTemplate

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Sort template URIs before showing quick-pick list

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Rename getPullRequestTemplates method to findPullRequestTemplates

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Find Github PR templates in-parallel using readdir/stat

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Export method for visibitliy in tests

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Add tests for Github PR template detection

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Add launcher configration to run Github tests

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 💄

* Replace stat with readDirectory for OS native case sensitivity

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Delete some files to avoid duplicate names on case insensitive envs

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* Exclude deleted files from test case expected result

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

Co-authored-by: João Moreno <mail@joaomoreno.com>
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-04-01 07:07:33 -07:00
Quan Zhuo
f3990bfe9b Fix issue #145134, fetch all repos for authenticated user (#145203)
Signed-off-by: Quan Zhuo <quanzhuo@kylinos.cn>
2022-03-29 15:02:11 +02:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Joao Moreno
06e1a2d4e0 fixes #139631 2022-01-11 20:59:54 +01:00
Ladislau Szomoru
bfad20be9d Extract remote source provider registry into the vscode.git-base extension (#137656) 2021-11-24 20:48:44 +01:00
Johannes Rieken
68e819043c use tsconfig.json#include for vscode.d.ts and vscode.proposed.d.ts, enables to remove most ref.d.ts-files 2021-11-09 15:53:35 +01:00
Johannes Rieken
9254a8cd27 move vscode.d.ts and vscode.proposed.d.ts into src/vscode-dts-folder, https://github.com/microsoft/vscode/issues/131165 2021-11-09 15:00:03 +01:00
Matt Bierner
c25cf4a01a Remove workaround cast 2021-09-16 17:21:01 -07:00
Matt Bierner
9e5ee5521a Pick up new TS version for building VS Code
Fixes a few instances of `Promise.all` and also adds an any cast to workaround an issue
2021-09-14 14:24:53 -07:00
Eric Amodio
c8c96aae9d Fixes # 122567: regex included .git in capture 2021-04-28 13:27:51 -04:00
Eric Amodio
874d19930e Calls new fork repo command in a codespace 2021-04-03 13:21:49 -04:00
Jackson Kearl
c18893214c Fix #120215 2021-03-30 20:06:09 -07:00
Eric Amodio
99c8eb6994 Fixes regex - codespaces remotes are missing .git 2021-03-25 18:24:41 -04:00
Eric Amodio
38160c823c Fixes codespaces fork on push
Codespaces might not have a push url on the remote, so use the fetch url
2021-03-24 17:11:24 -04:00
Eric Amodio
4b0118871f Adds codespaces lookup via command for desktop 2021-03-22 13:35:19 -04:00
Paul Adams
6c0c77926f Improve GitHub repository search
Sort by relevance (stars) instead of last updated
2021-03-19 18:42:03 -04:00
Eric Amodio
45ef649384 Adds support for fork on push for Codespaces 2021-03-18 18:46:50 -04:00
Eric Amodio
c24bfc336c 💄& localization 2021-03-05 17:54:27 -05:00
João Moreno
a5a37240bc fixes #108001 2020-11-30 11:51:01 +01:00
João Moreno
995983da54 github: get all branches 2020-11-27 14:02:13 +01:00
João Moreno
0321ca5d96 fixes #106664 2020-11-27 12:22:16 +01:00
João Moreno
549da12a6d fixes #104061 2020-11-12 11:34:09 +01:00
João Moreno
3d61a39074 fixes #103031 2020-11-10 16:52:35 +01:00
João Moreno
7efc22cc85 git.publish: do not await notification resolution
related to #109977
2020-11-09 11:37:10 +01:00
Rachel Macfarlane
373ea1b969 Fix build 2020-11-04 16:34:33 -08:00
Rachel Macfarlane
6eeaab8e5d Handle cancelled sign in when publishing to GitHub, fixes #96502 2020-11-04 16:22:52 -08:00
João Moreno
d2f51a9839 fixes #108444 2020-10-28 14:21:56 +01:00
Nicholas Rayburn
1562816430 Replace 'master' with branch head when publishing to github (#105878) 2020-09-16 11:02:03 +02:00
João Moreno
f06943f3cd fixes #105708 2020-09-03 11:27:42 +02:00
João Moreno
4d7ee02205 fixes #104248 2020-08-07 20:04:41 +02:00
João Moreno
b18015d0f8 fixes #101795 2020-08-05 11:40:28 +02:00
João Moreno
f3fed74a92 fixes #98931 2020-07-16 12:48:33 +02:00
James Lave
9074d576bb Add GitHub public repo option (#102406) 2020-07-16 11:19:39 +02:00
João Moreno
413e660e53 github: PushErrorHandler, fork and pr
fixes #102393
2020-07-15 15:56:44 +02:00
João Moreno
8b531a2246 update git.d.ts 2020-07-14 18:55:12 +02:00
João Moreno
4b4e0e0f3f rogue return 2020-07-01 11:09:58 +02:00