Skip to content
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

improve out of the box support for coffeescript #825

Closed
AntonioMeireles opened this issue Dec 12, 2019 · 3 comments
Closed

improve out of the box support for coffeescript #825

AntonioMeireles opened this issue Dec 12, 2019 · 3 comments
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Milestone

Comments

@AntonioMeireles
Copy link

Hi all,

there's now on eslint's (and prettier's btw) ecosystem side proper support for coffeescript per @helixbass 's eslint-plugin-coffee and prettier-plugin-coffeescript ongoing (great) work.

This is all good and things work out of the box mostly on vscode-eslint side almost fully except in one case - when an issue pops, when quickfixing it if one wants to disable affected line or next one (calls to eslint.{createDisable{,Same}LineTextEdit}) the inserted comment (with hints to eslint) is inserted with the wrong (from coffeescript's point of view) syntax, since vscode-eslint has (on https://github.com/microsoft/vscode-eslint/blob/master/server/src/eslintServer.ts#L1456-L1462) the comment style hardcoded.

So, i'd plead you to refactor that part a bit so that the comment prefix (// in general vs # for coffeescript dialects) would be infered from the actual language being linted and not just assumed unconditionally to be // which in coffeescript's case is definitively not true.

thanks in advance and keep the awesome work :-)

All the Best

António

@dbaeumer dbaeumer added the feature-request Request for new features or functionality label Dec 12, 2019
@dbaeumer dbaeumer added this to the Backlog milestone Dec 12, 2019
@dbaeumer dbaeumer added the help wanted Issues identified as good community contribution opportunities label Dec 12, 2019
@dbaeumer
Copy link
Member

A PR would be welcome here.

@AntonioMeireles
Copy link
Author

@dbaeumer, thanks for the quick reply. Sadly, i'm not privy with vscode's internals nor with typescript (sorry). fwiw and afaics on a quick glance all it is needed is to look at files's languageId and in eslint.{createDisable{,Same}LineTextEdit} turn the comment style conditional on it.

@helixbass
Copy link

@AntonioMeireles ok opened #857, thanks for the pointer to the right spot in the source code to modify

@dbaeumer dbaeumer modified the milestones: Backlog, 2.1.0 Dec 23, 2019
@dbaeumer dbaeumer modified the milestones: 2.1.0, 2.2.0 Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants