Skip to content

Commit

Permalink
Recommend Babel extension to fix VSCode syntax highlighting (#4324)
Browse files Browse the repository at this point in the history
Summary:
The built in syntax highlighting for JS files does not correctly support all Flow syntax. This extension includes a syntax highlighter that does.

https://github.com/flow/flow-for-vscode#known-issues

## Before

<img width="1837" alt="Screenshot 2023-05-24 at 3 24 43 PM" src="https://github.com/facebook/relay/assets/162735/61ffda64-7c77-4357-b12e-1c31b7461d2f">

## After

<img width="1837" alt="Screenshot 2023-05-24 at 3 24 55 PM" src="https://github.com/facebook/relay/assets/162735/1c4f03ff-248d-4915-9e4d-31dcc674d404">

Pull Request resolved: #4324

Reviewed By: josephsavona

Differential Revision: D46168049

Pulled By: captbaritone

fbshipit-source-id: 9edd19b72c7beb847248a378e1ed559ce47b49e4
  • Loading branch information
captbaritone authored and facebook-github-bot committed May 31, 2023
1 parent 6e4ff95 commit ce74006
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"dbaeumer.vscode-eslint",
"rust-lang.rust-analyzer",
"meta.relay",
"flowtype.flow-for-vscode"
"flowtype.flow-for-vscode",
// https://github.com/flow/flow-for-vscode#known-issues
"mgmcdermott.vscode-language-babel"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
Expand Down

0 comments on commit ce74006

Please sign in to comment.