File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Refactor {
3636 const _new = items [ 'Rename' ]
3737 if ( ! isValidWordToInspect ( _new ) || _new . match ( wordRegexWithoutDotAccessor ) != _new ) {
3838 atom . notifications . addWarning ( 'Julia Client: Rename Refactor' , {
39- description : `\`${ _new } \` is not a valid identifier`
39+ description : `\`${ _new } \` isn't a valid identifier`
4040 } )
4141 return
4242 }
@@ -66,6 +66,12 @@ class Refactor {
6666 if ( result . text ) {
6767 editor . setTextInBufferRange ( range , result . text )
6868 }
69+ if ( result . success ) {
70+ atom . notifications . addSuccess ( 'Julia Client: Rename Refactor' , {
71+ description : result . success ,
72+ dismissable : true
73+ } )
74+ }
6975 if ( result . info ) {
7076 atom . notifications . addInfo ( 'Julia Client: Rename Refactor' , {
7177 description : result . info ,
@@ -82,11 +88,6 @@ class Refactor {
8288 description : result . error
8389 } )
8490 }
85- if ( result . success ) {
86- atom . notifications . addSuccess ( 'Julia Client: Rename Refactor' , {
87- description : result . success
88- } )
89- }
9091 } )
9192 } ) . catch ( ( err ) => {
9293 if ( err ) console . error ( err )
You can’t perform that action at this time.
0 commit comments