Commit cf7931df authored by Jérome Perrin's avatar Jérome Perrin

monaco: minimal python support in gadget version

just set indentation rules for now XXX monaco does not set it
automatically ?
parent ac098094
...@@ -144,6 +144,13 @@ ...@@ -144,6 +144,13 @@
.push(addExtraLibrary('./monaco-renderjs.ts', 'renderjs')) .push(addExtraLibrary('./monaco-renderjs.ts', 'renderjs'))
.push(addExtraLibrary('./monaco-jio.ts', 'jio')); .push(addExtraLibrary('./monaco-jio.ts', 'jio'));
} }
if (this.state.model_language === 'python') {
monaco.languages.setLanguageConfiguration('python', {
indentationRules: {
increaseIndentPattern: /^.*:$/
}
});
}
} }
return queue; return queue;
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment