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() {
283
283
var editor = atom . workspace . getActiveTextEditor ( ) ;
284
284
if ( ! editor )
285
285
return false ;
286
- if ( path . extname ( editor . getPath ( ) ) !== '.ts' )
286
+ if ( path . extname ( editor . getPath ( ) ) !== '.ts' && path . extname ( editor . getPath ( ) ) !== '.tsx' )
287
287
return false ;
288
288
e . abortKeyBinding ( ) ;
289
289
var filePath = editor . getPath ( ) ;
Original file line number Diff line number Diff line change @@ -207,11 +207,11 @@ export function registerCommands() {
207
207
/*atom.commands.dispatch(
208
208
atom.views.getView(atom.workspace.getActiveTextEditor()),
209
209
'typescript:testing-r-view');*/
210
-
210
+
211
211
// atom.commands.dispatch(
212
212
// atom.views.getView(atom.workspace.getActiveTextEditor()),
213
213
// 'typescript:toggle-semantic-view');
214
-
214
+
215
215
atom . commands . dispatch (
216
216
atom . views . getView ( atom . workspace . getActiveTextEditor ( ) ) ,
217
217
'typescript:dependency-view' ) ;
@@ -371,7 +371,7 @@ export function registerCommands() {
371
371
( e ) => {
372
372
var editor = atom . workspace . getActiveTextEditor ( ) ;
373
373
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 ;
375
375
376
376
377
377
// Abort it for others
You can’t perform that action at this time.
0 commit comments