Skip to content

Commit 2a7f504

Browse files
committed
a bit refactor
1 parent aeb406b commit 2a7f504

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/runtime/console.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export function activate (_ink) {
6767
modules.onDidChange(debounce(() => changemodule({mod: modules.current()}), 200))
6868

6969
client.handle({
70-
updateWorkspace: () => require('./workspace').update(),
7170
clearconsole: () => terminal.clear(),
7271
cursorpos: () => terminal.cursorPosition(),
7372
writeToTerminal: (str) => {

lib/runtime/environments.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ export function consumeStatusBar (statusBar) {
4343
const onClick = (event) => {
4444
if (process.platform === 'darwin' ? event.metaKey : event.ctrlKey) {
4545
if (!fs.existsSync(projectPath)) return
46+
const pending = atom.config.get('core.allowPendingPaneItems')
4647
if (ink) {
4748
ink.Opener.open(projectPath, {
48-
pending: atom.config.get('core.allowPendingPaneItems')
49+
pending,
4950
})
5051
} else {
5152
atom.workspace.open(projectPath, {
52-
pending: atom.config.get('core.allowPendingPaneItems'),
53+
pending,
5354
searchAllPanes: true
5455
})
5556
}

lib/runtime/workspace.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports =
1111
activate: ->
1212
@create()
1313

14+
client.handle { updateWorkspace: => @update() }
1415
client.onDetached =>
1516
@ws.setItems []
1617
@lazyTrees = []

0 commit comments

Comments
 (0)