File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Refactor {
36
36
const _new = items [ 'Rename' ]
37
37
if ( ! isValidWordToInspect ( _new ) || _new . match ( wordRegexWithoutDotAccessor ) != _new ) {
38
38
atom . notifications . addWarning ( 'Julia Client: Rename Refactor' , {
39
- description : `\`${ _new } \` is not a valid identifier`
39
+ description : `\`${ _new } \` isn't a valid identifier`
40
40
} )
41
41
return
42
42
}
@@ -66,6 +66,12 @@ class Refactor {
66
66
if ( result . text ) {
67
67
editor . setTextInBufferRange ( range , result . text )
68
68
}
69
+ if ( result . success ) {
70
+ atom . notifications . addSuccess ( 'Julia Client: Rename Refactor' , {
71
+ description : result . success ,
72
+ dismissable : true
73
+ } )
74
+ }
69
75
if ( result . info ) {
70
76
atom . notifications . addInfo ( 'Julia Client: Rename Refactor' , {
71
77
description : result . info ,
@@ -82,11 +88,6 @@ class Refactor {
82
88
description : result . error
83
89
} )
84
90
}
85
- if ( result . success ) {
86
- atom . notifications . addSuccess ( 'Julia Client: Rename Refactor' , {
87
- description : result . success
88
- } )
89
- }
90
91
} )
91
92
} ) . catch ( ( err ) => {
92
93
if ( err ) console . error ( err )
You can’t perform that action at this time.
0 commit comments