Commit Graph

124157 Commits

Author SHA1 Message Date
Alex Ross eb4633fe7f Re-merge introduction of tree sitter (#223474)
* Make space for tree sitter

* Add the tree sitter wasm file

* Very naive tree-sitter syntax highlighting for html, with a layer breaker

* Update tree when content changes

* WIP for making abstract tokens class

* Handle theme changes

* Replace entire text model value with parse callback

* Perf improvements

* Add tree-sitter-typescript

* Add typescript + better initial parsing

* Refactor into tree parsing service and fix flaw in parse callback

* Remove things that aren't the parser service

* Add yielding

* Remove changes that aren't required for PR

* Remove more file changes

* Reduce yield to 50 ms

* Fix incremental parsing

* Try update node-abi

* Revert "Try update node-abi"

This reverts commit df28801e31.

* Update text buffer chunk api

* fix build

* Remove tree-sitter dependency

* Adopt new, as yet unpublished, `@vscode/tree-sitter-wasm` package

* Use published `@vscode/tree-sitter-wasm` package

* Break `TreeSitterTree` and `TreeSitterParserService` into better pieces
and:
- document the order of editor changes
- use service injection where `TextModel` is constructed

* Fix tests

* Remove unneeded import

* Fix missing tree-sitter-wasm in web and remote

* Make package.jsons match

* Add @vscode/tree-sitter-wasm to web loader config

* Try using importAMDNodeModule

* PR feedback

* Add race condition test for changing language while loading language

* Use same timeout

* Queue content changes

* Remove override dispose

* Move queue into TreeSitterTree

---------

Co-authored-by: Peng Lyu <penn.lv@gmail.com>
2024-07-29 11:31:28 +02:00
Ladislau Szomoru 9c9ef6614b Git - improve handling of first commit (#224165) 2024-07-29 11:01:34 +02:00
Sandeep Somavarapu 819eba7049 do not show pointer on invisible twisities (#224155) 2024-07-29 10:40:34 +02:00
Sandeep Somavarapu efb2f22eae fix #223509 - Show the workspace extension in recommended section even if it is installed (#224158) 2024-07-29 10:40:07 +02:00
Sandeep Somavarapu ed925febdc show workspace extension when offline (#224162) 2024-07-29 10:39:39 +02:00
John Murray 0c5af5d902 Show readonly filename decoration after revert that also resets mtime (fix #221014) (#221023)
* Show readonly filename decoration after revert

* Use a different approach that obeys 'increasing mtime' rule

* Also update locked flag

* Add tests
2024-07-29 07:41:31 +02:00
Loïc Mangeonjean 0f9f2a098a Properly detect node env everywhere (#221357)
fix: properly detect node env everywhere

Co-authored-by: Loïc Mangeonjean <loic@coderpad.io>
2024-07-29 07:41:20 +02:00
Benjamin Pasero e843c48c11 "Reopen editor with..." appears on a group context menu (fix #224048) (#224149) 2024-07-29 07:34:38 +02:00
Benjamin Pasero d12c0c7892 Close button on notebooks is broken (#221582) (#224146)
Close button on notebooks is broken (fix #221582)
2024-07-28 22:18:31 -07:00
Arvid Lunnemark 5cebe615e6 Never run cleared auxwindow timeouts (#221296)
* make sure the timeout does not run if it has been cleared

* use `unknown`

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2024-07-29 07:12:09 +02:00
JessCha 64c103f824 Fix typo in extHostExtensionService.ts (#224111)
Co-authored-by: decisive <decisive@decisiveui-noteubug.local>
2024-07-29 04:44:47 +00:00
Benjamin Pasero a1a996552e Unsafe type assertions on object literals (#211878) (#224126) 2024-07-29 01:36:03 +02:00
Sandeep Somavarapu 2c46cf10d6 #223368 enable hoverHint (#224114) 2024-07-28 17:21:08 +02:00
Connor Peet 7e805145f7 remote: gracefully disconnect from remote EH (#223422)
* remote: gracefully disconnect from remote EH

Addresses https://github.com/microsoft/vscode/issues/211462#issuecomment-2245716115

This applies the same fix seen in #218972 to the extension host. It adds
a `disconnect` method that is called and awaited during the lifecycle
shutdown, which is implemented by th remote extension host connection.

The disconnection is awaited, but I think this is safe because it only
awaits `.drain()` and does so in the context of methods which were
already async at higher levels.

* fix tests

* Revert "cli: honor --connection-token-file in serve-web (#219041)"

This reverts commit d8ddc28be0. That
commit was incorrectly merged in the branch.
2024-07-27 14:51:50 -07:00
BABA e7f635d50b Remove duplicate code 2024-07-27 23:55:28 +08:00
Benjamin Pasero 8810d514c7 editors - 💄 configure actions (#224053) 2024-07-27 10:59:30 +02:00
Rob Lourens 5b5e760015 Hide chat view when default participant goes away (#224039)
Fix microsoft/vscode-copilot#1281
2024-07-26 18:13:58 -07:00
Raymond Zhao 12fecf509e fix: entry not always listed in Settings editor (#224035) 2024-07-26 17:31:26 -07:00
Matt Bierner caa558b764 Pick up latest Markdown language server (#224020) 2024-07-26 16:55:33 -07:00
Daniel Imms 90c9b428cf Merge pull request #224037 from microsoft/tyriar/224036
Complete all variables when it's the fist part
2024-07-26 16:39:48 -07:00
Daniel Imms cf3158b814 Complete all variables when it's the fist part
Fixes #224036
2024-07-26 16:13:16 -07:00
Matt Bierner 70ffbbae97 Fix a few small jsdoc issues in vscode.d.ts (#223411)
Adding inline code and using `@link`
2024-07-26 14:42:37 -07:00
Justin Chen 6379f57125 remove listeners in web issue reporter (#223991)
removed some listners
2024-07-26 14:14:20 -07:00
Rob Lourens 09ad4d9db4 Simplify IChatWidgetContrib (#223973)
* Simplify IChatWidgetContrib
Remove onDidChangeInputState
Better fix for microsoft/vscode-copilot#6957

* Build
2024-07-26 14:11:50 -07:00
Matt Bierner b755f23918 Fix potential null reference on release notes click (#223813)
See when using the `Developer: open as release notes` command
2024-07-26 13:58:20 -07:00
Andrea Mah 5c04f572d5 adjust API shape for providers (#223984)
* reduce redundancies in new provider API

* move encoding
2024-07-26 13:57:03 -07:00
Connor Peet e59d6aee71 cli: allow listening on range of ports (#223953)
* cli: allow listening on range of ports

For https://github.com/microsoft/vscode-remote-release/issues/10043

* clippy lint
2024-07-26 13:36:36 -07:00
Nick Trogh e10ebbfb52 Merge pull request #223963 from microsoft/walkthrough-fix-docslink
Fix docs link in walkthrough
2024-07-26 22:17:07 +02:00
Nick Trogh 512659a909 Fix docs link in walkthrough 2024-07-26 19:44:15 +00:00
Andrea Mah 00374b8a5d feedback from search api finder TPI (#223950)
* add documentation for includes and excludes as arrays.
Fixes https://github.com/microsoft/vscode/issues/223286

* Tweaks to ExcludeSettingOptions
Fixes https://github.com/microsoft/vscode/issues/223384
Fixes https://github.com/microsoft/vscode/issues/223385
Fixes https://github.com/microsoft/vscode/issues/223387

* `UseIgnoreFiles` cleanup and other tweaks
Fixes https://github.com/microsoft/vscode/issues/223396
Fixes https://github.com/microsoft/vscode/issues/223394
Fixes https://github.com/microsoft/vscode/issues/223391

* document default value of maxResults
Fixes https://github.com/microsoft/vscode/issues/223395

* clarify matchLines
Fixes https://github.com/microsoft/vscode/issues/223324
2024-07-26 11:35:47 -07:00
Daniel Imms 9d4c0fd08b Merge pull request #223946 from microsoft/tyriar/223945
Suggest exit keyword with score penalty
2024-07-26 11:34:39 -07:00
Daniel Imms a94e2ca460 Merge pull request #223941 from microsoft/tyriar/223936
Provide most recent dir completion to optimize cd to a dir flow
2024-07-26 11:26:51 -07:00
Daniel Imms ea02b83db3 Suggest exit keyword with score penalty
Fixes #223945
2024-07-26 10:52:07 -07:00
Henning Dieterichs ed3e347909 Merge pull request #223939 from microsoft/hediet/b/generous-eagle
Adresses #223937
2024-07-26 19:13:04 +02:00
Daniel Imms 58e824154c Provide most recent dir completion to optimize cd to a dir flow
Fixes #223936
2024-07-26 10:05:48 -07:00
Henning Dieterichs fa112dbfcb Adresses #223937 2024-07-26 18:54:18 +02:00
Daniel Imms 9d97e5efb9 Merge pull request #223421 from anton-matosov/fix-path-prefix-in-shell-integrations
A followup to #171066 fixing zsh and fish shells implementations
2024-07-26 09:23:56 -07:00
Daniel Imms 567753bc7a Merge pull request #223925 from microsoft/tyriar/dedupe_ctx_menu
Consolidate terminal mouse handling code
2024-07-26 09:13:46 -07:00
Daniel Imms 289123e8b6 Merge pull request #223923 from microsoft/tyriar/fontinfo_type
Define explicit type for simple suggest font info
2024-07-26 09:06:13 -07:00
Daniel Imms 9dcc07aa0c Consolidate terminal mouse handling code
Following up on #223882
2024-07-26 08:57:00 -07:00
Daniel Imms 64b54bb1ee Define explicit type for simple suggest font info
Following up on #223878
2024-07-26 08:42:08 -07:00
Daniel Imms 699b8df2b1 Merge pull request #223878 from microsoft/tyriar/223876_cache_font_info
Cache font info to avoid excessive layout
2024-07-26 07:14:37 -07:00
Daniel Imms 520d75206d Merge pull request #223873 from microsoft/tyriar/223641
Don't log [object Object]
2024-07-26 06:39:37 -07:00
Daniel Imms 16216c7415 Merge pull request #223765 from microsoft/tyriar/223368
Add showHoverHint to setupManagedHover
2024-07-26 06:36:00 -07:00
Daniel Imms 1a5e42fe87 Merge pull request #223882 from microsoft/tyriar/223358
Don't action right click when target is scroll bar
2024-07-26 06:35:35 -07:00
Daniel Imms 9a02ce1440 Don't action right click when target is scroll bar
Fixes #223358
2024-07-26 06:12:29 -07:00
Alex Ross bba3580726 Wait for extension points to process (#223837) 2024-07-26 06:07:23 -07:00
Daniel Imms d2567552da Cache font info to avoid excessive layout
Fixes #223876
Fixes #223871
2024-07-26 06:00:06 -07:00
Daniel Imms 82465b37c8 Don't log [object Object]
Fixes #223641
2024-07-26 05:46:09 -07:00
Alex Ross c47678c453 CommentController.activeCommentThread not updated when navigating from editor gutter (#223839)
Fixes #223824
2024-07-26 12:15:16 +02:00