Skip to content

Commit 733e301

Browse files
committed
lazy weekend fix for : #766
1 parent 12f05ac commit 733e301

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/main/atom/commands/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

lib/main/atom/commands/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)