mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Use consistent name for marking markdown docs
This commit is contained in:
parent
68040fa300
commit
2dc19b668f
2 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@
|
|||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.marked-docs {
|
||||
.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs {
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
|
|
|
@ -249,10 +249,10 @@ class SuggestionDetails {
|
|||
}
|
||||
removeClass(this.el, 'no-docs');
|
||||
if (typeof item.suggestion.documentation === 'string') {
|
||||
removeClass(this.docs, 'marked-docs');
|
||||
removeClass(this.docs, 'markdown-docs');
|
||||
this.docs.textContent = item.suggestion.documentation;
|
||||
} else {
|
||||
addClass(this.docs, 'marked-docs');
|
||||
addClass(this.docs, 'markdown-docs');
|
||||
this.docs.innerHTML = this.markdownRenderer.render(item.suggestion.documentation).innerHTML;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue