Skip to content

Commit 71c73a4

Browse files
committed
workspace follows currently active module
1 parent 5bd0c75 commit 71c73a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/runtime/workspace.coffee

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
{views} = require '../ui'
44
{client} = require '../connection'
55

6+
modules = require './modules'
7+
68
{workspace, clearLazy} = client.import rpc: 'workspace', msg: 'clearLazy'
79

810
module.exports =
@@ -19,7 +21,7 @@ module.exports =
1921
return @ws.setItems [] unless client.isActive() and @ws.currentPane()
2022
clearLazy @lazyTrees
2123
registerLazy = (id) => @lazyTrees.push id
22-
p = workspace('Main').then (ws) =>
24+
p = workspace(modules.current()).then (ws) =>
2325
for {items} in ws
2426
for item in items
2527
item.value = views.render item.value, {registerLazy}

0 commit comments

Comments
 (0)