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

Register React file extensions #12

Merged
merged 1 commit into from
Jan 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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