Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Request: link to rule #197

Closed
lkrugertogetr opened this issue Aug 24, 2021 · 2 comments
Closed

Request: link to rule #197

lkrugertogetr opened this issue Aug 24, 2021 · 2 comments

Comments

@lkrugertogetr
Copy link

lkrugertogetr commented Aug 24, 2021

I'm not sure if it's even possible with AST, but when displaying a rule could it be possible to link to said rule? E.g.:
image

Unrelated: anyone know how I can disable typescript formatting rules interfering with prettier in vscode?

@manuth
Copy link
Owner

manuth commented Aug 24, 2021

Hello
Thanks for your interest in my project.
Sadly, this is not possible. As you can see, the API of vscodes language-server (https://github.com/Microsoft/vscode-languageserver-node) allows you to pass the name of the error alongside a link to the docs describing the error.

However, this project uses TypeScript's language-server API which currently only allows you to pass a numeric error-code.
A few months ago, I opened an issue some months a go concerning the absence of this feature: microsoft/TypeScript#39009
Sadly, it doesn't look like this feature request is getting taken care of anytime soon, though.

For the question concerning your formatting - you might want to ask said question on StackOverflow or open an issue in Microsoft's vscode-repository: https://github.com/microsoft/vscode.
I think you could just set the typescript.format.enable-setting to false in order to solve your issue but I really don't know as I don't use Prettier.

@lkrugertogetr
Copy link
Author

Thank you! I'll try to figure something out with prettier, for now I'll close this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants