Commit 5fd6ad5f authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: minimal python support in gadget version

Just set indentation rules for now
parent 0b7ed9ad
......@@ -171,6 +171,13 @@
.push(addExtraLibrary('./monaco-renderjs.d.ts', 'renderjs'))
.push(addExtraLibrary('./monaco-jio.d.ts', 'jio'));
}
if (this.state.model_language === 'python') {
monaco.languages.setLanguageConfiguration('python', {
indentationRules: {
increaseIndentPattern: /^.*:$/
}
});
}
}
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