Skip to content

Commit b3ce82b

Browse files
committed
Enabled inlayHints, codeLens and signatureHelp
1 parent 56b3783 commit b3ce82b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/rescript.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,24 @@ impl zed::Extension for ReScriptExtension {
8888
env: Default::default(),
8989
})
9090
}
91+
92+
fn language_server_initialization_options(
93+
&mut self,
94+
_server_id: &zed::LanguageServerId,
95+
_worktree: &zed::Worktree,
96+
) -> Result<Option<zed::serde_json::Value>> {
97+
Ok(Some(zed::serde_json::json!({
98+
"extensionConfiguration": {
99+
"inlayHints": {
100+
"enable": true
101+
},
102+
"codeLens": true,
103+
"signatureHelp": {
104+
"enabled": true
105+
}
106+
}
107+
})))
108+
}
91109
}
92110

93111
zed::register_extension!(ReScriptExtension);

0 commit comments

Comments
 (0)