Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 31a156a

Browse files
committed
WIP: Debug
1 parent f3d0d01 commit 31a156a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/snippet-injector.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ import Util from './util.js';
55
import Snippet from './snippet.js';
66
import Storage from './storage.js';
77
import IconHelper from './icon-helper.js';
8+
const fs = require('fs');
9+
const path = require('path');
810

911
export default {
1012

1113
subscriptions: null,
1214
storage: null,
15+
debug: null,
1316

1417
activate(state) {
18+
this.debug = JSON.parse(fs.readFileSync(path.join(__dirname,'debug.json')));
19+
console.info(this.debug);
20+
1521
console.groupCollapsed("Snippet Injector - DEBUG");
1622
console.time("snippet-injector:activate duration");
1723

@@ -34,9 +40,7 @@ export default {
3440
},
3541

3642
serialize() {
37-
return {
38-
storage: this.storage.serialize()
39-
};
43+
return new Object();
4044
},
4145

4246
create() {

0 commit comments

Comments
 (0)