Commit Graph

1641 Commits

Author SHA1 Message Date
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
Johannes Rieken
eb3f1d15b0 Merge branch 'main' into joh/super-monkey 2024-10-02 15:59:35 +02:00
Benjamin Pasero
c5b6ef14e6 esm - more cleanup (#230285) 2024-10-02 11:55:17 +02:00
Johannes
c4093a5112 tweak transpile and pasteUrl.test 2024-10-02 10:30:35 +02:00
Johannes
90fad18259 Merge branch 'main' into joh/super-monkey 2024-10-02 10:04:48 +02:00
Johannes
3ae94fbae4 more transpile tweaks 2024-10-02 10:04:41 +02:00
Joyce Er
370f5619b9 fix: use chat edit state for chat file list decorations (#230284)
* fix: use chat edit state for chat file list decorations

* Add theme defaults
2024-10-02 09:50:08 +02:00
Benjamin Pasero
3b68a06818 esm - removal of CSS loader (#230206) 2024-10-01 19:24:18 +02:00
Johannes
c1fb7325bd add esbuild transpiler for fast CI 2024-10-01 16:26:50 +02:00
Connor Peet
8a32f69162 refactor: cleanup debt for hashing (#230174)
* refactor: cleanup debt for hashing

- Adds a type to avoid direct usage of sync `hash()` for consumers
  working with binary input.
- Moved the previous browser-only `sha1Hex` to `hash.ts` now that
  webcrypto is quite universal, including in Node.js since 19.
- Cleaned up some code that is replaced with modern built-in functions
  like `TypedArray.fill` and `padStart`.
- The `NotebookSimpleWorker` was manually calculating the hash for
  its binary data (probably to avoid the same issue as #229619), so
  I swapped that to use webcrypto as well which is much speedier for
  large inputs (125ms vs 8ms for 10MB of data) @rebornix

Closes https://github.com/microsoft/vscode/issues/229845

* update layer checker
2024-09-30 20:56:03 -07:00
Matt Bierner
51fa4d0172 Fix more type assertions (#230156)
* Fix more type assertions

For #211878

* Fix type error
2024-09-30 14:17:06 -07:00
Benjamin Pasero
36b52aa938 esm - inline minimist (#230155)
* esm - inline `minimist`

* .

* .

* .
2024-09-30 13:13:42 -07:00
Benjamin Pasero
e7abf7becb esm - inline main entry points (#230135) 2024-09-30 20:22:47 +02:00
Benjamin Pasero
1c45703db2 debt - update colors (#230103) 2024-09-30 11:13:55 +02:00
Aiday Marlen Kyzy
eec0d205c8 Edit Context : Using border instead of background color for composition (#229851)
* registering new colors to use for the composition

* removing background color and using border instead
2024-09-30 10:44:47 +02:00
Benjamin Pasero
1d219d75ef esm - fix layer checker 2024-09-27 08:58:11 +02:00
Benjamin Pasero
3b8c31c64a esm - fix transpile 2024-09-27 08:32:14 +02:00
Benjamin Pasero
7d428d77a0 esm - remove build support for prepend 2024-09-27 08:05:22 +02:00
Benjamin Pasero
87f3486f5f esm - restore default header 2024-09-27 08:05:16 +02:00
Benjamin Pasero
c7caef00ea esm - make optimize.ts ESM only 2024-09-27 08:05:06 +02:00
Benjamin Pasero
b544846460 esm - further cleanup build scripts 2024-09-27 08:04:56 +02:00
Benjamin Pasero
c1952297c5 esm - cleanup editor worker build descriptors 2024-09-27 08:04:36 +02:00
Benjamin Pasero
d34e895b8e esm - more AMD removal 2024-09-27 08:04:23 +02:00
Benjamin Pasero
332b89f198 esm - remove AMD build scripts, tests and variables 2024-09-27 08:04:01 +02:00
Benjamin Pasero
9784b5e1e6 esm - restore our copyright header in built files (#229751) 2024-09-25 21:48:02 +02:00
Benjamin Pasero
7d5cc34a5d esm - try to restore sourcemaps (fix microsoft/vscode-internalbacklog#5073) (#228303)
esm - try to restore sourcemaps
2024-09-11 21:14:53 -07:00
Daniel Imms
3442819ad7 Merge pull request #225413 from microsoft/tyriar/gpu_exploration
Initial basic GPU renderer for editor
2024-09-10 12:21:27 -07:00
Ladislau Szomoru
4ade36e5ca SCM - 💄 remove more of the history item group terminology (#228139) 2024-09-10 20:27:27 +02:00
Daniel Imms
e38a560e6b Merge remote-tracking branch 'origin/main' into tyriar/gpu_exploration 2024-09-10 11:22:25 -07:00