Commit graph

148 commits

Author SHA1 Message Date
Ladislau Szomoru f285179711
GitHub - publish repository (#160348) 2022-09-08 00:29:58 -07:00
Joyce Er 9b994545f1
Generate head links for Continue Edit Session (#159833) 2022-09-02 16:32:48 +10:00
Joyce Er 65abd2b037
Add icon for Open on vscode.dev command (#158519) 2022-08-18 20:11:41 +02:00
Tyler James Leonhardt d8453c0440
Rev built-in versions of vscode-nls to 5.1.0 (#157530)
* rev version of vscode-nls to 5.1.0

* and yarn lock
2022-08-08 18:43:45 +02:00
Alex Ross 12b08be500
Only use the commit in share link when upstream (#156658)
Fixes #156627
2022-07-29 12:30:05 +02:00
Alex Ross a3b712e04e
Create a insiders.vscode.dev link when I use insiders for sharing (#156436)
Fixes #156255
2022-07-27 10:55:08 -04:00
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
Ladislau Szomoru 6624aea0d0
GitHub - Add translation comment not to translate the $(github) codicon (#154269)
* Add translation comment not to translate the $(github) codicon

* Add an additional comment
2022-07-06 08:11:44 -07: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 1634eaec83
Share link shows with untitled document (#153671)
Fixes #153544
2022-06-29 14:02:34 +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
Tyler Leonhardt 59cdc58ea0
update a few nls files with comments to ensure buttons don't get messed up 2022-04-27 14:26:48 -07: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
Robo 32d40cf44e
chore: update to electron 17 (#143223)
* chore: bump electron@17.0.0

* Revert "chore: revert to electron@13 (#143851)"

This reverts commit df645f1450.

* chore: bump electron@17.1.0

* Revert "ci: fix build with latest node-gyp"

This reverts commit c3e948aa30.

* chore: revert ci changes for node v16

* chore: update yarn.lock

* chore: bump electron@17.1.1
2022-03-11 00:51:37 +09:00
Robo df645f1450
chore: revert to electron@13 (#143851)
* Revert "chore: update to electron 16 (#137241)"

This reverts commit 01df559c18.
This reverts commit 46301339b7

* ci: fix remote compiler for sdl-scan

* chore: fix remote/.yarnrc

* chore: fix build/npm/postinstall.js

* chore: rm crash reporter from shared process

* chore: rm crash reporter from ext host

* chore: fix build/lib/layersChecker.ts

* :chore: preserve some more changes

* fix tests

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2022-02-24 17:49:49 +01:00
Robo 01df559c18
chore: update to electron 16 (#137241)
* chore: bump electron@15.3.0

* chore: bump node@16.x

* chore: enable render process reuse

* Revert "watcher - use `type` property for crash reporter location"

This reverts commit bfa488dd8f.

* Revert "watcher - enable crash reports on linux (#136264)"

This reverts commit af261488f8.

* chore: enable crashpad on linux

* chore: bump electron@15.3.1

* chore: update api changes

* chore: bump @vscode/sqlite3@5.0.3

* spec: skip non-context aware module unittests

* chore: fix perf hook integration with node environment

* fix: adopt fs api changes

* chore: fix integration tests

* chore: bump electron@15.3.2

* chore: bump electron@16.0.0

* temp(macOS): kill test instances in OSS

* Revert "temp(macOS): kill test instances in OSS"

This reverts commit b0d796c8d64227a5ec012c060bbbee7d9da27568.

* chore: update chromium version for clang downloader

* some 💄 changes

* align with changes

* adopt more fs.rm

* 💄

* chore: bump @vscode/sqlite3@5.0.4

* fix layers check to account for duplicated types from node.js

* update todo for type casts

* smoke - fix compile issue

* chore: update module cache

* watcher - fix unhandled rejection (fix #137416)

* ci: update node version

* enable stack dumping

* update electron types to 16.x

* chore: bump @vscode/sqlite3@5.0.5

Refs https://github.com/microsoft/vscode/issues/137496

* fix layer issue

* add `AbortSignal` to core types

* chore: update linux compile flags

Refs 797723ec83

* ci: fix linux build

* ci: update github ci cache

* ci: fix remote build in github ci

* ci: better fix for remote build

* chore: bump azure cache

* chore: fix merge conflict

* :chore: update to electron@16.0.2

* chore: bump @vscode/sqlite3@5.0.7

* ci: update to gcc-4.9 for remote

Refs https://github.com/microsoft/vscode/issues/137659

* ci: switch to buster for linux arm

Refs https://github.com/microsoft/vscode/issues/137927

* ci: fix build on linux arm64

* ci: fix arm client compiler toolchain

Refs #137927

* chore: bump electron@16.0.3

* ci: fix compile flags for the c toolchain

* chore: bump electron@16.0.4

* Add experimental dark mode flag (#139109)

* Add experimental dark mode flag

* Apply PR feedback

* chore: bump electron@16.0.6

* chore: bump electron@16.0.7

Fixes https://github.com/microsoft/vscode/issues/138792
Fixes https://github.com/microsoft/vscode/issues/139300

* chore: experimental highlight API

* smoke - fix compile issue

* FIXME: custom ELECTRON_RUN_AS_NODE with node worker

* Revert "chore: bump electron@16.0.7"

This reverts commit 5fd01cf37c.

* Revert "Revert "chore: bump electron@16.0.7""

This reverts commit a7f1b73951.

* chore: fix github linux workflow

* chore: address review feedback

* chore: bump electron@16.0.8

* ci: revert to stretch distro for linux arm

Refs https://github.com/microsoft/vscode/issues/137927

* ci: force build

* chore: update yarn.lock

* address feedback

* Revert "FIXME: custom ELECTRON_RUN_AS_NODE with node worker"

This reverts commit 7b48fa3732.

* ci: fix remote folder build

* chore: fix github linux ci

* 🆙 `versionSpec`

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
Co-authored-by: Raymond Zhao <raymondzhao@microsoft.com>
2022-02-08 20:09:00 +01:00
Alex Dima 0bf3071972
Fix hygiene 2022-02-04 15:49:50 +01: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
dependabot[bot] d0cf5a848a
Bump node-fetch from 2.6.1 to 2.6.7 in /extensions/github (#141538)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-26 07:52:39 -08:00
Joao Moreno 06e1a2d4e0
fixes #139631 2022-01-11 20:59:54 +01:00
Jonathan Carter 1921071835
Added theme image support to the markdown preview (#137820) 2021-12-06 18:06:02 -08: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 09c9d4c293
use enabledApiProposals instead of wildcard property, also update compilation units to only include d.ts-files that are needed, https://github.com/microsoft/vscode/issues/131165 2021-11-12 11:05:57 +01:00
Johannes Rieken a4d426a1c2
split vscode.proposed.d.ts into a file per proposal, https://github.com/microsoft/vscode/issues/131165 2021-11-12 09:48:17 +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
João Moreno 66e4d31ac8
fixes #127687 2021-07-01 15:58:05 +02:00
Eric Amodio 41b1406d3a Revert parts of "Fix #125395"
Re-enables GitHub extension in untrusted workspaces

From commit 01c6fb557d
2021-06-03 16:51:46 -04:00
Sandeep Somavarapu 01c6fb557d
Fix #125395 2021-06-03 16:14:25 +02:00
Robo bce4d71f64
chore: bump node@14.x in devDependencies (#122905) 2021-05-04 10:04:13 +02:00
Eric Amodio c8c96aae9d Fixes # 122567: regex included .git in capture 2021-04-28 13:27:51 -04:00
Sandeep Somavarapu 2130042ca4
disable github extension in virtual workspace as it depends on git 2021-04-22 17:44:51 +02:00
SteVen Batten f9fc28d47d update ext manifest schema validation and built-in exts 2021-04-21 11:54:42 -07:00
Miguel Solorio ac48f78dd6
Add icons for built-in extensions (fixes #81760) 2021-04-20 12:09:24 -07:00
João Moreno 47231d090d adopt trust in github 2021-04-19 11:58:10 +02:00
Matt Bierner 119581fc2a
Use more standard name for shared extension tsconfig
This enables Intellisense in the `tsconfig.base` file
2021-04-12 15:58:38 -07: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
Ladislau Szomoru 992cf6bd44
Update node-fetch (#116560) 2021-02-13 10:28:08 +01:00
João Moreno ec805db5ed
add repository field to extensions package.json 2021-01-29 15:30:45 +01:00
Alexandru Dima f74ad9692f
Align @types/* dev dependencies (#112718) 2020-12-18 13:28:39 +01:00
Alexandru Dima aa2864d53f
Remove most of the yarn license warnings 2020-12-18 10:26:14 +01: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 82aa8fc425
better git and github docs 2020-09-08 09:55:07 +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 27e06f526f update octokit in github 2020-07-17 11:27:00 +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
João Moreno 2aef194841 fixes #101409 2020-07-01 11:07:06 +02:00
João Moreno d3eab32eca fixes #100479 2020-07-01 11:01:59 +02:00
João Moreno 53e793d7fc use workspace fs 2020-07-01 10:58:57 +02:00
João Moreno ffda3a18cc fixes #100183 2020-07-01 10:51:55 +02:00
João Moreno 3e492a3a5c fixes #99447 2020-07-01 10:24:07 +02:00
Rachel Macfarlane 629e1d7e16 Remove old getSessions and login methods from auth provider API 2020-06-24 15:33:09 -07:00
João Moreno 208d556b1d
fixes #100015 2020-06-17 09:41:55 +02:00
João Moreno 38cf89bcb3
fixes #97396 2020-06-03 14:24:40 +02:00
João Moreno a67d00db97
fixes #98157 2020-05-20 14:04:03 +02:00
João Moreno dedf4e7903
address publish to GitHub awareness 2020-05-20 11:37:52 +02:00
João Moreno 4bb364cc8e github: publish workspace folder 2020-05-19 11:57:41 +02:00
João Moreno a85a2e6044 move credential provider to github 2020-05-18 21:04:29 +02:00
João Moreno b629dba454 export to, clone from github 2020-05-18 15:51:15 +02:00
João Moreno ee4e97fe6a publish command 2020-05-18 14:59:22 +02:00
João Moreno 12b150a961 github: remote source provider 2020-05-18 14:37:53 +02:00
João Moreno 1c98bbbbc2 add github extension 2020-05-18 14:13:08 +02:00