Commit Graph

12179 Commits

Author SHA1 Message Date
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
heartacker 80f8b99e3c add the git.fetch action to the frist header menu in scm in order to be easier to fetch the repo immediately (#137940) 2022-04-05 15:32:32 +02:00
Matt Bierner d0767451a9 Adding test for renaming the definition itself 2022-04-04 15:56:29 -07:00
Matt Bierner 7831ff6a32 Reuse references in rename requests 2022-04-04 15:56:29 -07:00
Matt Bierner baa7434480 Use header text as placeholder for md rename
For #146291
2022-04-04 15:56:28 -07:00
rebornix 024e40fb31 💄 2022-04-04 14:20:07 -07:00
rebornix ab2a987919 fix #146750. 2022-04-04 14:19:15 -07:00
tharbakim fb5e446a3d Fix detection of CSS Preprocessor Comments at Start of File in Emmet Extension (#146121)
* Fix for PartialStyleSheet getting stuck in loop

Adds a clause for detecting `//` as a comment marker when working backwards through a file, preventing the parser from getting stuck when the comment starts at 1:1

* Modify change to detect start of file instead of skipping additional `/` characters now that we know the issue only occurs at offset 0.

Co-authored-by: Tyler McEnaney <tharbakim@hotmail.com>
2022-04-04 12:02:15 -07:00
Martin Aeschlimann a0612b2e04 [html] A 'return' statement can only be used within a function body. Fixes #143220 2022-04-04 18:19:29 +02:00
Martin Aeschlimann c7a685113b Revert "[html] A 'return' statement can only be used within a function body. Fixes #143220"
This reverts commit 56661ec16a.
2022-04-04 18:19:29 +02:00
Martin Aeschlimann 3698a0b247 polish json schema language info 2022-04-04 16:17:49 +02:00
Martin Aeschlimann 27729fb7c6 JSON language status isn't "pin friendly". Fixes #146561 2022-04-04 11:30:41 +02:00
Matt Bierner 44ffeba237 Switch to provider based model for on drop
This simplifies implementing the provider and also give potentially gives us more control over how the drop happens
2022-04-01 15:51:38 -07:00
Matt Bierner 5451119820 Adopt SnippetTextEdit for drop 2022-04-01 15:51:38 -07:00
rebornix 943186d56c update nb tests. 2022-04-01 12:10:23 -07:00
Matt Bierner e9636bbce1 Don't have space in snippet
Fixes #146503
2022-04-01 11:15:25 -07:00
Matt Bierner ca267e3f5e Error on rename in bare file links in definition 2022-04-01 11:15:24 -07:00
Matt Bierner 114b340f7a Fix explicit references to own file 2022-04-01 11:15:24 -07:00
Martin Aeschlimann 1305aac01e [css] Add CSS formatting option to place open brace on new line. Fixes #146398 2022-04-01 18:03:34 +02:00
Benjamin Pasero e8f26b998e git - use same icon for comparing as core diff editor
//cc @lszomoru
2022-04-01 17:20:31 +02: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
Johannes d58ff261d4 add integration tests for LiveShare specific notebook commands, https://github.com/microsoft/vscode/issues/125757 2022-04-01 10:57:49 +02:00
Martin Aeschlimann 7889866189 Merge pull request #146459 from andschwa/patch-1
Delete built-in PowerShell snippets
2022-04-01 09:41:55 +02:00
Matt Bierner 8b7086afdb Fixing false positive ref link being detected 2022-03-31 19:09:14 -07:00
Matt Bierner c39d09a4c0 Working on initial support for renaming refs in md
For #146291
2022-03-31 18:28:23 -07:00
Matt Bierner 6b573340bd Fixing references on header when looking at file extensions 2022-03-31 15:31:41 -07:00
Matt Bierner 8a6a300216 Simplify code for dealing with link definitions 2022-03-31 15:11:35 -07:00
Matt Bierner 57dffde3d4 Trying to clean up md link structure by moving defintion up a level 2022-03-31 15:11:35 -07:00
Matt Bierner 0e65adbda8 Initial work on rename in markdown
For #146291

Also fixes references triggered on a definition link
2022-03-31 15:11:34 -07:00
rebornix 0a2707bbf0 fix #146397. Clear container for html and plain text renderer. 2022-03-31 14:00:34 -07:00
Matt Bierner 6da26a9351 Fix duplicate resources sometimes opened from references 2022-03-31 11:56:37 -07:00
Matt Bierner e32a13be77 Fix references to header to return just the span of the header itself and not its body 2022-03-31 11:56:37 -07:00
Matt Bierner 464e50f207 Use more consistent method names 2022-03-31 11:56:37 -07:00
Matt Bierner 8d5ae2bdd9 Add auto enum case for ts.locale
Fixes #146436
2022-03-31 11:56:36 -07:00
Andy Schwartzmeyer e1533409f1 Delete built-in PowerShell snippets
These two snippets conflict with the PowerShell comment syntax (`<#`),
and since snippet suggestions are enabled by default,
it means it's not possible to type `<#` followed by an enter,
which is very often desired.
The enter unfortunately chooses to insert an entirely unhelpful `#endregion` snippet.
2022-03-31 11:41:06 -07:00
Johann Pardanaud 6a6df96d5e Improve UX for markdown snippets (#146431)
Allow to directly paste a link markdown when using the `link` and `image` snippets
2022-03-31 09:44:24 -07:00
Matt Bierner 55719a3dc5 Remove dup type 2022-03-30 16:33:34 -07:00
Matt Bierner 1bb96d5d72 Mark methods private 2022-03-30 16:33:34 -07:00
Matt Bierner afad64c534 Move function to method 2022-03-30 16:33:33 -07:00
Matt Bierner 174924d73c Clean up link data structure 2022-03-30 16:33:33 -07:00
Matt Bierner cfe0b1d480 Extract getReferencesToLink and getReferencesToReferenceLink 2022-03-30 16:33:32 -07:00
Matt Bierner 2510e3dca6 Refactoring md refs provider to prep for re-use 2022-03-30 16:33:32 -07:00
Matt Bierner 590a9bf8a3 Make sure double click in md preview always reveals target line
Fixes #146333
2022-03-30 15:49:56 -07:00
Matt Bierner 8a4f35d96a Better comment 2022-03-30 15:49:56 -07:00
Gabriela Araujo Britto 88e3d49156 support label details (#146270) 2022-03-30 15:27:50 -07:00
Matt Bierner 6c7ba2de69 Fix refs to own file being included in md ref results from other file
For #146277
2022-03-30 15:22:15 -07:00
Matt Bierner 982a353285 workspaceFile -> workspacePath 2022-03-30 15:14:34 -07:00
Matt Bierner f3cb3510b8 Use joinLines helper 2022-03-30 15:14:34 -07:00
Matt Bierner bea2ce0111 Add assertReferencesEqual helper 2022-03-30 15:14:33 -07:00
Matt Bierner f68db8f6ba Compare normalized fragments for md references
For #146277
2022-03-30 15:14:33 -07:00