Skip to content

Commit d652004

Browse files
add css styling to make rendered markdown files match tooltip
- In this case Library Titles like ZodDiscriminatedUnion were not matching This commit has been edited 1 times
1 parent 27ac00d commit d652004

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"scopeName": "source.type",
5959
"path": "./syntaxes/type.tmGrammar.json"
6060
}
61+
],
62+
"markdown.previewStyles": [
63+
"./dist/extension.css"
6164
]
6265
},
6366
"scripts": {

src/extension.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
span.hljs-title.class_ {
2+
color: #4ec9b0
3+
}

src/extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { registerSelectedTextHoverProvider } from "./provider/selectedTextHoverP
1414
import { uriStore } from "./provider/uriStore";
1515
import { has } from "./utils";
1616
import { PRETTY_TS_ERRORS_SCHEME, textDocumentContentProvider } from './provider/textDocumentProvider';
17+
import './extension.css'
1718

1819
const cache = new Map();
1920

0 commit comments

Comments
 (0)