Commit Graph

101600 Commits

Author SHA1 Message Date
Suven-p 22ff985c19 Add multiple template parameters (#163191) 2022-10-12 14:06:19 -07:00
Matt Bierner d055619b39 Re-use label listener when rendering explorer elements (#163474)
This moves the label render listener to the template instead of being created for each element. To do this, we also need to store some context info on the current template data

This further improves performance as it avoids registering an extra event and adding to the disposable store for each rendered explorer item
2022-10-12 17:05:39 -04:00
Johannes Rieken 2c332cefa2 commit characters must check suggest model state before proceeding (#163467)
fixes https://github.com/microsoft/vscode/issues/163431
2022-10-12 23:05:11 +02:00
Rob Lourens c1ac9ecbb5 Initialize context keys a bit later to avoid triggering recursive instantiation (#163445)
Fix #163314
2022-10-12 13:37:23 -07:00
Matt Bierner a2aeb3110a Use toggle instead of dynamic call to class list add/remove (#163464) 2022-10-12 11:06:27 -07:00
Matt Bierner b2d129c4e5 Fix ipv6 support for simple browser (#163374)
Fixes #158599

This correctly handles ipv6 uris, such as `http://[::]:3000`. In these cases, the brackets are required
2022-10-12 11:04:56 -07:00
Matt Bierner c56e49670e Reduce event listeners created when rendering explorer items (#163394)
Reduce event listeners created when rendering explorer

Every time an explorer item is rendered, we currently hook up a `themeService.onDidFileIconThemeChange` listener for it. This ends up creating a lot of extra event listeners even though this even it pretty rarely fired

Instead, this PR switches us to have a single listener the re-renders the entire tree. Since this should not be a common event, I believe this is reasonable. Profiling also shows that this cuts both the rendering time and amount of garbage generated
2022-10-12 10:19:43 -07:00
Rob Lourens 749f480915 Fix "Add Configuration" launch.json button on Windows (#163444)
Fix #163266
2022-10-12 09:37:24 -07:00
Matt Bierner 61532aeb56 Re-use DisposableStores when rendering explorer items (#163380)
While trying to debug an performance issue with scrolling the explorer, I noticed that the explorer list renderer creates a new `DisposableStore` every time it renders an item

For performance, it's better to create a DisposableStore for each template and then re-use this when rendering elements. This store is cleared in the `disposeElement` function
2022-10-12 09:02:57 -07:00
Matt Bierner f26411046b Don't create extra disposable stores when rendering settings tree elements (#163407)
Re-use disposable stores when rendering settings tree
2022-10-12 09:02:22 -07:00
Connor Peet 6353f80f3d Merge pull request #161640 from microsoft/build-integrated-cli
Update build process to include integrated CLI
2022-10-12 08:59:37 -07:00
Raymond Zhao bf220dd91e Darken red colour in light theme for better contrast (#163335) 2022-10-12 08:47:13 -07:00
John Murray 5e2f5e57cb Link to vscode-discussions repo from New Issue click (#162643) 2022-10-12 10:00:31 -04:00
Ladislau Szomoru b43c281df2 Git - Attempt to parse HEAD file before invoking git.exe (#162572)
* Attempt to parse HEAD file before invoking git.exe

* Pull request feedback

* Pull request feedback

* More pull request feedback
2022-10-12 15:56:36 +02:00
Matt Bierner bbc1c35e4c Re-use disposable store while rendering elements (#163398)
While rendering, the tree renderer currently creates a `DisposableStore` every time `renderElement` is called. For better performance, we should instead re-use a disposable store that is stored on the template data

I've also moved some cleanup logic to  `disposeElement` instead of putting it in this store. This avoids creating and registering extra disposables
2022-10-12 14:44:30 +02:00
Ladislau Szomoru 3992d5b9ab Git - Show progress indicator while running fetch (#163425)
Show progress indicator while running fetch
2022-10-12 04:31:31 -07:00
Ladislau Szomoru 3e4df23350 Git- get commit input template in parallel with other operations (#163423) 2022-10-12 13:31:08 +02:00
Henning Dieterichs 9c706ce0d4 Implements #159027 (#163420) 2022-10-12 13:30:42 +02:00
Sandeep Somavarapu 44673c2129 add more logging (#163419)
* add more logging

* fix tests: check remote.all for remote change
2022-10-12 03:38:48 -07:00
Johannes Rieken 56f631257c Merge pull request #163417 from microsoft/joh/varied-alpaca
Revert "Clean up how the notebook renderer entrypoint is passed around (#163373)"
2022-10-12 12:01:47 +02:00
Johannes a3d8c33761 Revert "Clean up how the notebook renderer entrypoint is passed around (#163373)"
This reverts commit 8b0248854a.

Workaround for https://github.com/microsoft/vscode/issues/163415
2022-10-12 11:25:02 +02:00
Ladislau Szomoru 8c946e23f4 Git - Fix typo in setting description (#163400)
Fix typo in setting description
2022-10-12 09:12:39 +02:00
Alexandru Dima 72a982d0d3 Fix typo in regex (#163404) 2022-10-12 00:08:09 -07:00
Tyler James Leonhardt 3e4e351816 Enforce ILocalizedString usage with f1 property via types (#162991)
* Enforce ILocalizedString usage with f1 property via types

* complete comment

* Visit all symbols when encountering a union type

* use ILocalizedString

* fix tests

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-10-11 21:24:43 -07:00
Jean Pierre 24b8eb0d54 Fixes simple browser webview is not reused if restored (#163389)
Fixes #163387
2022-10-11 20:59:54 -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
Matt Bierner fdb8812822 Always mark notebook list rendering elementDisposables as disposed (#163382)
Mark notebook list rendering elementDisposables as disposed

This updates `disposeTemplate` for notebook list rendering to mark the `elementDisposables` as disposed instead of simply clearing them. This is helpful if you are using `TRACK_DISPOSABLES`, and will also log if you try adding to the disposable after it has been disposed of

Also marks more template fields as readonly
2022-10-11 19:31:41 -07:00
Matt Bierner 8b0248854a Clean up how the notebook renderer entrypoint is passed around (#163373)
This internally makes entrypoint into a single property instead of splitting it across `entrypoint` and `extends`

Also removes unused properties from `INotebookRendererInfo`
2022-10-11 19:03:42 -07:00
Rob Lourens bad5e65a09 Don't log this error (#163384)
I think it's expected that sometimes the resource from the debug session will outlive the session itself
Fix #163270
2022-10-11 18:21:42 -07:00
Matt Bierner e1a373defd Finalize markdown link updating on file move (#163378)
Fixes #148146
2022-10-11 17:42:10 -07:00
Matt Bierner 6cf68a1f23 Remove .only and fix tests (#163376)
Fixes #162159
2022-10-11 17:41:13 -07:00
Rob Lourens 28891790e9 Send breakpoint init requests in parallel (#163250)
* Send breakpoint init requests in parallel
Fix #163248

* Keep serial breakpoint init style when the DA does not support the configurationDone request

* Extract complex setBreakpoints expression
2022-10-11 17:27:39 -07:00
Matt Bierner 1bda1e241c Pick up latest TS for building VS Code (#163375) 2022-10-11 17:13:00 -07:00
Ian Huff 6d96eb0dfb update distro to allow Jupyter access to notebookControllerAffinityHidden (#163369)
Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro.local>
2022-10-11 16:27:24 -07:00
Matt Bierner fa6b137214 Inline factory methods (#163363) 2022-10-11 16:15:28 -07:00
Matt Bierner d05d85a78b Move html rewriting for old webviews to (#163367)
The `asWebviewUri` methods was introduced in VS Code 1.38. It's silly that we still force every single webview to pay the cost of trying to rewrite the old style uris we supported in very old versions of VS Code

Instead I've moved this logic into the extension host and disabled it for all extensions that target VS Code 1.60+ or newer. This means it never applies to internal webviews, notebooks, webview views, or custom editors (these public apis were all introduced after the switch to `asWebviewUri`)
2022-10-11 16:08:17 -07:00
Matt Bierner 0abb1e99c2 Align switch case style in service worker (#163364) 2022-10-11 16:06:58 -07:00
Matt Bierner cc8feda380 Use Object.entries for updating styles in webview (#163359)
Use Object.entries for updating styles
2022-10-11 16:05:08 -07:00
Matt Bierner d9166909b6 Small clean up to mainthread and exthost custom editor code (#163350)
- Align property names
- Move private method to function
- Formatting
2022-10-12 00:36:48 +02:00
Matt Bierner 84e5fd623d Remove unused method (#163361) 2022-10-11 15:12:05 -07:00
Rob Lourens baa2dedb94 Make notebook singletons lazy (#162758)
* Address #159178 for notebooks

* Add method to list editor decorations so they can be initialized in the lazy instantiated NotebookService
2022-10-11 15:02:17 -07:00
Don Jayamanne 43957ccfe1 Compress streams in notebook outputs (#160946)
* Revert "Compress notebook output streams before rendering (#160667)"

This reverts commit 4230c22a08.

* Compress stream output items

* Minor perf improvements

* Misc

* Comments

* Added tests

* Merge issue

* More merge issues

* Misc

* Address code review comments
2022-10-11 14:43:46 -07:00
Tyler James Leonhardt 4322170fd8 comment is an array (#163348) 2022-10-11 13:39:12 -07:00
Rob Lourens f5047cb4f0 Fix build (#163347) 2022-10-11 21:55:49 +02:00
Logan Ramos e814cb5c65 Telemetry API (#160902)
* First run of scaffolding out a telemetry API

* Make telemetry config up to date

* Further work on telemetry API

* Implement telemetry logging extension host

* Add logging to exthost logger

* Extract telemetry cleaning

* Add data cleaning

* Update email regex
2022-10-11 15:44:18 -04:00
Tyler James Leonhardt 53785ee45d Finalize localization API (#163344) 2022-10-11 12:39:39 -07:00
Sandeep Somavarapu 864b8b2b6c Fix #163005 (#163339) 2022-10-11 12:03:05 -07:00
Matt Bierner 34b0554228 Use map instead of objects for storing contributions and actions (#163342)
This fixes a typing error where `getAction` could return null, but our types weren't catching this
2022-10-11 11:58:12 -07:00
Matt Bierner f27886d7d4 Document webview view service (#163341) 2022-10-11 11:57:58 -07:00
Rob Lourens 3305ea470a Start optimizing DebugService creation (#162879)
* Debug editor contribs should not force DebugService to be created immediately
Fix #159886

* Do slow registration of debug fs provider later

* Small optimization to context keys in DebugService
2022-10-11 11:54:16 -07:00