Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
DanielRosenwasser merged 14 commits into
mastermicrosoft/TypeScript:masterfrom
removeScareQuotesmicrosoft/TypeScript:removeScareQuotesCopy head branch name to clipboard
Nov 22, 2019
Merged

Clean up error messages for using TypeScript syntax in JavaScr…#35254
DanielRosenwasser merged 14 commits into
mastermicrosoft/TypeScript:masterfrom
removeScareQuotesmicrosoft/TypeScript:removeScareQuotesCopy head branch name to clipboard

Conversation

@DanielRosenwasser

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/compiler/diagnosticMessages.json Outdated

@andrewbranch andrewbranch left a comment

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.

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

DanielRosenwasser commented Nov 21, 2019

Copy link
Copy Markdown
Member Author

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.