File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ function registerCommands() {
283283 var editor = atom . workspace . getActiveTextEditor ( ) ;
284284 if ( ! editor )
285285 return false ;
286- if ( path . extname ( editor . getPath ( ) ) !== '.ts' )
286+ if ( path . extname ( editor . getPath ( ) ) !== '.ts' && path . extname ( editor . getPath ( ) ) !== '.tsx' )
287287 return false ;
288288 e . abortKeyBinding ( ) ;
289289 var filePath = editor . getPath ( ) ;
Original file line number Diff line number Diff line change @@ -207,11 +207,11 @@ export function registerCommands() {
207207 /*atom.commands.dispatch(
208208 atom.views.getView(atom.workspace.getActiveTextEditor()),
209209 'typescript:testing-r-view');*/
210-
210+
211211 // atom.commands.dispatch(
212212 // atom.views.getView(atom.workspace.getActiveTextEditor()),
213213 // 'typescript:toggle-semantic-view');
214-
214+
215215 atom . commands . dispatch (
216216 atom . views . getView ( atom . workspace . getActiveTextEditor ( ) ) ,
217217 'typescript:dependency-view' ) ;
@@ -371,7 +371,7 @@ export function registerCommands() {
371371 ( e ) => {
372372 var editor = atom . workspace . getActiveTextEditor ( ) ;
373373 if ( ! editor ) return false ;
374- if ( path . extname ( editor . getPath ( ) ) !== '.ts' ) return false ;
374+ if ( path . extname ( editor . getPath ( ) ) !== '.ts' && path . extname ( editor . getPath ( ) ) !== '.tsx' ) return false ;
375375
376376
377377 // Abort it for others
You can’t perform that action at this time.
0 commit comments