Commit Graph

944 Commits

Author SHA1 Message Date
Connor Peet
76e1ccf4c0 debug: initial visualization extension points (#202775)
wip
2024-01-18 15:31:44 -08:00
Benjamin Pasero
04f554b0af speech - scaffold keyword activation (#202643)
* speech - scaffold keyword activation

* first cut settting for keyword activation

* handle lifecycle better

* .

* .

* .

* tweaks

* show a status bar entry

* add in context option

* cleanup
2024-01-18 14:59:47 +01:00
Rob Lourens
4aca61d43b Fix 2024-01-10 19:20:29 -03:00
zWing
2443fd1613 fix registerProfileContentHandler typos (#183197) 2024-01-08 11:06:09 +01:00
Connor Peet
027aa0ff19 testing: avoid console log in unit tests (#201141)
Fixes #192468
2023-12-18 18:39:13 +01:00
Johannes Rieken
04c01c089d wrap API-events per extension so that blaming and telemetry-ignoring/redirecting is possible (#200657)
fixes https://github.com/microsoft/vscode/issues/184132
2023-12-12 16:33:18 +01:00
Benjamin Pasero
d5307c5afa Have workspace.save and workspace.saveAs methods that return the URI (fix #178713) (#200222) 2023-12-07 17:38:11 +01:00
Yesterday17
c7be45d50f fix ExtHostLabelService typo (#198855) 2023-12-05 14:06:09 +00:00
Rob Lourens
ada980d563 Merge interactiveUserActions proposal into chatAgents2Additions, and get rid of the old global event (#199916)
Towards #197687
2023-12-04 05:58:17 +01:00
Ladislau Szomoru
c5874782c5 SCM - delete scmInputBoxValueProvider proposal (#199778) 2023-12-01 08:54:59 -08:00
Ladislau Szomoru
a776d5fe0a SCM - input box value provider rendering (#198923)
* Initial implementation

* Remove debug messages

* Implementation using a custom ActionViewItem

* Switched to using a custom action along with the custom action view item

* Switch to using arrays

* Refactored code (single provider is working)

* Add ActionRunner to options

* WIP - saving my work

* Refactor things to support one provider

* Add setting to enable/disable input action button

* Add sourceControlId to the proposed API

* Fix issue related to enablement

* Remove code that is not in scope

* Have the old action bar work with the setting

* Remove code that was commented out

* Add extension API changes

* Update extensions/git/src/commitMessageProvider.ts

Co-authored-by: João Moreno <joao.moreno@microsoft.com>

* Fix compilation errors

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2023-11-23 16:39:53 +01:00
Rob Lourens
94265f5a19 Implement chat agent variable provider (#198899)
* Add API for custom completions for agents

* Fix tests

* Better completions labels

* Renames

* Remove TODO

* Add variable kind
2023-11-23 07:51:06 +01:00
Michael Lively
e33219dde3 Add multi-document highlight provider feature (#198467)
* multi-doc api + text provider editor feature + extHost hookup + typescript semantic multi-doc

* fix disposable leak, wasn't setting providers to the disposableMap

* filter unnecessary models to fix errors with typescript provider

* fix nits (todo - doc filter)

* fix typo from merge conflict

* expose LanguageSelector in multi-doc provider, filter out 0 score models
2023-11-22 10:07:20 -08:00
Megan Rogge
8af169e554 Merge pull request #197668 from microsoft/merogge/quick-fix-api
`addNewLine` -> `shouldExecute`, expose this in quick fix API
2023-11-21 10:23:27 -06:00
Matt Bierner
8a6f44ef3c Move matchesScheme out of opener service (#198366)
Move matchesScheme out of opener service

This was creating extra deps on opener service
2023-11-20 18:26:45 +01:00
Aaron Munger
8bc4783e37 Notebook Variable view follow-up (#198555)
* PR feedback follow-up

* fix API type issues
2023-11-17 12:41:09 -08:00
rebornix
bed797335d 💄 better handling optional 2023-11-14 22:17:15 -08:00
Peng Lyu
44488fc1ad allow metadata label to be optional (#198238) 2023-11-14 20:44:15 +01:00
Ladislau Szomoru
e121560310 SCM - add input box value provider proposal (#198232)
* Initial implementation

* Remove new toolbar widget

* Remove TestCommitMessageProvider2

* Remove more changes
2023-11-14 19:59:05 +01:00
rebornix
6dd6275d2a move off menu 2023-11-13 12:12:22 -08:00
Rob Lourens
7cbff1919e Chat code cleanup (#198022)
* Clean up some obsolete chat API
Start deleting the interactive session provider, use agents only

* Delete old chat agents API

* Remove providerRequestId

* Remove unused stuff from interactive.d.ts

* Get rid of chat session state saving

* Fix test

* I guess this type was in use
2023-11-12 06:44:14 +01:00
meganrogge
c4539f6da8 adjust quick fix api 2023-11-07 10:50:14 -08:00
Logan Ramos
b58d622170 Add ChatEditorInput API proposal (#197255) 2023-11-02 11:13:41 -07:00
Andrea Mah
4321b79552 move closed notebook search to EH (#192358)
move closed notebook search to EH to improve performance, especially in remote scenarios
2023-11-01 11:22:25 -07:00
Benjamin Pasero
41bf82af6a watcher - enable event correlation for all users of new proposed API (#196629) 2023-10-26 06:58:56 +11:00
Justin Chen
8887abd9fc Allow additional extension data from Issue Reporter API (#196103)
* issue-reporter-main merge into branch (#13)

* laying the groundwork for issue reporter API

* working version 1

* added additional support, checkbox

* smol change with disabling edits and cleanup

* added blocker, timeout of 5 seconds, instead of rejecting we return

* added working template data as well

* removed test code

* cleaning up commit

* working with injecting template and allowing editing

* cleanup pass 1

* added progress bar and code cleanup

* cleanup and adding docs

* added default data in issuereporter test

* extension data hidden by default, better loading indication

* cleanup

* added codicons

* added codicon styling, removed progress bar:

* code cleanup

* better preview button handling

* cleaning up part 4

Co-authored-by: Tyler James Leonhardt <me@tylerleonhardt.com>

---------

Co-authored-by: Tyler James Leonhardt <me@tylerleonhardt.com>
2023-10-23 22:09:33 +02:00
Rob Lourens
f030465eb3 Support showing agent + slash command dynamically, when detected for a request 2023-10-21 20:14:41 -07:00
Connor Peet
d2b1eb8a36 testing: finalize TestMessage.contextValue (#195706)
Closes #190277
2023-10-16 20:37:37 +02:00
Johannes Rieken
717f3e3f6c Joh/tart-lamprey (#195554)
* some API todos

* add `ChatAgent2#onDidReceiveFeedback` for helpful/unhelpful feedback kinds

* add another proposal for chat additions

* small tweaks
2023-10-13 12:46:43 +02:00
Benjamin Pasero
7a03774b96 speech - core service and extension API (#195365)
* speech - scaffold a basic core service for registration

* speech - scaffold a basic extension API for speech providers

* cleanup

* speech - improve API to work with events

* simplify

* better api

* cleanup
2023-10-12 14:53:01 +02:00
Rob Lourens
901ac65ea9 Implement chatAgent2 proposal (#194635)
* Add notes on chat agent API

* Add request ID to context

* variables

* Add partial implementation for another option for a chat agent API

* update

* Notes from api sync

* More notes

* Can invoke an agent and get the response

* Provide a real request

* Notes

* add `slashCommandProvider` - not yet hooked up

* add metadata properties inline, some comments

* some more notes

* Put the new API side-by-side with the old one

* Fix agent title in response

* Fix agent display

* Send slashCommand to request

* Hook up variables

* Get rid of package.json registration option

* Start to implement followups provider

* Add comment

* make it `slashCommandProvider` all the way, use updateAgent for updates icon, fullName, description

* update docs

* only ask for slash command completions when completing a slash-word

* use complex completion item label for command/agent completions

* add `promptText` to `IParsedChatRequestPart` so that some parts don't make it into the prompt (like agent and slash commands)

* only allow agent and slash command at the beginning of the prompt

* remove unused method

* some jsdoc, many renames so that stuff starts with `ChatAgent...`

* reduce `createChatAgent` to the minimum, let the rest be set via setters

* in the renderer know if an agent has slash command and follow ups, safes IPC calls

* use `iconPath` to align with other APIs

* more jsdoc and more obvious TODOs

* fix chat parser with "late" command

* handle error so that the request stops. where is the rendering tho?

* Show error message in response properly

* Don't blow up global / list

* Change proposal name

* Inline followup types

* fix type

* Remove brace in error msg

---------

Co-authored-by: Johannes <johannes.rieken@gmail.com>
2023-10-12 05:23:51 +02:00
Benjamin Pasero
29b69437ab watcher - correlate events to their requesting source (#194776)
* watcher - emit `URI` instead of `string` for faster `fsPath` compute  (for #194341)

* wip

* more

* adopt

* some cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* implement correlation

* cleanup

* add correlation

* undo, leave for later

* tests

* tests

* tests

* tests

* tests

* log cId

* simpler correlation id

* 💄

* tests

* runs

* skip normalization

* fix tests

* tests

* fix tests

* add `createWatcher` API

* partition events in ext host

* allow custom excludes

* remove disk file change

* 💄

* 💄

* 💄

* wire in

* wire in
2023-10-10 10:27:18 +02:00
Rob Lourens
3ab789159e Clean up old unused chat API (#194857) 2023-10-05 09:48:34 +02:00
Rob Lourens
580dfe6e49 Remove legacy chatSlashCommands proposal (#194633)
Focus is on chat agents now, so removing this to avoid confusion.
2023-10-02 15:30:46 -07:00
Michael Lively
e6b8e0352e Notebook CodeActionKind Support (#192248)
* shift nb codeaction filter to editor layer

* readability

* revised API, clearer typings, filter out autosave triggers

* quick lil rename bc i kept confusing myself

* revert back to boolean setting. wait for editor enum
2023-09-18 19:07:54 +01:00
Alexandru Dima
63fa4bccfb Finalize LanguageConfiguration.autoClosingPairs (#193197)
Finalize LanguageConfiguration.autoClosingPairs
2023-09-18 18:01:25 +02:00
Rob Lourens
bc6b75eb2c Basic 'chat agent' API (#193152)
* Very basic chat agent API/UX

* Add custom name/avatar, and restore them in persisted sessions

* Show agent subcommands on the top level

* Show editor decorations for subcommands

* Fix unit tests

* Implement unregister

* Revert slash command content widget change, still used by inline editor

* Remove content widget reference

* Fix leaked disposable
2023-09-15 10:32:30 +02:00
Johannes
869f013f05 inline - some more API tweaks 2023-09-13 16:59:33 +02:00
Daniel Imms
cf7daf08e3 Finalize env.onDidChangeShell
Fixes #160694
2023-09-12 08:03:59 -07:00
Johannes
2856e2dd08 chore - small cleanup of the inline chat API proposal 2023-09-11 16:22:44 +02:00
Johannes
f44e4ed8d4 chore - some errors cleanup 2023-09-04 13:44:39 +02:00
Daniel Imms
03ca83baac Merge branch 'main' into tyriar/145234 2023-08-25 12:58:05 -07:00
Daniel Imms
5b5fbe166d Simplify api 2023-08-25 09:49:39 -07:00
Tyler James Leonhardt
aced05cf7c Remove Semantic Similarity Provider (#191039)
Now that RelatedInformationProvider has landed

ref https://github.com/microsoft/vscode/issues/190909
2023-08-25 09:35:31 -07:00
Daniel Imms
ae9df9733c Simplify events 2023-08-24 10:37:56 -07:00
Tyler James Leonhardt
9a69c2ab7c One Provider per Type (#191136)
Simpler design due to feedback from Logan.
2023-08-23 16:03:45 -07:00
Ulugbek Abdullaev
e4bfe48d92 Merge pull request #190649 from microsoft/ulugbekna/insert-at-cursor-api
MappedEditsProvider API
2023-08-23 12:28:24 +02:00
Tyler James Leonhardt
f058931630 RelatedInformation & EmbeddingVector API (#191006) 2023-08-22 20:22:53 +01:00
Ulugbek Abdullaev
2c9e2b85b2 use LanguageFeaturesService to support MappedEditsProviders instead of creating a new MappedEditsService 2023-08-22 15:46:44 +02:00
Martin Aeschlimann
98f63f1849 Merge branch 'main' into ulugbekna/insert-at-cursor-api 2023-08-21 18:43:52 +02:00