Commit Graph

1369 Commits

Author SHA1 Message Date
Daniel Imms
db9b899525 Fix new terminal suggest icon colors
Part of #241727

The rest of this issue will be fixed in March
2025-02-27 13:21:52 -08:00
Benjamin Pasero
c202fb0bcf ux - tweak status locations including copilot to be more aligned with our UX standards (#242154) 2025-02-27 10:14:21 +01:00
Benjamin Pasero
c75ab9d934 chat - status tweaks (#242110) 2025-02-26 13:31:46 -07:00
Benjamin Pasero
74e43f0375 chat - tweaks to status (#242073) 2025-02-26 16:05:46 +01:00
Benjamin Pasero
6988f72b91 chat - status UX tweaks (#242027) 2025-02-26 09:35:15 +01:00
Benjamin Pasero
cf93804e07 chat - refactor status entry (#241454) 2025-02-21 10:18:14 -07:00
Johannes Rieken
b14a80cb7f fix https://github.com/microsoft/vscode/issues/241094 (#241114) 2025-02-18 19:53:44 +01:00
Ladislau Szomoru
761beba6f2 Engineering - increase worker count for mangling (#241076)
* Engineering - increase worker count for mangling

* Compile .js file
2025-02-18 12:54:01 +01:00
Marc Mueller
883e8823d0 Add panelTitleBadge color variables (#240645)
* Add panelTitleBadge color variables

* Revert builtin theme changes

* Move panel section in theme.ts

* Use ACTIVITY_BAR_BADGE_* styles as default for PANEL_TITLE_BADGE_*
2025-02-18 11:35:28 +01:00
Henning Dieterichs
547f38708a Implements inline edit fade out animation (#241031) 2025-02-17 20:18:43 +01:00
Henning Dieterichs
05b004e64f Uses squiggles for warnings 2025-02-12 16:18:36 +01:00
Connor Peet
cccd0a35c6 eng: cherry-pick 1.97.1 fixes (#240409) 2025-02-11 19:47:56 +01:00
Sandeep Somavarapu
e3f0fe37ba fix #237915 (#239966) 2025-02-10 15:12:38 +01:00
Johannes Rieken
f6fb04a2bb Merge pull request #238409 from tmm1/tmm1/tsb-edgecase
tsb: fix for deleted and re-added source file not being re-generated
2025-01-31 14:01:03 +01:00
João Moreno
9d43b0751c remove svgz from default file types (#239180)
* remove svgz from default file types

fixes #231021

* push missing compilation
2025-01-31 10:49:12 +01:00
João Moreno
ce2c2f3c79 fix build (#238530)
* fix build

* fix build

* one more fix
2025-01-23 09:41:55 +01:00
Aman Karmani
e76c50f20e build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat

* build: rewrite imports for nodenext compat

* build: re-generate
2025-01-22 20:12:39 +01:00
Aman Karmani
ce19b614c5 build: re-generate 2025-01-21 17:09:00 -08:00
Aman Karmani
649d3e29c3 build: update to include more tsc boilerplate 2025-01-21 16:46:16 -08:00
Aman Karmani
61e52c3265 tsb: fix for deleted and re-added source file not being re-generated 2025-01-21 14:21:13 -08:00
Alex Ross
d24b8fb490 Add a token store for tree sitter (#237885)
* Add a token store for tree sitter

* Handle root node change

* Split tokens, changes between syntax nodes, proper new end position when multiple edits

* Holes between nodes

* Add guess token store

* Fix deleting tokens

* Switch over to range based and capture offsets early

* 🧹

* 🗑️

* Only block for 5 ms, comments in monaco.d.ts

* Faster and more scoped changed range finding

* Revert "Faster and more scoped changed range finding"

This reverts commit 84b3f4a612.

* Faster and more scoped changed range finding

* Use already computed end position

* Only expose fully parsed trees from tree sitter and do capture immediately.

* Improve race by only firing tree change event when the tree parse is on the same version as the model

* Fix race

* Fix disposable leak in test

* Fix parsing loop bug

* Fix race condition in the token store layer

* Don't block when collecting tokens

* Fix tests

* Fix some tests

* Add Performance to CORE_TYPES

* Add missing js file
2025-01-21 15:02:16 +00:00
Martin Aeschlimann
434fed4032 remove from i18n 2025-01-17 09:47:24 +01:00
Johannes Rieken
a5d836544d tweak auto-accept flow (#238057)
* make setting a number which is the delay in seconds
* no count-down in btn, but just an simple animation
* stop auto-accept when hovering over the btn

https://github.com/microsoft/vscode-copilot/issues/11747
2025-01-16 17:01:26 +01:00
Benjamin Christopher Simmonds
645027c7d9 Highlight accepted inline edits temporarily (#237682)
highlight edit after applying
2025-01-10 12:20:18 -08:00
Benjamin Pasero
f6e97b7c97 debt - go over todos (#235924)
* debt - go over todos

* fix hygiene
2024-12-12 14:47:59 +01:00
Johannes Rieken
a40e594f25 Check for cyclic dependencies during compile (#235808)
* Check for cyclic dependencies during compile

Changes gulp-tsb to check the emitted JS code for cyclic dependencies. Historically we never cared about cycles between TS files as long as they dissappeared after compile (e.g type-dependencies, not runtime dependencies)

https://github.com/microsoft/vscode-internalbacklog/issues/5271

* fix cycling dependencies

fyi @aeschli @aiday-mar

* remove cyclic dependency with unused `BasedTextEdit` fyi @hediet

* remove cycle between chatEditService and chatEditingSession

fyi @alexdima

* remove cyclic dependency between chatSetup and chatViewPane

fyi @roblourens

* better cycle detection

* don't check cycles when not needed

* clear graph when reprocessing file dependencies

* remove cycle between with `notebookChatEditController` fyi @DonJayamanne

* modernize and cleanup tsb/utils
2024-12-11 11:26:59 +01:00
Johannes Rieken
8439692139 make edits highlight more smooth and animated when "stuck" (#235376) 2024-12-05 11:33:16 +01:00
Henning Dieterichs
90e852884b Inline edits ui tweaks (#235018) 2024-12-02 18:19:53 +00:00
Sandeep Somavarapu
f59439b9a0 revert to text type for object policies (#234985) 2024-12-02 15:46:52 +01:00
Sandeep Somavarapu
6c6eb1e166 Support object type policy (#234428)
* #84756 Support object type policy

* add new policy object for array and object

* add new policy object type

* checkin policies.js file

* review

* fix warning

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2024-11-25 14:23:30 +00:00
Johannes Rieken
a43f284857 tweak inline chat hint (#234544) 2024-11-25 11:15:03 +01:00
Tyler James Leonhardt
305134296c Adopt the MSAL broker to talk to the OS for Microsoft auth (#233739)
This adopts the `NativeBrokerPlugin` provided by `@azure/msal-node-extensions` to provide the ability to use auth state from the OS, and show native auth dialogs instead of going to the browser.

This has several pieces:
* The adoption of the broker in the microsoft-authentication extension:
  * Adding `NativeBrokerPlugin` to our PCAs
  * Using the proposed handle API to pass the native window handle down to MSAL calls (btw, this API will change in a follow up PR)
  * Adopting an AccountAccess layer to handle:
    * giving the user control of which accounts VS Code uses
    * an eventing layer so that auth state can be updated across multiple windows
* Getting the extension to build properly and only build what it really needs. This required several package.json/webpack hacks:
  * Use a fake keytar since we don't use the feature in `@azure/msal-node-extensions` that uses keytar
  * Use a fake dpapi layer since we don't use the feature in  `@azure/msal-node-extensions` that uses it
  * Ensure the msal runtime `.node` and `.dll` files are included in the bundle
* Get the VS Code build to allow a native node module in an extension: by having a list of native extensions that will be built in the "ci" part of the build - in other words when VS Code is building on the target platform

There are a couple of followups:
* Refactor the `handle` API to handle (heh) Auxiliary Windows https://github.com/microsoft/vscode/issues/233106
* Separate the call to `acquireTokenSilent` and `acquireTokenInteractive` and all the usage of this native node module into a separate process or maybe in Core... we'll see. Something to experiment with after we have something working. NEEDS FOLLOW UP ISSUE

Fixes https://github.com/microsoft/vscode/issues/229431
2024-11-15 20:53:28 +09:00
Don Jayamanne
1b86938a29 Display deleted cells in viewzones (#233740)
* Display deleted cells in viewzones

* Simpler fix

* Revert

* misc
2024-11-13 07:23:30 +01:00
Tyler James Leonhardt
d6688b5ba3 Only rewrite sourcemap urls when js (#233626)
This prevents the build from touching any other kind of file.
2024-11-12 00:45:15 +01:00
Connor Peet
ec168810ca testing: update error message badge with some feedback (#233447)
- Make the border styleable
- Fix pointer rendering issues with zoom
- Make the width account for scroll contents
2024-11-08 23:17:15 +01:00
Kevin Cui
d0d222dee4 fix: cannot open vscode when use vscode-win32-x64 in Windows (#233285)
When executing `npm run gulp vscode-win32-x64` on the Windows platform, the `bundle-vscode` task is triggered. However, this task does not handle the path issues well, resulting in the contents of the `bootstrap-window.js` file not being injected into `workbench.js` and `processExplorer.js`.

The reason why VSCode does not encounter this issue is that the code compilation (compile-build) is performed on a Linux machine, while the Windows machine only executes the application build (vscode-win32-x64-ci will not trigger `bundle-vscode`).

Signed-off-by: Kevin Cui <bh@bugs.cc>
2024-11-08 13:17:17 +00:00
Connor Peet
cdd03ef969 testing: try out new 'badges' UI for test failures (#233137)
* badge wip

* badge wip

* testing: try out new 'badges' UI for test failures

I'm exploring some UI to make tests look better in already-busy
scenarios, like Copilot edits. We've long had these big inline message
decorations which get very noisy quickly, especially with word wrap on.
I'm exploring these smaller 'badge' type indicators. These are shown in
at most one place per test and their content length is very limited.
Clicking on them opens the traditional test error peek. Because I feel
like they are easier to see and more inviting to click, I turned off the
default behavior of opening the error peek. Making any edits in the test
case will dismiss the badge.

Closes #233028
2024-11-06 00:35:37 +01:00
Christof Marti
3d41ba214c Proxy support for Node.js fetch (#228697) 2024-11-06 00:22:35 +01:00
Alex Ross
e6f2cc2f0a Add an easy way to run performance tests for tree-sitter (#233072)
* Add an easy way to run performance tests for tree-sitter
Part os #210475

* Compile build folder
2024-11-05 15:35:58 +01:00
Johannes Rieken
08dbf783fc allow to resize inline chat zone (#232795)
* * make inline chat filter empty in-progress items
* show ellipses progress on request
* make inline zone animate its frame during request

* allow to resize inline chat zone

fixes https://github.com/microsoft/vscode/issues/230784
2024-11-01 02:01:56 -07:00
Christof Marti
bbf4ab6683 Fix layering 2024-11-01 08:59:46 +01:00
Henning Dieterichs
52f35de63b Uses proper theme colors for the inline edit indicator (#232055) 2024-10-23 07:45:11 -07:00
Rob Lourens
8d8f0cd9d4 Improve chat scrolling (#231370)
* Don't auto-scroll while chat response loads
Fix microsoft/vscode-copilot-release#138

* Show button all the time

* Fixes, don't auto-scroll for edit session view

* Keep autoscroll in inline and quick chat
2024-10-14 21:04:35 -07:00
Benjamin Pasero
89f039ff9f esm - fancyLog for bundle messages (#230638) 2024-10-06 09:27:18 -07:00
Benjamin Pasero
dc265add0b esm - drop need for manual concat (#230571) 2024-10-06 14:12:20 +02:00
Benjamin Pasero
9bd60d090a esm - better content mapper to address sourcemaps (#230476) 2024-10-04 15:34:21 +02:00
Johannes
6e4221f0ec remove swc 2024-10-04 11:23:51 +02:00
Johannes
4a5fdb2ff1 some more esbuild trickery 2024-10-03 18:39:45 +02:00
Johannes Rieken
2a96e0d571 Merge branch 'main' into joh/super-monkey 2024-10-03 17:18:23 +02:00
Martin Aeschlimann
fc6d94b806 [css/json/html] adopt latest lsp, update to module: node16 (#230371)
* adopt latest language-server/client

* update package-locks

* transpiler to support Node16
2024-10-03 13:49:56 +02:00