You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add DiagnosticTag tags for pylint, pycodestyle, and flake8 #144
changed the title [-]Add `DiagnosticTag` tags for pylint, pycodestyle[/-][+]Add `DiagnosticTag` tags for pylint, pycodestyle, and flake8[/+]on Dec 31, 2021
export namespace DiagnosticTag {
/**
* Unused or unnecessary code.
*
* Clients are allowed to render diagnostics with this tag faded out
* instead of having an error squiggle.
*/
export const Unnecessary: 1 = 1;
/**
* Deprecated or obsolete code.
*
* Clients are allowed to rendered diagnostics with this tag strike through.
*/
export const Deprecated: 2 = 2;
}
Activity
[-]Add `DiagnosticTag` tags for pylint, pycodestyle[/-][+]Add `DiagnosticTag` tags for pylint, pycodestyle, and flake8[/+]ccordoba12 commentedon Dec 31, 2021
Could you post an example of a reply that includes the tag?
krassowski commentedon Dec 31, 2021
{ "uri": "javascript_test.js", "diagnostics": [ { "range": { "start": { "line": 3, "character": 17 }, "end": { "line": 3, "character": 21 } }, "message": "'test' is declared but its value is never read.", "severity": 4, "code": 6133, "source": "typescript", "tags": [ 1 ] }, { "range": { "start": { "line": 5, "character": 4 }, "end": { "line": 5, "character": 14 } }, "message": "Unreachable code detected.", "severity": 4, "code": 7027, "source": "typescript", "tags": [ 1 ] }, { "range": { "start": { "line": 5, "character": 8 }, "end": { "line": 5, "character": 9 } }, "message": "'x' is declared but its value is never read.", "severity": 4, "code": 6133, "source": "typescript", "tags": [ 1 ] }, { "range": { "start": { "line": 7, "character": 0 }, "end": { "line": 7, "character": 7 } }, "message": "'oldFunc' is deprecated", "severity": 4, "code": 6385, "source": "typescript", "tags": [ 2 ] } ] }I'm rendering it as:
because:
ccordoba12 commentedon Jan 3, 2022
Ok, I see. Then it's just extra metadata in the request. Then I'm fine with your proposal.