Skip to content

Return Diagnostic.category from the server#15283

Merged
mhegazy merged 3 commits into
masterfrom
Fix15237
Apr 20, 2017
Merged

Return Diagnostic.category from the server#15283
mhegazy merged 3 commits into
masterfrom
Fix15237

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Apr 20, 2017

Fixes #15237

Comment thread src/server/session.ts Outdated
text: ts.flattenDiagnosticMessageText(diag.messageText, "\n"),
code: diag.code
code: diag.code,
category: DiagnosticCategory[diag.category].toLowerCase()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why .toLowercase() call? Shouldn't it reuse whatever is defined instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already return category for VS, and there we are using the to lower; so i just followed that.

Fix #15224: Add a `source` property on Diagnostic interface
@mhegazy mhegazy merged commit 0736d8e into master Apr 20, 2017
@mhegazy mhegazy deleted the Fix15237 branch April 20, 2017 21:20
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants