Commit Graph

15776 Commits

Author SHA1 Message Date
Henry
846e73efad Merge branch 'main' into unixTime 2025-01-16 16:25:44 -06:00
Ladislau Szomoru
abecfae1ec Git - add avatar resolution to git blame editor decoration hover (#238083)
* Initial implementation

* Add logging

* Improve avatar resolution
2025-01-16 21:33:08 +01:00
Ladislau Szomoru
7610cc1d19 Git - 💄 fix history item details provider name (#238045) 2025-01-16 20:25:19 +09:00
Christof Marti
118e6f5373 Local and remote proxy settings (microsoft/vscode-copilot-release#3821) 2025-01-16 12:13:46 +01:00
Ladislau Szomoru
eaba97f995 Git - extract history item detail provider (#238041)
* Initial refactor of hover commands

* Delete old code for hover commands

* More refactoring
2025-01-16 11:37:27 +01:00
henry
da45c202b2 added unix time to copyfiles for markdown 2025-01-15 22:54:34 -06:00
Martin Aeschlimann
37a00332c7 remove old MappedEditsProvider 2025-01-15 21:21:58 +01:00
Matt Bierner
6d87dc5bb7 Merge pull request #237069 from aslezar/fix-js-indent
feat: support custom js switch-case indentation
2025-01-15 11:42:48 -08:00
Alexandru Dima
e8d359e0aa Improve the updating of the current inline completion when the user modifies the file and hide it when necessary (#237964)
* Improve the updating of the current inline completion when the user modifies the file and hide it when necessary

* Use an OffsetEdit only for inline edits

* Skip failing integration test
2025-01-15 18:34:24 +01:00
Ladislau Szomoru
36a79b5ce6 Git - move stage/unstage commands to the ... menu (#237966) 2025-01-15 17:24:18 +01:00
Ladislau Szomoru
57e8c28877 GitHub - link provider for various hovers (#237961)
* Initial implementation

* Refactor code, add link to blame decoration

* Add links to timeline hover

* Saving my work

* Update remote order for "Open on GitHub" action

* Bug fixes

* Add link provider for graph hover

* Rename method
2025-01-15 16:30:43 +01:00
Matt Bierner
97bd3a732d Merge pull request #237928 from mjbvz/noble-blackbird
Pick up latest TS 5.7 recovery release
2025-01-14 15:55:32 -08:00
Matt Bierner
fcac4d7634 Pick up latest TS 5.7 recovery release 2025-01-14 15:34:31 -08:00
Roland Grunberg
8f4b28aedd Introduce 'keepWhitespace' property for snippet text edit abstractions.
- Restore original behaviour of bulk text edits adjusting whitespace
- Add testcase

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2025-01-14 15:33:18 -05:00
Tyler James Leonhardt
8eddff6613 Default to MSAL authentication 🚀 (#237920)
Here we go. Ref https://github.com/microsoft/vscode/issues/178740
2025-01-14 21:23:14 +01:00
Anthony Kim
35b2db3ed1 Bring back expose shell's environment - bash (#237844)
* bring back expose shell's environment bash

* I want to see why the test is failing the build

* Pass test, disable it until we enable for stable

---------

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-01-14 10:15:46 -08:00
Christof Marti
9559aadb77 Improve test (#237890) 2025-01-14 16:14:42 +01:00
Ladislau Szomoru
4cdae9cc06 GitHub - 💄 extract command strings (#237899) 2025-01-14 15:33:56 +01:00
Roland Grunberg
4f39e1da78 Respond to review comments.
- Rename adjustWhitespace to keepWhitespace
- Retain default behaviour of adjusting whitespace when keepWhitespace
  not defined

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2025-01-14 09:23:10 -05:00
Roland Grunberg
68c2087f8f Expose adjustWhitespace to TextEditor API.
- Disable adjustWhitespace in text edits with snippets so that code
  actions do not adjust snippet indentation by default
- Adjust Emmet extension so that adjustWhitespace is enabled
- Add testcase

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2025-01-14 09:23:10 -05:00
Ladislau Szomoru
924d7a84bf SCM - Add "Open on GitHub" action to history item hover (#237893) 2025-01-14 15:10:20 +01:00
Ladislau Szomoru
9ee0345b63 Git - fix "Open on GitHub" command (#237832) 2025-01-14 11:45:03 +01:00
aslezar
d8ea024868 chore: used same message decription for TS and JS 2025-01-14 12:49:27 +05:30
Shivam Garg
8d983686f3 Merge branch 'microsoft:main' into fix-js-indent 2025-01-14 12:28:45 +05:30
Matt Bierner
2064073697 Merge pull request #237217 from jogibear9988/svg-preview
support svg's in image preview
2025-01-13 09:22:47 -08:00
Ladislau Szomoru
eaa1502b23 Git - add more commands to the graph context menu (#237811)
* Git - add "Delete Branch" and "Delete Tag" actions

* Git - update the graph cherry pick command
2025-01-13 17:20:46 +01:00
Benjamin Pasero
06c07d24ef Asymmetry in Memento API's JSON encoding/decoding (fix #209479) (#237800) 2025-01-13 13:04:40 +01:00
Ladislau Szomoru
c636d93f53 Git - cleanup command names (#237790) 2025-01-13 11:47:18 +01:00
Aiday Marlen Kyzy
69d97b0773 Revert "Expose shell's environment - bash " (#237791)
Revert "Expose shell's environment - bash  (#237602)"

This reverts commit e6805d7927.
2025-01-13 10:54:20 +01:00
Shivam Garg
00d7778d98 Merge branch 'microsoft:main' into fix-js-indent 2025-01-13 01:42:01 +05:30
Ladislau Szomoru
d6fd2c075b Git - Add "Checkout" action to graph (#237734) 2025-01-12 19:51:10 +01:00
Anthony Kim
e6805d7927 Expose shell's environment - bash (#237602)
* start terminal shell env proposed

* fix typo

* progress on shellEnvDetectionCapability, mainThreadTerminalSI

* update IShellEnvDetectionCapability interface

* touch up on $shellEnvChange

* adjust IShellEnvDetectionCapability

* properly listen to envChangeEvent
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* Serialize env map, expose on exthost

* start adding to zsh script

* receive environment variable in extension host, properly escape "
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* clean up

* Add TODO: properly escape double quotes, figure out why JSON parse fails for bash

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* Fix nonce check, ignore PS1 for now in bash

* Add some simple PS1 string tests to deserializeMessage

* New approach of sending env entries separately

* be able to get EnvSingleVar

* few comments

* add function signature for start, set, end environment var

* implement EnvStart, EnvEntry, EnvEnd for single env entry

* deserialize env value for EnvEntry

* Remove unncessary comments

* only leave pwsh in this PR and exclude other shells

* keep exlcuding other shell env - only pwsh should remain

* Update src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vscode-dts/vscode.proposed.terminalShellEnv.d.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/contrib/terminal/common/scripts/shellIntegration-rc.zsh

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/contrib/terminal/common/scripts/shellIntegration-rc.zsh

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/common/extHost.protocol.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/capabilities.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* add comment for ShellEnvDetection

* change envs in shellEnvDetectionCapability to env

* Mention escaping character for EnvJSON similar to commandLine

* Do not fire env event if env has not changed

* add link to CommandLine

* follow main branch format so I avoid merge conflict

* remove resolved TODO

* Update src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* use vscode object equals

* add zsh update_env for shellIntegration-zsh.sh

* add EnvStart, EnvEntry, EnvEnd

* why doesnt if [ "$__vsc_stable" = "0" ]; work

* add test to check shellPath

* stop messing with formatting

* try to be more detail in testing

* clean up

* dont change the format

* properly use stable/insider flag so update_env on insiders

* modify test after feedback

* rename to *EnvironmentSingleVar and make it transactional via _pending env

* add docs for *EnvSingle and update bash script to conform to *EnvSingle

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>

* remove _env.clear from start and make _env non-readonly

* Update src/vs/platform/terminal/common/capabilities/shellEnvDetectionCapability.ts

---------

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-01-10 16:22:07 -08:00
Ladislau Szomoru
c8be65a66a SCM - add plumbing to support history item ref actions (#237687)
* Implement using classes (order is not working)

* A better implementation with order working as well

* Remove commands for the time being
2025-01-10 12:53:39 -08:00
Daniel Imms
55c35c836f Automate some pulling completions from upstream 2025-01-10 07:13:17 -08:00
Daniel Imms
7bfaf73501 Use terminal shell env when resolving commands in path (#237588)
---------

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Anthony Kim <62267334+anthonykim1@users.noreply.github.com>
2025-01-10 15:05:34 +01:00
Ladislau Szomoru
496eb294d6 Git/SCM - update "view" to "open" in the command titles (#237645) 2025-01-10 14:45:09 +01:00
Ladislau Szomoru
c6954727db Git - fix timeline item hover rendering (#237641) 2025-01-10 05:33:10 -08:00
Ladislau Szomoru
9bb633aaf7 GitHub - add "Open on GitHub" action to the SCM graph (#237635) 2025-01-10 13:52:01 +01:00
Ladislau Szomoru
a26fe3e466 Git - do not show "Open on GitHub" action for commits that have not been pushed to the remote (#237605) 2025-01-09 15:20:57 -08:00
Megan Rogge
4a8978f7de clean up terminal suggest code, fix bugs (#237599) 2025-01-09 21:31:20 +00:00
Ladislau Szomoru
744eec9595 Git - update base branch revision when it changes (#237558) 2025-01-09 12:47:34 +01:00
Parasaran
0c176cf4cf fix 227150: Added a recursive git clone button (#232497)
* fix 227150: Added a recursive git clone button

* Git - update command for "Clone Repository" action

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-01-09 11:24:05 +01:00
Tyler James Leonhardt
e6cba379a4 Try asking for different claims in another request (#237531)
I'm hoping that this solution will be good enough until we stop depending on the id token for certain things.

Fixes https://github.com/microsoft/vscode/issues/237370
2025-01-08 23:55:18 +01:00
Ladislau Szomoru
e03d4a0ea2 Git - Add "Open on GitHub" command to timeline hover (#237523) 2025-01-08 22:05:04 +01:00
Ladislau Szomoru
dca80ea667 GitHub - add "Open on GitHub" to blame hover (#237514)
* WIP - saving my work

* Refactor hover rendering code
2025-01-08 11:34:54 -08:00
Tyler James Leonhardt
691eaea3bd Remove old code, simplify properties (#237512) 2025-01-08 19:11:01 +01:00
Daniel Imms
2bcd6c467e Retry executeCommand integration test on failure
It's unclear how this happened and seems like a very rare flake.
2025-01-08 09:16:51 -08:00
Matt Bierner
23b62bc580 Merge pull request #237443 from mjbvz/steady-leopard
Finalize paste api and drop api tweaks
2025-01-08 01:03:37 -08:00
Rob Lourens
ade73d22b7 Fix php date method signatures (#237451)
Fix #237172
2025-01-08 03:56:42 +01:00
Matt Bierner
4daea74ba9 Finalize paste api and drop api tweaks
Fixes #30066

This finalizes the documentPaste api. This api allows extensions to attach metadata on text copy and change how content is pasted. Some examples:

- Updating imports for pasted code
- Inserting an image as an attachment in notebooks
- Pasting files converts them to relative text paths
2025-01-07 14:57:16 -08:00