Commit Graph

15004 Commits

Author SHA1 Message Date
Alex Ross
955c13c0b9 [] in sticky scroll is not highlighted correctly when tree sitter is enabled (#229849)
Fixes #229556
2024-09-26 19:24:23 +02:00
Tyler James Leonhardt
eef6488c2c Use select_account prompt when no account is specified (#229778)
Fixes https://github.com/microsoft/vscode/issues/226892
2024-09-25 21:44:09 -07:00
Ladislau Szomoru
44d05b9dfa Git - cheery-pick now handles the case where the changes are already present on the current branch (#229731) 2024-09-25 18:07:16 +02:00
Alex Ross
d3c7f32e17 Ternary ?: aren't colors correctly (#229719)
* Ternary ?: aren't colors correctly
and improve some other token scopes
Fixes #229555

* Update tests
2024-09-25 17:11:31 +02:00
Alex Ross
764afff92a this isn't being highlighted (#229724)
* `this` isn't being highlighted
Fixes #229554

* Update tests
2024-09-25 17:08:29 +02:00
Ladislau Szomoru
bdc3e5e2f4 SCM Graph - only show one badge per color/type (#229716) 2024-09-25 16:18:56 +02:00
Alex Ross
cedad6e8fc Support targetting multiple scopes in a theme (#229717)
and fix font style
Fixes #229557
Fixes #229553
2024-09-25 16:18:15 +02:00
Gabriela Araujo Britto
0f9abf3c35 [typescript-language-features] Expandable hover (#228255)
* add verbosity level to hover provider

* cleanup

* update minimum ts version

* get `canIncreaseVerbosityLevel` from server response

* add expandable hover experimental setting
2024-09-24 09:22:09 -07:00
Alex Ross
ef76a382d5 Colorization tests for tree sitter (#229517)
* Colorization tests for tree sitter
Part of #210475

* Fix tests

* Actually fix tests

* Fix line endings

* Register preferTreeSitter setting
2024-09-24 11:36:05 +02:00
Raymond Zhao
38adfa0956 Revert "Colorization tests for tree sitter" (#229444)
Revert "Colorization tests for tree sitter (#229376)"

This reverts commit ccefcfa4fa.
2024-09-23 15:07:42 -07:00
Alex Ross
ccefcfa4fa Colorization tests for tree sitter (#229376)
* Colorization tests for tree sitter
Part of #210475

* Fix tests

* Actually fix tests

* Fix line endings
2024-09-23 21:31:57 +02:00
Matt Bierner
4840eb096d Enable semantic features for untitled files on web (#229426)
Fixes #229424

Also removes an old scheme that is no longer used
2024-09-23 11:55:37 -07:00
Ladislau Szomoru
deea09a36f Git - remove the usage of cp.execSync from git integration test. Add assertions. (#229395) 2024-09-23 18:00:23 +02:00
Tyler James Leonhardt
3b1cb3b155 Bring back refresher (#229246)
Now we will refresh tokens over time so extensions can cache auth sessions in memory and just need to listen to the event to decide when to refresh their caches.
2024-09-21 01:26:53 +02:00
Tyler James Leonhardt
f26394d477 Use Electron fetch to get Proxy settings properly (#229202)
* Attempt to use Electron fetch

* Remove Content-Length header because electron doesn't like it

"Apparently Chromium doesn’t want the caller to set content-length, but will set it itself."
2024-09-20 20:24:41 +02:00
Ladislau Szomoru
a90e2f4e0f Git - attempt to improve test reliability (#229160) 2024-09-20 16:55:45 +02:00
Ladislau Szomoru
55ed7b6ebc Git - error handling while computing merge base (#229134) 2024-09-20 11:05:59 +02:00
Matt Bierner
0685b0a619 Revert "Use separate div for image preview transparency grid" (#229082)
This reverts commit 945d4cdda8.

Fixes #229019
2024-09-19 19:51:50 -07:00
Tyler James Leonhardt
52b0ec07b8 Allow Multi-account in GitHub Auth in Insiders (#229106) 2024-09-20 00:31:40 +02:00
dependabot[bot]
2e4877af7c Bump dompurify from 3.0.5 to 3.1.3 in /extensions/markdown-language-features (#228773)
Bump dompurify in /extensions/markdown-language-features

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.0.5 to 3.1.3.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.0.5...3.1.3)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 16:33:30 -07:00
Gianluca Cappai
59f6431095 Fix open html anchor link in markdown preview (#228633)
use node.getAttribute instead of node.href

Co-authored-by: Gianluca Cappai <gcappai.dev@@gmail.com>
Co-authored-by: Matt Bierner <matb@microsoft.com>
2024-09-18 14:37:55 -07:00
Daniel Rosenwasser
75c0fc210a Provide project/file name in TypeScript loading indicator (#225643)
* Specify which project is loading at any given time. Provide an indicator for file opens.

* Just use `vscode.workspace.asRelativePath`.

* Remove unused import.
2024-09-18 10:56:50 -07:00
Ladislau Szomoru
cf4bc01bfb Git - correctly detect merge base when creating a branch from a remote branch (#228942) 2024-09-18 17:02:02 +02:00
Ladislau Szomoru
04d2ba7d90 GitHub - fix welcome message (#228956) 2024-09-18 16:31:52 +02:00
Ladislau Szomoru
47a8de0b9f SCM Graph - add option to return only a subset of history item references (#228932) 2024-09-18 12:36:57 +02:00
Benjamin Pasero
b218243b76 ts - detect more patterns of disabled node_modules watching 2024-09-18 10:07:16 +02:00
Benjamin Pasero
1fb9bc85a4 ts - refine log when canUseWatchEvents is not used 2024-09-18 10:07:16 +02:00
Benjamin Pasero
e36b6d7d54 ts - log when canUseWatchEvents is not used 2024-09-18 10:07:16 +02:00
Ladislau Szomoru
dfa3888fbd Git - use --stdin when running git log (#228817)
* Revert "Git - truncate commit hashes before running git log (#228643)"

This reverts commit 26ae4519ca.

* Use the --stdin flag when running git log
2024-09-17 13:36:14 +02:00
Ladislau Szomoru
1d10fa2268 Git - terminal shell integration to handle missing sub command (#228809) 2024-09-17 11:54:11 +02:00
Matt Bierner
bd324432e0 Bump default target to es2022 (#228744)
From #227409
2024-09-16 18:07:04 +02:00
Benjamin Pasero
88b706b2bb watcher - support suspend/resume for non-correlated requests (#228703) 2024-09-16 12:24:34 +02:00
Martin Aeschlimann
f0cdaab75f [html] Pasting HTML code adds extra closing tag on first line (#228662) 2024-09-15 19:51:51 +02:00
Ladislau Szomoru
26ae4519ca Git - truncate commit hashes before running git log (#228643) 2024-09-14 19:50:20 -07:00
Ladislau Szomoru
31e597ccdd Git - only compute incoming changes decorations when needed (#228611) 2024-09-14 00:49:13 +02:00
Ladislau Szomoru
a8343f15fa Git - retrieve references as part of updating the model (#228609)
* Git - retrieve references as part of updating the model

* Remove extra import
2024-09-13 15:31:26 -07:00
Ladislau Szomoru
056af29c9b SCM Graph - Add "Go to Current History Item" action (#228600)
* Reveal current history item if it is already part of the tree

* Fetch current history item
2024-09-13 23:35:29 +02:00
Tyler James Leonhardt
6bd8e90fb7 Misc fixes for Sovereign Clouds (#228591)
* Misc fixes for Sovereign Clouds

* For now, use the URL handler since the main flow doesn't work right now because the localhost redirect url needs to be in those environments
* Includes the name of the cloud in the PCAs so that we have separation between the auth providers
* extra logging for the URL Handler

* fix tests
2024-09-13 21:57:12 +02:00
Ladislau Szomoru
597b5e965b SCM Graph - Add more commands to the context menu (#228480)
* SCM Graph - add "Checkout (Detached)" command

* Add "Cherry Pick" command
2024-09-13 15:36:52 +02:00
Ladislau Szomoru
4376d38fcd SCM Graph - Add "Create Branch..." command to the history item context menu (#228438) 2024-09-13 12:15:16 +02:00
Ladislau Szomoru
8a9caf323a SCM Graph - Add "Create Tag" action to history item context menu (#228428) 2024-09-13 10:17:44 +02:00
Tyler James Leonhardt
db2a1df708 Use an EventBufferer to ensure only one event across PCAs (#228400) 2024-09-13 01:24:41 +02:00
Don Jayamanne
c4645ea0ec Restore changes to ipynb extension to serialize notebook in node worker for desktop (#228319)
* Revert usage of node worker due to failing web compilation

* Revert "Revert usage of node worker due to failing web compilation"

This reverts commit 3190f58c7e.

* Ensure node worker is used only in desktop bundle of ipynb extension

---------

Co-authored-by: Aaron Munger <aamunger@microsoft.com>
2024-09-12 23:56:34 +02:00
Ladislau Szomoru
adc7335b1d SCM Graph - fix action item title and order (#228380) 2024-09-12 21:23:31 +02:00
Alex Ross
e4ffea4865 Add test for issue with new YAML grammar (#228265)
Part of #224862
2024-09-12 14:32:06 +02:00
Ladislau Szomoru
1d3895d045 SCM Graph - better handling of graph refresh (#228329)
* Initial implementation

* Removed refs should be also removed from the filter
2024-09-12 12:06:25 +02:00
Don Jayamanne
102ff8db3f Revert usage of node worker due to failing web compilation (#228318)
* Revert usage of node worker due to failing web compilation

* fix linter error
2024-09-12 17:44:02 +09:00
Peng Lyu
94cd4ed34c Merge pull request #226632 from nojaf/notebook-serialization-worker
Use Worker to serialize Notebook
2024-09-11 17:36:51 -07:00
Tyler James Leonhardt
b8be82f239 Workaround MSAL behavior (#228289)
* Workaround MSAL behavior

The main change this makes is around what scopes are being requested.

Due to an MSAL or Identity issue, if you request a resource like `FOO/user_impersonation` and then `email`... the 2nd call does not use Graph and instead uses FOO and FOO may not have an `email` scope available. To work around this, if we detect that all scopes being requested are [OIDC scopes](https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc#openid-connect-scopes) then we tack on `User.Read` to make sure that what gets returned is in fact from Graph. This prevents an infinite loop that was happening before. MSAL/Identity should fix this behavior, but this works for now.

Additionally, MSAL does already tack on OIDC scopes to all requests so I removed the logic that adds those.

Couple small things:
* Make sure MSAL logs get logged (trace)
* Use a Sequencer to make sure acquireToken calls are done sequentially just in case.

* more comment
2024-09-12 02:29:29 +02:00
Matt Bierner
94d5b2a31e Remove ts-expect-error 2024-09-11 14:49:06 -07:00