@@ -18,7 +18,8 @@ import { getLocalContext } from '../misc/blocks'
18
18
const {
19
19
gotosymbol : gotoSymbol ,
20
20
regeneratesymbols : regenerateSymbols ,
21
- } = client . import ( [ 'gotosymbol' , 'regeneratesymbols' ] )
21
+ clearsymbols : clearSymbols ,
22
+ } = client . import ( [ 'gotosymbol' , 'regeneratesymbols' , 'clearsymbols' ] )
22
23
23
24
const includeRegex = / ( i n c l u d e | i n c l u d e _ d e p e n d e n c y ) \( " .+ \. j l " \) /
24
25
const filePathRegex = / " .+ \. j l " /
@@ -28,8 +29,11 @@ class Goto {
28
29
this . ink = ink
29
30
this . subscriptions = new CompositeDisposable ( )
30
31
this . subscriptions . add (
31
- atom . commands . add ( 'atom-workspace' , 'julia-client:regenerate-symbol -cache' , ( ) => {
32
+ atom . commands . add ( 'atom-workspace' , 'julia-client:regenerate-symbols -cache' , ( ) => {
32
33
regenerateSymbols ( )
34
+ } ) ,
35
+ atom . commands . add ( 'atom-workspace' , 'julia-client:clear-symbols-cache' , ( ) => {
36
+ clearSymbols ( )
33
37
} )
34
38
)
35
39
}
@@ -101,7 +105,7 @@ class Goto {
101
105
102
106
gotoSymbol ( {
103
107
word,
104
- path : editor . getPath ( ) ,
108
+ path : editor . getPath ( ) || 'untitled-' + editor . getBuffer ( ) . getId ( ) ,
105
109
// local context
106
110
column : column + 1 ,
107
111
row : row + 1 ,
@@ -164,7 +168,7 @@ class Goto {
164
168
return new Promise ( ( resolve ) => {
165
169
gotoSymbol ( {
166
170
word,
167
- path : textEditor . getPath ( ) ,
171
+ path : textEditor . getPath ( ) || 'untitled-' + textEditor . getBuffer ( ) . getId ( ) ,
168
172
// local context
169
173
column : column + 1 ,
170
174
row : row + 1 ,
0 commit comments