mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add bottom margin to notebook table, fix python highlighting (#4055)
This commit is contained in:
@@ -484,15 +484,15 @@ export class CellModel implements ICellModel {
|
|||||||
// Otherwise, default to python as the language
|
// Otherwise, default to python as the language
|
||||||
let languageInfo = this.languageInfo;
|
let languageInfo = this.languageInfo;
|
||||||
if (languageInfo) {
|
if (languageInfo) {
|
||||||
if (languageInfo.codemirror_mode) {
|
if (languageInfo.name) {
|
||||||
|
this._language = languageInfo.name;
|
||||||
|
} else if (languageInfo.codemirror_mode) {
|
||||||
let codeMirrorMode: nb.ICodeMirrorMode = <nb.ICodeMirrorMode>(languageInfo.codemirror_mode);
|
let codeMirrorMode: nb.ICodeMirrorMode = <nb.ICodeMirrorMode>(languageInfo.codemirror_mode);
|
||||||
if (codeMirrorMode && codeMirrorMode.name) {
|
if (codeMirrorMode && codeMirrorMode.name) {
|
||||||
this._language = codeMirrorMode.name;
|
this._language = codeMirrorMode.name;
|
||||||
}
|
}
|
||||||
} else if (languageInfo.mimetype) {
|
} else if (languageInfo.mimetype) {
|
||||||
this._language = languageInfo.mimetype;
|
this._language = languageInfo.mimetype;
|
||||||
} else if (languageInfo.name) {
|
|
||||||
this._language = languageInfo.name;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@
|
|||||||
.notebookEditor .notebook-cellTable {
|
.notebookEditor .notebook-cellTable {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notebookEditor .notebook-cellTable .ui-widget-content.slick-row {
|
.notebookEditor .notebook-cellTable .ui-widget-content.slick-row {
|
||||||
|
|||||||
Reference in New Issue
Block a user