Commit graph

101612 commits

Author SHA1 Message Date
Matt Bierner 5b7233c5e3
Use for-of loop instead (#163491) 2022-10-12 17:01:38 -07:00
Matt Bierner 24a2b8af8c
Re-apply: Clean up how the notebook renderer entrypoint is passed around (#163486)
Revert "Revert "Clean up how the notebook renderer entrypoint is passed around (#163373)""

This reverts commit a3d8c33761.

Fixes #163415
2022-10-12 16:49:40 -07:00
Matt Bierner 7cfb34dff4
Freeze the notebook kernel context (#163488)
This is an API object so it should not be extensible
2022-10-12 16:47:22 -07:00
Jake Bailey 07b87405e7
Don't depend on typescript protocol.d.ts (#163365) 2022-10-12 16:03:07 -07:00
Megan Rogge 6f7820c454
add accessibility setting tag (#163358) 2022-10-12 15:38:57 -07:00
Matt Bierner f5ced8231b
Small clean up for terminal tab list rendering lifecycle (#163485)
Small clean up for terminal tab list lifecycle

- Reuse the same `DisposableStore` across calls to `renderElement`
- Make sure we call `dispose` on the actionbar instead of `clear`. This looks like an oversight
2022-10-12 15:38:29 -07:00
Matt Bierner b5542cae84
Document more of lifecycle.ts (#163482) 2022-10-12 15:23:09 -07:00
Alexandru Dima fd0b0ae532
Merge pull request #163476 from microsoft/alexd/delighted-emu
Clamp the hover result range to make sure the hover stays on the same view line
2022-10-12 23:58:25 +02:00
Megan Rogge 3ddce0580e
add diff editor navigation tip to aria label (#163368) 2022-10-12 14:19:38 -07:00
Tyler James Leonhardt 342aa9c59a
Improvements to i18n (#163372)
* remove dead code from Transifex

* use @vscode/l10n-dev for XLF operations for extensions

* generated files

* more generated files

* remove dead code

* move l10n-dev to where gulp is

* generated
2022-10-12 14:10:57 -07:00
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
Alex Dima 3c9854fe86
Fixes #95328: Clamp the hover result range to make sure the hover stays on the same view line 2022-10-12 22:35:13 +02: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
Alex Dima e2dd710d99
Revert "Always dispose test editor even if a test fails"
This reverts commit 7f17834a59.
2022-10-12 15:43:11 +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