Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from nicot/patch-2
Browse files Browse the repository at this point in the history
Register React file extensions
  • Loading branch information
jrieken authored Jan 18, 2017
2 parents 46a9f90 + 6e84504 commit bd9f4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monaco.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function withMode(callback: (module: typeof mode) => void): void {

monaco.languages.register({
id: 'typescript',
extensions: ['.ts'],
extensions: ['.ts', '.tsx'],
aliases: ['TypeScript', 'ts', 'typescript'],
mimetypes: ['text/typescript']
});
Expand All @@ -200,7 +200,7 @@ monaco.languages.onLanguage('typescript', () => {

monaco.languages.register({
id: 'javascript',
extensions: ['.js', '.es6'],
extensions: ['.js', '.es6', '.jsx'],
firstLine: '^#!.*\\bnode',
filenames: ['jakefile'],
aliases: ['JavaScript', 'javascript', 'js'],
Expand Down

0 comments on commit bd9f4dc

Please sign in to comment.