Skip to content

Commit afbd2cd

Browse files
committed
fix layout settings for profiler
1 parent 62b19f0 commit afbd2cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/runtime/outline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function activate (ink) {
1313
subs = new CompositeDisposable()
1414

1515
subs.add(atom.config.observe('julia-client.uiOptions.layouts.outline.defaultLocation', (defaultLocation) => {
16-
pane.getDefaultLocation = () => { return defaultLocation }
16+
pane.setDefaultLocation(defaultLocation)
1717
}))
1818
subs.add(client.onDetached(() => pane.setItems([])))
1919

lib/runtime/profiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export function activate (ink) {
1414

1515
subs.add(client.onDetached(() => clear()))
1616
subs.add(atom.config.observe('julia-client.uiOptions.layouts.profiler.defaultLocation', (defaultLocation) => {
17-
pane.getDefaultLocation = () => { return defaultLocation }
17+
pane.setDefaultLocation(defaultLocation)
1818
}))
1919

2020
client.handle({
2121
profile(data) {
2222
const save = (path) => saveProfileTrace(path, data)
2323
const profile = new ink.Profiler.ProfileViewer({data, save})
2424
pane.ensureVisible({
25-
split: 'julia-client.uiOptions.layouts.profiler.split'
25+
split: atom.config.get('julia-client.uiOptions.layouts.profiler.split')
2626
})
2727
pane.show(new ink.Pannable(profile, {zoomstrategy: 'width', minScale: 0.5}))
2828
}

0 commit comments

Comments
 (0)