Skip to content

Commit ad3732f

Browse files
committed
always have highlighter
1 parent 9d9079e commit ad3732f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

plugins/editor/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const keyExtension = require('./key-extension');
1717

1818
const consoleStore = require('../../src/stores/console');
1919
const editorStore = require('../../src/stores/editor');
20+
const deviceStore = require('../../src/stores/device');
2021
const fileStore = require('../../src/stores/file');
2122

2223
const { handleInput } = require('../../src/actions/editor');
@@ -71,6 +72,10 @@ function editor(app, opts, done){
7172
editorStore.compile = compile;
7273
editorStore.workspace = space;
7374

75+
// really stinks to attach these in here
76+
fileStore.toasts = toasts;
77+
deviceStore.toasts = toasts;
78+
7479
app.view('editor', function(el, cb){
7580
console.log('editor render');
7681

plugins/sidebar/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ function sidebar(app, opts, done){
2323
const getBoard = app.getBoard.bind(app);
2424
const scanBoards = app.scanBoards.bind(app);
2525

26-
const toasts = makeToasts(app.toast);
27-
2826
function refreshDirectory(){
2927
// TODO: expose a method to refresh directory without changing it
3028
space.changeDir(space.cwd.deref());
@@ -58,13 +56,11 @@ function sidebar(app, opts, done){
5856

5957
// Store bindings
6058
deviceStore.workspace = space;
61-
deviceStore.toasts = toasts;
6259
deviceStore.getBoard = getBoard;
6360
deviceStore.scanBoards = scanBoards;
6461

6562
fileStore.workspace = space;
6663
fileStore.userConfig = userConfig;
67-
fileStore.toasts = toasts;
6864

6965
done();
7066
}

0 commit comments

Comments
 (0)