question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS Code extension for TSDoc

See original GitHub issue

e.g.

interface SquareConfig {
    color?: string;
    width?: number;
}

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

20reactions
octogonzcommented, Nov 27, 2019

We might start by making a TSDoc extension for VS Code (similar to the recently released plugin for ESLint). This approach would also allow us to render the docs more nicely similar to what the playground does.

Before I would work on that myself, I have some higher priorities I’ve been wanting to wrap up, such as finishing the declaration reference parser and posting a spec that documents the TSDoc grammar in detail.

6reactions
octogonzcommented, Feb 19, 2021

I played around with this a bit today. Making a VS Code extension is very easy to do! In about 30 mins I was able to create a simple prototype that finds the nearest TSDoc comment and generates some markdown which gets rendered as a vscode.Hover object:

tsdoc-extension

This was just an experiment, not a real solution.

But if someone’s feeling bored, making a TSDoc extension might be a pretty rewarding project. I probably don’t have time to undertake it myself, but I’m happy to help out with the design and any parsing/rendering aspects. (For example, for the TSDoc->Markdown part, maybe we can extract the MarkdownEmitter.ts from API Documenter and make it into a reusable library.)

CC @jsamr

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript Programming with Visual Studio Code
TypeScript in Visual Studio Code. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces ......
Read more >
TSDoc
Visual Studio Code: an editor that supports syntax highlighting and interactive refactoring for TypeScript doc comments; Your own scripts! - Developers often ...
Read more >
10 Best VS Code extensions for TypeScript - Towards the Cloud
10 Best VS Code extensions for TypeScript. A vanilla code editor like Visual Studio Code (VS Code) gets you far in development. But...
Read more >
Typescript - vscode-docs
VS Code's TypeScript support can operate in two different modes: File Scope: in this mode TypeScript files opened in Visual Studio Code are...
Read more >
visual studio code - Parse jsdoc/tsdoc in vscode - Stack Overflow
Can I make vscode parse the comments? I have searched for a tsdoc extension but have found none. visual-studio-code · vscode-settings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found