Skip to content

Mention dependency of codeDescription on code - #830

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
dc-mak:patch-1
Oct 19, 2021
Merged

Mention dependency of codeDescription on code#830
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
dc-mak:patch-1

Conversation

@dc-mak

@dc-mak Dhruv Makwana (dc-mak) commented Oct 11, 2021

Copy link
Copy Markdown
Contributor

This was, in retrospect, obvious, but took me a while to figure out.

function asDiagnostic(diagnostic: ls.Diagnostic): code.Diagnostic {
let result = new ProtocolDiagnostic(asRange(diagnostic.range), diagnostic.message, asDiagnosticSeverity(diagnostic.severity), diagnostic.data);
if (diagnostic.code !== undefined) {
if (ls.CodeDescription.is(diagnostic.codeDescription)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants