File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -451,10 +451,10 @@ function createInterface(msg: p.RequestMessage): m.Message {
451
451
452
452
return response ;
453
453
} else
454
- if ( isReactComponent ) {
454
+ if ( extension !== c . resExt ) {
455
455
let params : p . ShowMessageParams = {
456
456
type : p . MessageType . Error ,
457
- message : `Cannot create an interface for a file containing @react.component .` ,
457
+ message : `Not a ${ c . resExt } file. Cannot create an interface for it .` ,
458
458
} ;
459
459
460
460
let response : m . NotificationMessage = {
@@ -465,10 +465,10 @@ function createInterface(msg: p.RequestMessage): m.Message {
465
465
466
466
return response ;
467
467
} else
468
- if ( extension !== c . resExt ) {
468
+ if ( isReactComponent ) {
469
469
let params : p . ShowMessageParams = {
470
470
type : p . MessageType . Error ,
471
- message : `Not a ${ c . resExt } file. Cannot create an interface for it .` ,
471
+ message : `Cannot create an interface for a file containing @react.component .` ,
472
472
} ;
473
473
474
474
let response : m . NotificationMessage = {
You can’t perform that action at this time.
0 commit comments