Skip to content

improve out of the box support for coffeescript #825

Closed
@AntonioMeireles

Description

@AntonioMeireles

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions