ZIm/crates/languages/src
Kirill Bulatov 8a31dcaeb0
Use textDocument/codeLens data in the actions menu when applicable #2 (#26848)
Re-applies what's been reverted in
https://github.com/zed-industries/zed/pull/26832 with an action-related
fix in
64b5d37d32

Before, actions were resolved only if `data` is present and either of
the possible fields is empty:

e842b4eade/crates/project/src/lsp_store.rs (L1632-L1633)

But Zed resolves completions and inlays once, unconditionally, and the
reverted PR applied the same strategy to actions.
That did not work despite the spec not forbidding `data`-less actions to
be resolved.

Soon, it starts to work due to
https://github.com/rust-lang/rust-analyzer/pull/19369 but it seems safer
to restore the original filtering code.

Code lens have no issues with `data`-less resolves:

220d913cbc/crates/rust-analyzer/src/handlers/request.rs (L1618-L1620)

so the same approach as completions and inlays is kept: resolve once.


Release Notes:

- N/A
2025-03-15 20:09:32 +00:00
..
bash Improve Bash syntax highlighting (#25324) 2025-02-21 10:36:07 -05:00
c Improve C and C++ syntax highlighting (#25325) 2025-02-21 12:01:39 -05:00
cpp Recognize ixx as part of the cpp suffix (#26333) 2025-03-10 09:10:29 -05:00
css vim: Update anyquotes and anybrackets to behave like mini.ai plugin (#24167) 2025-02-17 14:55:48 -07:00
diff Improve diff syntax highlighting queries (#21740) 2024-12-12 15:18:36 -08:00
gitcommit Rework shared commit editors (#24274) 2025-02-05 15:36:24 +00:00
go Improve Go syntax highlighting (#25327) 2025-02-21 11:32:14 -05:00
gomod Add "tool" support to go.mod (#22995) 2025-01-15 17:44:28 +02:00
gowork File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
javascript Revert "Highlight super and this as keywords in JS/TS/TSX" (#26342) 2025-03-09 16:11:37 +00:00
jsdoc Add language icons to the language selector (#21298) 2024-12-02 15:01:09 -03:00
json Consider the colon to be a word character when inside a string in JSON (#26574) 2025-03-13 16:21:34 -04:00
jsonc Consider the colon to be a word character when inside a string in JSON (#26574) 2025-03-13 16:21:34 -04:00
markdown vim: Update anyquotes and anybrackets to behave like mini.ai plugin (#24167) 2025-02-17 14:55:48 -07:00
markdown-inline Hide Markdown-Inline language from users with a new 'hidden' flag on language configs (#17104) 2024-08-29 11:23:33 -07:00
python python: Fix and improve highlighting (#25813) 2025-03-04 08:41:10 +01:00
regex Fix regex search colors (#25962) 2025-03-03 15:55:07 -07:00
rust rust: Follow-up fixes for attribute highlighting (#26172) 2025-03-14 23:02:45 +00:00
tsx Revert "Highlight super and this as keywords in JS/TS/TSX" (#26342) 2025-03-09 16:11:37 +00:00
typescript Revert "Highlight super and this as keywords in JS/TS/TSX" (#26342) 2025-03-09 16:11:37 +00:00
yaml vim: Update anyquotes and anybrackets to behave like mini.ai plugin (#24167) 2025-02-17 14:55:48 -07:00
bash.rs Allow auto-indenting with syntax errors when using regex-based indent matches to improve bash auto-indent behavior (#24160) 2025-02-03 21:34:37 -06:00
c.rs Disable clangd's inactiveRegions support (#26539) 2025-03-12 14:20:05 +00:00
css.rs Enable CSS, JSON, Python, and Tailwind to lookup LSP installed in PATH (#22037) 2025-02-04 14:50:49 -05:00
go.rs lsp: Use available workspace folders in initialize params (#25753) 2025-02-27 16:45:59 +01:00
json.rs settings: Auto-update JSON schemas for settings when extensions are un/installed (#26633) 2025-03-13 16:50:07 +00:00
lib.rs Add support for auto-closing of JSX tags (#25681) 2025-03-06 08:36:10 -06:00
python.rs Rust 1.85 (#25272) 2025-02-28 18:33:35 +01:00
rust.rs Use textDocument/codeLens data in the actions menu when applicable #2 (#26848) 2025-03-15 20:09:32 +00:00
tailwind.rs Enable CSS, JSON, Python, and Tailwind to lookup LSP installed in PATH (#22037) 2025-02-04 14:50:49 -05:00
typescript.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00
vtsls.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00
yaml.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00