-
Notifications
You must be signed in to change notification settings - Fork 702
Add Razor Diagnostic Test #8266
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
base: main
Are you sure you want to change the base?
Conversation
await testAssetWorkspace.cleanupWorkspace(); | ||
}); | ||
|
||
test('CSharp Diagnostics', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This is a "CSharp and Razor Diagnostics" test
expect(diagnostics[0].range).toStrictEqual(new vscode.Range(2, 0, 2, 25)); | ||
expect(diagnostics[0].source).toBe('Razor'); | ||
|
||
expect(diagnostics[1].message).toBe("The name 'Message' does not exist in the current context"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not validate the C# diagnostic code too? Would confirm we're sending it through correctly etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me add that. I wasn't sure how to do it because it's a weird definition but I think I can use toStrictEqual
and achieve that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it's not the same as the Razor one above? That's interesting...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, it's a code + uri
No description provided.