JSON: Show package.json dependency tooltips on hover (#13481)

Fixes https://github.com/zed-industries/zed/issues/13303

Release Notes:

- Added package version tooltips when hovering over package.json
dependency entries.
This commit is contained in:
Piotr Osiewicz 2024-06-25 14:59:29 +02:00 committed by GitHub
parent 6c0cb9eaa3
commit 55511d1591
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 152 additions and 7 deletions

View file

@ -117,10 +117,13 @@ pub fn init(
language!(
"json",
vec![Arc::new(json::JsonLspAdapter::new(
node_runtime.clone(),
languages.clone(),
))],
vec![
Arc::new(json::JsonLspAdapter::new(
node_runtime.clone(),
languages.clone(),
)),
Arc::new(json::NodeVersionAdapter)
],
json_task_context()
);
language!("markdown");