-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render JSDoc examples as typescript code #234143
Conversation
@microsoft-github-policy-service agree |
extensions/typescript-language-features/src/languageFeatures/util/textRendering.ts
Outdated
Show resolved
Hide resolved
4c3e3ab
to
1f025e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@ribru17 Looks like some unit tests are failing. Can you please take a look https://dev.azure.com/vscode/VSCode/_build/results?buildId=137571&view=logs&j=a8a6689c-5a84-59c0-482a-7dd9f21eb2d8&t=6a176377-a7f9-5885-a44e-71e6c3076321&l=1215 |
Currently `@example` produces Markdown code blocks for code examples, but they are not annotated with a programming language. This commit annotates those code blocks as `typescript`, allowing for better highlighting for JS/TS when using Markdown renderers that recognize these languages.
1f025e6
to
75ee4fe
Compare
Oops thanks for lmk! Should be fixed now. |
Currently `@example` produces Markdown code blocks for code examples, but they are not annotated with a programming language. This commit annotates those code blocks as `typescript`, allowing for better highlighting for JS/TS when using Markdown renderers that recognize these languages.
Currently
@example
produces Markdown code blocks for code examples, but they are not annotated with a programming language. This commit annotates those code blocks astypescript
, allowing for better highlighting for JS/TS when using Markdown renderers that recognize these languages.See this related PR: typescript-language-server/typescript-language-server#918
Fixes #234142