feat(lsp): add workspace config to status page (#11459)

This commit is contained in:
Kitson Kelly 2021-07-21 11:50:43 +10:00 committed by GitHub
parent e1d3c425c8
commit c34fef4b71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View file

@ -2441,10 +2441,19 @@ impl Inner {
let mut sources_specifiers = self.sources.specifiers();
sources_specifiers.sort();
let measures = self.performance.to_vec();
let workspace_settings = self.config.get_workspace_settings();
contents.push_str(&format!(
r#"# Deno Language Server Status
## Workspace Settings
```json
{}
```
## Workspace Details
- <details><summary>Documents in memory: {}</summary>
- {}
@ -2463,6 +2472,7 @@ impl Inner {
</details>
"#,
serde_json::to_string_pretty(&workspace_settings).unwrap(),
self.documents.len(),
documents_specifiers
.into_iter()