Skip to content

Clean up error messages for using TypeScript syntax in JavaScr…#35254

Merged
DanielRosenwasser merged 14 commits into
masterfrom
removeScareQuotes
Nov 22, 2019
Merged

Clean up error messages for using TypeScript syntax in JavaScr…#35254
DanielRosenwasser merged 14 commits into
masterfrom
removeScareQuotes

Conversation

@DanielRosenwasser
Copy link
Copy Markdown
Member

No description provided.

Comment thread src/compiler/diagnosticMessages.json Outdated
Copy link
Copy Markdown
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

All the getJavaScriptSyntacticDiagnostics fourslash tests are failing because they have the old messages hard coded. A few months ago I exposed ts.Diagnostics to fourslash so they can be updated with that so this doesn’t happen again.

@DanielRosenwasser
Copy link
Copy Markdown
Member Author

DanielRosenwasser commented Nov 21, 2019

Manually dealing with these types of tests tends to be annoying so I decided to convert those tests into baseline tests.

Comment thread src/harness/fourslash.ts
return result;
}

public baselineSyntacticDiagnostics() {
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.

❤️

@DanielRosenwasser DanielRosenwasser changed the title Clean up error messages for using TypeScript syntax in JavaScript files Clean up error messages for using TypeScript syntax in JavaScr… Nov 22, 2019
@DanielRosenwasser DanielRosenwasser merged commit 3da85df into master Nov 22, 2019
@DanielRosenwasser DanielRosenwasser deleted the removeScareQuotes branch November 22, 2019 22:51
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

4 participants