Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 3a70703

Browse files
authored
Merge pull request #212 from autumnull/master
2 parents 1defc53 + 513fc6c commit 3a70703

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,12 @@ class RustLanguageClient extends AutoLanguageClient {
459459
// Don't build straight after initialize, wait for first `workspace/didChangeConfiguration`
460460
params.initializationOptions.omitInitBuild = true
461461

462+
// let the server know we support markdown
463+
params.capabilities.general.markdown = {
464+
"parser": "marked"
465+
};
466+
params.capabilities.textDocument.hover.contentFormat = ["markdown", "plaintext"];
467+
462468
let rlsConfigPath = path.join(projectPath, "rust-analyzer.json")
463469

464470
if (!fs.existsSync(rlsConfigPath)) {

0 commit comments

Comments
 (0)