Commit graph

129 commits

Author SHA1 Message Date
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
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
Connor Peet 2749de3808
testing: implement proposed active profiles api (#197664)
testing: implement proposed active profiles api

For https://github.com/microsoft/vscode/issues/193160
2023-11-07 10:37:37 -08:00
Connor Peet d2b1eb8a36
testing: finalize TestMessage.contextValue (#195706)
Closes #190277
2023-10-16 20:37:37 +02:00
Rob Lourens 6c02f61149
Fix variables in chatAgents2 API requests, add tests (#195529)
* Fix variables in chatAgents2 API requests

* Enable file references and the 'used references' section by default in Insiders

* Add integration tests for chat

* Fix equality

* fix test
2023-10-13 06:27:30 +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
Johannes Rieken a383c1601d
add proposed API for short and long variant of LanguageStatusItem#text (#195141)
* add proposed API for short and long variant of `LanguageStatusItem#text`

https://github.com/microsoft/vscode/issues/192880

* add new proposal to allow list
2023-10-09 16:22:49 +02:00
Benjamin Pasero 6404e3dbd1
tests - remove envShellEvent from package.json (#193982) 2023-09-25 17:07:23 +01:00
Logan Ramos 6bb64ab400
Fix indentation (#191918) 2023-09-12 09:16:11 -07:00
Daniel Imms 8d76882313
Merge branch 'main' into tyriar/finalize_179476 2023-08-24 05:58:18 -07:00
Kartik Raj 5257764dea
Merge pull request #191016 from microsoft/kartik/fluttering-pony
Finalize proposed env workspace collection API
2023-08-23 11:13:41 -07:00
Alex Ross bd67b50dfd
Remove tree item checkbox proposal from tests (#191084)
Fixes #191081
2023-08-23 19:28:19 +02:00
Daniel Imms 1461c7d382
Finalize EnvironmentVariableMutatorOptions API
Fixes #179476
2023-08-23 07:54:24 -07:00
Kartik Raj b1d5542cfd Finalize proposed env workspace collection API 2023-08-22 20:22:32 +00:00
Ulugbek Abdullaev fe52b50e41 add mappedEditsProvider proposed API ID to integration tests' package.json 2023-08-22 15:57:40 +02:00
Connor Peet 2d9cc42045
testing: menu contribution points around messages (#190298)
- Implements the proposal in #190277 by adding a `contextValue` to
  TestMessages added to test runs.
- Make the `FloatingClickMenu` reusable outside the editor, and uses
  it to implement a `testing/message/content` contribution point.

With this extensions can do things like:

![](https://memes.peet.io/img/23-08-68e2f9db-abc4-4717-9da6-698b002c481c.png)
2023-08-12 08:03:01 -07:00
Robo ea490e5545
chore: update to Electron 25 (#188268)
* chore: update electron@25.3.0

* ci: update NodeTool version

* chore: update @types/node

* add more common types to layers checker

* chore: update debian dependencies

* chore: update rpm dependencies

* fix: use legacy dns result order of Node.js

* ci: remove deprecated always-auth npm config

Refs npm/cli@72a7eeb

* chore: update deb and rpm dependencies

* chore: update armhf rpm dependencies

* chore: update x64 debian dependencies

* chore: update x64 rpm dependencies

* chore: update electron@25.3.1

* chore: update electron@25.4.0

* chore: bump distro

* chore: bump distro

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2023-08-07 21:46:27 +09:00
Connor Peet f82185934a
testing: finalize testInvalidateResults (#188180)
Also sends the tests as a bulk to the renderer, and implements a
prefix tree for doing invalidation checks (which I plan to adopt
elsewhere later on, perhaps in debt week.)
2023-07-18 20:14:25 +02:00
Ehab Younes 6a152ca523
Expose the focused element and change event in the TreeView API (#184268)
* Expose the focused element and event in the TreeView API

* Exposed active TreeItem through extension proposal

* Add proposal to test extension

* Merge change selection and focus events

* Finish selection+focus change in treeview

* Clean up

* Clean up

* Add checkProposedApiEnabled back in

---------

Co-authored-by: Ehab Younes <ehab.younes@sigasi.com>
Co-authored-by: Alex Ross <alros@microsoft.com>
2023-07-14 08:49:15 +00:00
Alex Ross 1a4e466fc0
Set a read-only message from an extension (#185216)
* wip

* Allow extensions to provide a readonly message
Part of #166971

* Address feedback

* Further address feedback

* Fix some nits

* Add test

* Improve tests and respond to feedback

* Don't render editor.readOnlyMessage in the settings UI

* No need to validate the IMarkdownString

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
Co-authored-by: Alex Dima <alexdima@microsoft.com>
2023-06-21 10:55:00 +02:00
Johannes Rieken 2798d7bf41
joh/rainy weasel (#184582)
* add tooltip (plain text) to static items,

re https://github.com/microsoft/vscode/issues/183772

* support accessibilityInformation for static static bar contribs,

https://github.com/microsoft/vscode/issues/183772
2023-06-08 12:33:24 +02:00
Johannes c106fbe627
add some integration tests for static status bar items 2023-06-05 16:39:59 +02:00
Connor Peet 21ec2519ef
testing: add proposed testInvalidateResults API (#183370)
* testing: add proposed testInvalidateResults API

For #134970

* fix tests
2023-05-24 22:57:07 -07:00
Kartik Raj b4a853bac9 Update package.json for vscode-api-tests 2023-05-23 19:40:55 +00:00
Rob Lourens 05c0ca95ed
Add new API proposal for chat onDidPerformUserAction event (#183140)
* Add new API proposal for chat onDidPerformUserAction event

* Enable API for tests that incidentally touch the getter
2023-05-22 11:52:19 -07:00
Connor Peet 8b3523a18d
api: implementation of proposed window activity API (#182563)
* api: implementation of proposed window activity API

For #181569

* fix build

* fix build more

* add cell activity per @rebornix
2023-05-16 17:49:33 +02:00
Matt Bierner 9b6b547d2d
Fix range when copying empty selection (#182227)
This fixes the range extensions get when copying an empty selection. As part of this, I've also:

- Added tests for this change
- Made the paste parts of the api optional. This is useful when a test provider only wants to add data on copy
2023-05-11 17:31:11 -07:00
Benjamin Pasero 1ed110b6be
Return resulting URI from commands that save the active editor (fix #178713) (#179091)
* Return resulting `URI` from commands that save the active editor (fix #178713)

* 💄

* address feedback

* change to real proposed API

* cleanup
2023-04-20 18:00:12 +02:00
Ladislau Szomoru 218b8bd8da
SCM - Add document property to expose the text document (#171504) 2023-04-14 13:55:14 +02:00
Matt Bierner 3e5253b143
Remove notebook controller kind API proposal (#175962)
Fixes #168535
2023-03-16 08:52:09 +11:00
Peng Lyu 4ed4cf6042
Remove unused proposed api enablement. (#167077) 2022-11-23 09:53:18 -08:00
Sandeep Somavarapu 2cd8ea24f2
#159892 Finalize (#165925) 2022-11-09 10:28:27 -05:00
Ladislau Szomoru 76191c7c75
Engineering - Remove proposal that has been finalized (#164127)
Remove proposal that has been finalized
2022-10-20 04:30:27 -07:00
Sandeep Somavarapu 894aa9a7a7
Log improvements (#163532)
* - expose log level in the proposed api
- ability to set log level per logger

* fix tests
2022-10-13 03:48:52 -07:00
Rob Lourens cf47b76c63
Finalize notebookDebugOptions API (#163316)
* Finalize notebookDebugOptions API
Fix #147264

* Backcompat for the option from vscode-jupyter

* Undo comment

* Fix build
2022-10-11 20:25:51 -07:00
Alex Ross 23e6c032af
Start enforcing the tunnels API (#163187)
* Start enforcing the tunnels API

* Fix API test
2022-10-10 10:10:24 -07:00
Benjamin Pasero ec56dddd9f
tests - remove snippetWorkspaceEdit usage (#161043) 2022-09-16 00:34:30 -07:00
Tyler James Leonhardt ccddb94f98
initial cut of vscode.l10n (#158328) 2022-09-14 16:48:25 -07:00
Rob Lourens 37f08d1195
Remove notebookEditorEdit proposal requirement (#160912) 2022-09-14 09:41:21 -07:00
Daniel Imms a4cce8f575
Merge pull request #160900 from babakks/add-change-shell-event
Add `onDidChangeShell` event to the API
2022-09-14 07:53:50 -07:00
Daniel Imms c4611298a3
Add envShellEvent to vscode-api-tests 2022-09-14 07:32:41 -07:00
Benjamin Simmonds 8268e5d27d
Remove enabledApiProposals badge from test ext (#160526) 2022-09-09 15:36:53 +02:00
Benjamin Simmonds f51258b93b
Optional TreeItem Checkbox (#158250) 2022-09-06 12:41:57 +02:00
Johannes Rieken c46640d635
remove obsolete API proposal name from api-tests, fyi @Tyriar (#154902) 2022-07-12 11:35:56 +02:00
Johannes Rieken 71c221c532
joh/theoretical quokka (#154157)
* add `SnippetController#apply(ISnippetEdit[])`

This replaces the initial ugly trick with a more sound implementation of arbitrary snippet edits. A snippet edit can cover disconnected regions, each will be applied as separate text edit but everything will become a single `OneSnippet` instance

* add integration test for SnippetString-text edit inside workspace edit
2022-07-05 12:30:01 -07:00
Benjamin Pasero 68433fb7fd
tests - remote invalid proposed API (#152181) 2022-06-15 14:34:56 +02:00
Matt Bierner 8b0b3ee72e
Remove notebook editor decoration type (#151574)
* Remove the notebookEditorDecorationType API proposal

Fixes #146838

* Remove all the infastructure around the now removed notebookEditorDecorationType api
2022-06-13 13:51:10 -07:00
Matt Bierner 45304da73d
Finalize NotebookEditor api proposal (#149767)
* Finalize NotebookEditor api proposal

Fixes #149271

This finalizes most parts of the NotebookEditor api proposal. I haven't removed the proposal entirely as there are still a few parts being left behind:

- The deprecated properties/functions
- A few contribution points such as `notebook/cell/executePrimary`

* remove extra quote
2022-05-23 23:27:17 +00:00
Matt Bierner 67014adc30
Remove the textDocumentNotebook API proposal (#149277)
* Remove the textDocumentNotebook API proposal

All consumers have now been migrated off of this proposal, so it is safe to remove from our code

* Remove deprecated api usage from test
2022-05-12 08:59:11 +02:00
Benjamin Pasero c6bd448948
debt - bring @types/mocha up to date with version 9.x 2022-05-02 08:30:27 +02:00