Skip to content

Commit 452d193

Browse files
(chore) Better launch config.
1 parent 4fdaad9 commit 452d193

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.vscode/launch.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@
2727
"protocol": "inspector",
2828
"program": "${workspaceRoot}/.vscode/debug.js",
2929
"cwd": "${workspaceRoot}",
30-
"args": ["if.json", "-l", "languages/c-edge-debugger", "-l", "languages/c", "-l", "languages/c-like"],
30+
"args": ["fac.json", "-l", "languages/c", "-l", "languages/c-like"],
3131
"env": {
3232
"NODE_ENV": "development"
3333
},
3434
"console": "internalConsole",
3535
"sourceMaps": true,
36-
"smartStep": false
36+
"smartStep": false,
37+
"skipFiles": [
38+
"node_modules/lodash/**/*"
39+
]
40+
3741
},
3842
{
3943
"name": "C++ Launch",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"author": "Maximilian Klein",
1717
"license": "MIT",
1818
"dependencies": {
19-
"@buggyorg/graphtools": "^0.4.0-pre.28",
19+
"@buggyorg/graphtools": "^0.4.0-pre.32",
2020
"babel-core": "^6.22.1",
2121
"cli-ext": "^1.1.0",
2222
"debug": "^2.6.3",

src/api.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,16 @@ export function generateExecutable (graph, language, options) {
4747
// a bit cheesy...
4848
var langObj = {lang: null} // we need this inside the context.. but get it afterwards..
4949
return Language.loadLanguages(language, BabelVM(createContext(graph, options, langObj)))
50-
.then((lang) => { langObj.lang = lang; return lang }) // we set the lang here.. after createing the context
50+
.then((lang) => { langObj.lang = lang; return lang }) // we set the lang here.. after creating the context
5151
.then((lang) => addCode(graph, lang, options)
5252
.then(Language.template('main', lang, options)))
5353
}
5454

5555
function addCode (graph, language, options) {
5656
return Promise.resolve(atomics(graph)
57-
.reduce((gr, n) =>
58-
Graph.replaceNode(n, Node.set({code: codeFor(n, language, options)}, n), gr),
57+
.reduce((gr, n) => {
58+
return Graph.replaceNode(n, Node.set({code: codeFor(n, language, options)}, n), gr)
59+
},
5960
graph))
6061
}
6162

0 commit comments

Comments
 (0)