Commit graph

121876 commits

Author SHA1 Message Date
Matt Bierner 934af755c4
Hook up prototype paste with imports for JS/TS (#204665)
* Hook up prototype paste with imports for JS/TS

For https://github.com/microsoft/TypeScript/pull/57262 but with proposed changes to ts protocol

* Support new api

* Update
2024-05-24 21:57:30 +02:00
Matt Bierner fb7f5a9a83
Disable web TS type acquisition (#213412)
We're waiting on some perf improvement for upstream types installer before turning this on everywhere
2024-05-24 21:51:41 +02:00
Justin Chen d05d280364
web reporter refactor and issueFormService (#212951)
* web version working

* change to mainWindow

* PROPER MOVEMENT

* working for web as well

* move issueFormService to workbench/contrib/issue

* cleaning up{

* more cleanup, added setting

* styling

* use mainwindow to open and closee

* css fixes

* fix css again

* fix CSS and wonky applyCSS rules

* change gulpfile

* add and update system info

* address some of the comments

* move files! small changes

* move JS and non window specific back to electron sandbox

* fix on issueReporter.js

* fix build file

* fix gulp file too....

* move everything into contrib

* fix workbench import

* move everything else into contrib, fix import

* change name to web

* applying more feedback fixes :D

* fix command and remove unused import:

* add back issueTroubleshoot

* fix gulpile outputs

* fix out exclusion:
2024-05-24 11:36:46 -07:00
Benjamin Christopher Simmonds 0d350085d6
Add tests for editor group model (#213405)
* Add test for editor group model

* user helper function
2024-05-24 10:10:36 -07:00
Sandeep Somavarapu e971e4ee51
fix #194105 (#213403) 2024-05-24 18:40:36 +02:00
Rob Lourens b9fa819edd
Fix broken codeblocks (#213399)
* Fix broken codeblocks
Fix #213382

* Fix tests
2024-05-24 18:30:57 +02:00
Benjamin Christopher Simmonds 1e1afd0dd7
Scope custom editor and webview context keys to editor groups and global context (#213398)
Properly scope custom editor and webview context keys
2024-05-24 08:47:54 -07:00
Johannes Rieken b6c1b52bac
Remove configure inline chat command from menu because it isn't popular at all and takes space (#213396)
also fixes https://github.com/microsoft/vscode-copilot/issues/5662
2024-05-24 16:50:41 +02:00
Benjamin Christopher Simmonds edf68345d1
Fix issue #212877: Use Action context for Multi Diff Editor Actions (#213293)
fix #212877
2024-05-24 15:55:46 +02:00
Johannes Rieken 9910fc2a26
check uri when combining edits from different groups (#213390) 2024-05-24 15:42:01 +02:00
Johannes Rieken df2881f432
show filename for compare code blocks (#213389) 2024-05-24 15:36:31 +02:00
Johannes Rieken a5e41db5c7
inline chat for notebook cell uses the Notebook chat location (#213385)
* inline chat for notebook cell uses the `Notebook` chat location

* fix tests
2024-05-24 14:10:49 +02:00
Johannes Rieken e67cdb56b1
clean up dead context keys and other dead code (#213387) 2024-05-24 14:07:41 +02:00
Johannes Rieken de1410c53f
don't always consume mouse wheel (#213383)
for chat widget (list) and for chat input editor (actually all simple editor cases)
2024-05-24 13:22:56 +02:00
Johannes Rieken 2e98100d22
Joh/homely-damselfly (#213376)
* chore - `ReplyResponse` cleanup

* associate hunk data with response id

* Associate hunk data with response state so that accepting hunks updates the text edit group

* first cut of moving N-edits conversion from inline chat to panel
2024-05-24 11:14:49 +02:00
Ladislau Szomoru 6bd20f68f8
SCM - add commands to focus previous/next resource group (#213377)
* Initial implementation

* 💄

* Fixed issue with focusing outside the tree
2024-05-24 10:51:32 +02:00
Joyce Er 7bb6755241
feat: enable attaching symbols to chat via @ (#213347)
* feat: enable attaching symbols to chat via `@`

* Oop
2024-05-24 10:24:21 +02:00
Benjamin Pasero c1ebab91fb
refactor: replace direct process.pid usage with getProcessId method (#213352)
* refactor: replace direct process.pid usage with getProcessId method

* remove console.log
2024-05-24 09:29:19 +02:00
Ladislau Szomoru 36d917472f
SCM - getParent() should handle resource groups (#213350) 2024-05-24 09:09:47 +02:00
Ladislau Szomoru 994893cbba
SCM - add commands to focus next/previous input (#213337)
* SCM - refactor commands to focus input

* Ensure that the input node is expanded in the tree

* getParent() should handle expanding the repository node

* Use ArrayNavigator instead

* Add support for looping in the array navigator

* 💄

* use rot instead of array navigator

* 💄

* more 💄

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2024-05-24 08:15:12 +02:00
Logan Ramos e82e806f17
Part of #211878 (#212902) 2024-05-23 18:14:35 -07:00
Rob Lourens a0986b0f65
Bump distro (#213340) 2024-05-23 23:49:39 +02:00
Justin Chen 38a6ee6d39
code action and lightbulb telemetry updates (#212929)
* added additional telemetry and remove unused telemetry event

* removed unused imports
2024-05-23 13:49:13 -07:00
Rob Lourens fd7c7bda0f
Render html as plaintext when html not supported (#213265)
* Support rendering unsupported html tags as plaintext for chat

* Render html as plaintext when html not supported

* Add comment and test for trusted domains
2024-05-23 13:16:18 -07:00
Benjamin Christopher Simmonds 81e568cf86
Fix issue with Cmd+W closing the window with opened tabs (#213335)
fixes #213324
2024-05-23 22:09:24 +02:00
Aiday Marlen Kyzy 6cf8bdb0da
Making API editorHoverVerbosityLevel use verbosityLevel instead of action (#213317)
* allowing to cancel a previous request and jump directly to a request for a delta at a higher level

* adding code in order to dispose the token sources when the full object is disposed
2024-05-23 22:01:09 +02:00
Connor Peet 6629c4e0a9
git: allow querying whether files are gitignore (#212982)
* git: allow querying whether files are gitignore

This exposes `checkIgnore`, which I want to use in copilot to determine
which files I should go into when checking references.

* rename method
2024-05-23 21:28:04 +02:00
David Dossett 204521a0d0
Merge pull request #213331 from microsoft/ddossett/magic-mite
Fix codicons padding in chat attachments
2024-05-23 11:46:13 -07:00
David Dossett becae3cc46
Fix codicons padding in chat attachments 2024-05-23 11:27:39 -07:00
Aaron Munger 101ea2a13e
allow returning undefined if file was not saved (#213123)
* allow returning undefined if file was not saved

* bring back cancellation check

* helper utility to convey optional result if cancelled

* edit

* inline function

* test cancelled custom save

* inline more

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2024-05-23 09:12:47 -07:00
Benjamin Christopher Simmonds ca45e3d78e
Benibenj/registerContextKeyHandler (#213135)
* cleanup editor group context keys

* Update src/vs/workbench/browser/parts/editor/editorPart.ts

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>

* context key on parts

* Update global context keys

* remove scoped keys on group removal

* cleanup

* first draft contexkt key registration

* Make it a provider

* Use group instead of active editor

* getGroupContextKeyValue

* doc

* Fix merge error

* 💄

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2024-05-23 17:52:39 +02:00
Martin Aeschlimann 343a048566
Fix unsafe type assertions on object literals (#213318) 2024-05-23 17:31:20 +02:00
João Moreno 3eb20557bd
fix this reference in instantiation service (#213311) 2024-05-23 16:27:34 +02:00
Martin Aeschlimann 027fce3efd
Polish the code that sets env in packageJSONContribution.ts (#213306) 2024-05-23 11:45:56 +02:00
Johannes Rieken 2d174613d4
chore: Remove deprecated tokens property from vscode.proposed.chatProvider.d.ts (#213301)
* chore: Remove deprecated tokens property from vscode.proposed.chatProvider.d.ts

* fix compiler
2024-05-23 11:25:38 +02:00
Johannes Rieken d42d42e5b0
increase listener refusal threshold significantly (#213292)
* increase listener refusal threshold significantly

* fix tests
2024-05-23 11:07:47 +02:00
Johannes Rieken 3683ed7151
remove IInlineChatService and types around it (#213298) 2024-05-23 11:03:49 +02:00
Benjamin Christopher Simmonds 082435c697
Remove tree view show hover (#213212) 2024-05-23 10:08:58 +02:00
Benjamin Pasero 869828c097
False positive "saving too long" dialog hindering saving a file (fix microsoft/vscode-internalbacklog#4943) (#213290) 2024-05-23 09:49:30 +02:00
Alexandru Dima ba6fb3b36e
Fix StableEditorBottomScrollState (#212970) 2024-05-23 08:50:44 +02:00
Joyce Er 2b277fcb56
fix: apply query filter to additionPicks (#213281) 2024-05-22 21:22:34 -07:00
Rob Lourens 878cb471aa
Fix fillInIncompleteTokens for ordered lists (#213280) 2024-05-22 19:42:18 -07:00
Rob Lourens 3cae619a11
Tweak agent hover (#213278)
"View in Marketplace" seems to be confusing people
2024-05-23 04:11:55 +02:00
Rob Lourens cf2db6c1e6
Fix leaking uponSanitizeElement hook (#213277) 2024-05-23 04:07:45 +02:00
Peng Lyu 17f711b9bc
Fix #213206. Migrate off IInlineChatService (#213263)
* Fix #213206. Migrate off IInlineChatService

* fix tests
2024-05-22 18:56:10 -07:00
Matt Bierner 79d8e9809e
Prevent using disposed of timers (#213271)
* Prevent using disposed of timers

If a timer has been disposed of, warn and don't schedule the callback. This is needed as otherwise the timer very likely ends up being leaked

* Throw errors instead
2024-05-22 18:02:36 -07:00
Sandeep Somavarapu 21df88c9b4
more polish (#213267)
* more polish

* refactor actions

* fix hover
2024-05-22 16:26:51 -07:00
Rob Lourens 96a37971fe
Bump distro (#213268) 2024-05-23 00:39:10 +02:00
Joyce Er 637b1f42e7
fix: prevent attaching the same chat context twice (#213266) 2024-05-23 00:13:35 +02:00
Joyce Er 37e1242f15
refactor: clean up chat context types (#213264) 2024-05-22 23:47:06 +02:00