Commit Graph
16034 Commits
Author SHA1 Message Date
Enzo NunesandAiday Marlen Kyzy d9145a291d Fix line comment action for makefiles (Fixes #234464) (#243283)
* Fix line comment action for makefiles (Fixes #234464)

Pass languageId to _analyzeLines to distinguish makefiles
from the rest of the languages.

Add test to _analyzeLines specifically for makefiles.

* Remove hardcoded string. Apply fix at LanguageConfigurationService. Add comment rule to specify fixed column token placement. Change test scope to test line command instead of just testing the _analyzeLines method.

* change added field to use bool instead of user-chosen offset

* add check to remove comment detection

* add check to following space removal

* update branch. add config interface for new noindent option. adapt existing logic for new config format.

* fix small issue with following space removal

* polish

---------

Co-authored-by: Aiday Marlen Kyzy <amarlenkyzy@microsoft.com>
2025-06-06 11:22:37 +02:00
Tyler James Leonhardt 89fbfc20ab Fix race condition in unregistering authentication providers (#250667)
A minimal change for endgame.
2025-06-04 13:35:13 -07:00
Ladislau Szomoru 39500b94ef GitHub - fix auth regression (#250556)
* Revert "GitHub - fix regression in `getOctokitGraphql()` (#249355)"

This reverts commit 3381c264e1.

* Fix graphql client caching
2025-06-03 13:13:53 -07:00
Martin Aeschlimann dc3a870478 Unresolved setting id in html setting (#248220) 2025-06-03 08:26:07 +00:00
Tyler James Leonhardt c235626145 issuer -> authorizationServer refactor (#250359)
* `issuer` -> `authorizationServer` refactor

Also:
* adds `authorizationServerGlobs` to the authentication contribution schema
* removes ugly MCP issuer hack and instead plumbs the authorizationServer down to the new auth providers
2025-06-02 17:38:21 -07:00
Martin Aeschlimann 5c6caa7eb6 Polish configure prompt files dialog (#250325)
* Polish comfigure prompt files dialog

* add rename
2025-06-02 19:41:55 +00:00
Martin Aeschlimann a74b37c62f [css/json/html] update services (#250307) 2025-06-02 17:48:12 +00:00
Ladislau Szomoru 6e189da432 Git - add extension API to get the repository root (#250044)
* Git - add extension API to get the repository root

* Pull request feedback
2025-05-30 18:13:55 +00:00
Ladislau Szomoru 973a531c70 Git - add logging for askpass (#250109) 2025-05-30 09:17:20 -04:00
Justin Chen 7f3d92fe40 many chat ui improvements (#250022)
* many chat ui improvements

* better handling of request VM
2025-05-28 18:45:25 -07:00
Ladislau Szomoru e8abd52cf7 Git - provideOriginalResource() should handle symbolic links (#249920) 2025-05-27 11:28:57 -07:00
Ladislau Szomoru 963bf2e2ad Git - handle the scenarion in which Recycle Bin/Trash are not supported (#249890) 2025-05-27 16:56:31 +02:00
c80442dee0 Enhance GithHub publishing logic to handle renamed repositories (#245024)
* Enhance GithHub publishing logic to handle renamed repositories.

* Make "result" const as it is never reassigned.

* Pull request feedback

---------

Co-authored-by: nomike <nomike@nomike.cpm>
Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-05-27 13:20:25 +00:00
Ladislau Szomoru 28af0e9aeb Git - include short commit hash in the ref picker details (#249874) 2025-05-27 11:51:40 +02:00
Ladislau Szomoru 804f18c995 Git - ref pickers should use commitShortHashLength setting (#249869) 2025-05-27 02:09:28 -07:00
Ladislau Szomoru 761976573f SCM - add the ability to search for a history item (#249819)
* WIP implementation illustrating the problem

* Tweak searching

* Saving my work

* Use the cancellation token

* Adopt delayer

* Remove debug messages
2025-05-26 17:16:06 +02:00
Ladislau Szomoru 28b55a766c SCM - add cancellation token to history provider (#249808) 2025-05-26 03:26:40 -07:00
Ladislau Szomoru e806b1ba01 GitHub - only prompt once to authenticate in the avatar provider (#249785) 2025-05-26 01:30:03 -07:00
Ladislau Szomoru c1ed063624 Git - sequantialize calls to git config (#249709) 2025-05-24 07:22:35 -07:00
Jean PierreandLadislau Szomoru 36ce9d0b7c Fix timeline git requests are not cancelled when switching editors too fast (#244335)
* Cancel git log commands from timeline

* Don't delete timeline requests when cancelled as they already got deleted

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-05-23 17:30:56 +00:00
Alex RossandHenning Dieterichs ba42f2d6e7 Treesitter-refactoring (#249608)
* wip

* Refactoring TokenizationTextModelPart

* treeSitterTokensPart1

* fix casing

* fix casing 2

* wip models

* progress

* Take care of some of the boring refactor changes (#249429)

* Implements TreeSitterLibraryService

* progress

* more progress

* Removes befores

* Take care of some of the boring refactor changes

* Settable observable

* Get things running

* Fix tree not updated when event files (#249544)

* Fix tree not updated when event files

* Update on Theme change

* Implements visibleLineRanges

* File renames and initial tree handling

* Fixes enter indentation bug

* Get tree sitter tokenization tests passing again

* Get colorize tests running again, minus injected regex test

* Fix monaco editor checks

* More standalone editor fixes

* Fix hygiene

* Fix TestTextModel

* Fix more tests

---------

Co-authored-by: Henning Dieterichs <hdieterichs@microsoft.com>
2025-05-23 16:30:38 +02:00
Matt Bierner 6dbeb7ba5f Merge pull request #249520 from mjbvz/western-slug
Fix sanitizer call
2025-05-22 12:53:03 -07:00
Martin Aeschlimann dd95553e79 add manage custom chat modes command (#249569) 2025-05-22 12:22:58 -07:00
Alex Ross 2a17434963 Update Go grammar (#249525) 2025-05-22 01:27:50 -07:00
Matt Bierner b6f2887eb0 Fix sanitizer call
Fixes #247432
2025-05-22 00:23:05 -07:00
Matt Bierner 73f244c82b Make sure to escape cspSource
Good practice

Also makes sure we don't include full file uris in the csp
2025-05-22 00:01:01 -07:00
Matt Bierner f3c630ae0b Merge pull request #249413 from mjbvz/little-vicuna
Pick up latest vscode-markdown-languageserver
2025-05-21 10:17:39 -07:00
Johannes Rieken 2e59a77991 Add support for tool sets (#249448)
* observale map/set

* adds tool sets, let mcp contribute tool set, update commands

* add `languageModelToolSets` contribution point that allows extensions to define set of tools

* only homogenous tool sets hide the tools they contain (that is set and all its tools are from the same source)

* make sure checking/unchecking buckets works

* make it more clear that the action is about tool configuration (not selecting/attaching)

* simplify `IToolSet#tools`

* support `*.toolset.json` files

* one bucket for all MCP servers

* use mcp icon

* use `.toolsets.json` suffix

* [tools config-pick] keep parents, peek sort order

* * add "Configure Tool Sets" actions
* make it `toolsets.jsonc` and register schema etc pp
* fix some tools picker issues

* add tool sets validation

* * tools completions
* Add ToolDataSource.Internal constant

* add missing return

* make tool set a class

* allow a tool set to contain other tool sets

* use dynamic schema for `toolsets.jsonc` language features

* fix tests
2025-05-21 06:54:14 -07:00
Ely RonnenandAlex Ross 6209ba20b4 Update log tmLanguage from vscode-logfile-highlighter 3.4.1 (#249046)
* update log tmLanguage from vscode-logfile-highlighter 3.4.1

* fix colorize tests for log

* Run update grammar script

---------

Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
2025-05-21 07:36:20 +00:00
Matt Bierner d4d2f93bf7 Pick up latest vscode-markdown-languageserver 2025-05-20 19:28:34 -07:00
Ladislau Szomoru 3381c264e1 GitHub - fix regression in getOctokitGraphql() (#249355) 2025-05-20 16:43:20 +02:00
Ladislau Szomoru 70107d1562 GitHub - fix graphql query regression following the ESM migration (#249340) 2025-05-20 12:09:15 +02:00
Dirk Bäumer bda84a72af Merge pull request #249310 from microsoft/dbaeumer/rare-cicada-moccasin
Capture commands in queue and pending responses in telemetry
2025-05-20 09:39:21 +02:00
Matt Bierner c5dfef1d20 Merge pull request #249323 from mjbvz/level-kite
Include preview roots in list of allowed markdown preview csp roots
2025-05-19 17:04:15 -07:00
Matt Bierner aa986f0d99 Include preview roots in list of allowed markdown preview csp roots
Fixes #249321
2025-05-19 16:47:17 -07:00
Dirk Baeumer bd9d26deb3 Add pending commands in queue order 2025-05-19 21:30:24 +02:00
Dirk Baeumer 155d317f52 Always capture command in callback 2025-05-19 20:53:57 +02:00
Dirk Baeumer 1b196d8046 Print queued command and pending response command names 2025-05-19 19:12:12 +02:00
Ladislau Szomoru 84fb005bbd Git - do not add ellipsis to history item subject/timeline item label (#249086) 2025-05-16 02:54:40 -07:00
Ladislau Szomoru daab3ffa1e SCM - add the capability to attach a history item as chat context (#249073)
* Saving my work

* Got the variable widget working

* Refactored the variable widget

* Clean up the attachment widget

* Content provider stub

* Add proposed API for chat context

* Add method to get the complete details of a commit
2025-05-16 01:09:12 -07:00
Matt Bierner 300ecf77f3 Merge branch 'main' into hoverlimit 2025-05-15 08:31:59 -07:00
Randy LaiandAlex Ross 43996d7422 Update upstream repo for R syntax (#248880)
* Update upstream repo for R syntax

* Update cgmanifest and grammar

---------

Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
2025-05-15 10:04:36 +00:00
Tyler James Leonhardt 86efdcd2c1 Introduce Issuer handling in the Authentication stack (#248948)
Mostly plumbing... this enables:
```
vscode.authentication.getSession('microsoft', scopes, { issuer: "https://login.microsoftonline.com/common/v2.0" });
```
And the respective API for an auth providers to handle it being passed in.

This props up work in MCP land which needs a way to map an issuer to an auth provider... but I certainly see utility outside of that space.

Fixes https://github.com/microsoft/vscode/issues/248775#issuecomment-2876711396
2025-05-14 23:02:15 +02:00
Dirk Bäumer 06bd27a510 Merge pull request #248941 from microsoft/dbaeumer/positive-bandicoot-rose
Rename id to traceId and add pending responses value.
2025-05-14 21:03:47 +02:00
Matt Bierner 600b9b2975 Merge pull request #248346 from rbuckton/pre-ts5.9-dom
Add casts to silence breaks due to updated DOM types
2025-05-14 11:37:18 -07:00
Dirk Baeumer 9afa156c10 Rename id to traceId and add pending responses value. 2025-05-14 18:19:13 +02:00
Tyler James Leonhardt a1d4a24624 Register a NullAuthProvider for github-enterprise when there is no setting set (#248870)
This should help in some cases where extensions call getSession to get github-enterprise and end up waiting 5 seconds for it to time out because it use to only be registered when there was a setting set.
2025-05-13 16:24:14 -07:00
Ebrahim 866c2ebb9d Fix typo in quickFix.ts and ensure correct grammar in references-view README 2025-05-13 14:59:00 +03:00
Ebrahim 7d2075b39a fix: typo at the README file 2025-05-13 14:55:31 +03:00
Ladislau Szomoru 78bf07b5ce Engineering - remove unused proposal (#248729) 2025-05-12 07:51:50 -07:00