Skip to content

Commit b11734d

Browse files
committed
add clear-symbol-cache command
1 parent cf48d45 commit b11734d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/runtime/goto.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import { getLocalContext } from '../misc/blocks'
1313
const {
1414
gotosymbol: gotoSymbol,
1515
regeneratesymbols: regenerateSymbols,
16-
} = client.import(['gotosymbol', 'regeneratesymbols'])
16+
clearsymbols: clearSymbols,
17+
} = client.import(['gotosymbol', 'regeneratesymbols', 'clearsymbols'])
1718

1819
const includeRegex = /(include|include_dependency)\(".+\.jl"\)/
1920
const filePathRegex = /".+\.jl"/
@@ -23,8 +24,11 @@ class Goto {
2324
this.ink = ink
2425
this.subscriptions = new CompositeDisposable()
2526
this.subscriptions.add(
26-
atom.commands.add('atom-workspace', 'julia-client:regenerate-symbol-cache', () => {
27+
atom.commands.add('atom-workspace', 'julia-client:regenerate-symbols-cache', () => {
2728
regenerateSymbols()
29+
}),
30+
atom.commands.add('atom-workspace', 'julia-client:clear-symbols-cache', () => {
31+
clearSymbols()
2832
})
2933
)
3034
}

0 commit comments

Comments
 (0)