Skip to content

Commit

Permalink
Fixed variable editor mode.
Browse files Browse the repository at this point in the history
Closes #1266
Closes #1268
  • Loading branch information
imolorhe committed Jun 13, 2020
1 parent 0c8c153 commit dd38eba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
Expand Up @@ -25,13 +25,18 @@ export class VariablesEditorComponent implements OnChanges, DoCheck {
@ViewChild('editor', { static: true }) editor: ElementRef & { codeMirror: CodeMirror.Editor };

variableEditorConfig = {
mode: 'javascript',
json: true,
mode: {
name: 'javascript',
json: true,
},
lineWrapping: true,
lineNumbers: true,
foldGutter: true,
autoRefresh: true,
dragDrop: false,
tabSize: 4,
indentUnit: 4,
matchBrackets: true,
autoCloseBrackets: true,
theme: 'default variable-editor mousetrap',
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']
Expand Down
24 changes: 12 additions & 12 deletions packages/altair-app/src/scss/_codemirror.scss
Expand Up @@ -219,21 +219,21 @@
.cm-s-variable-editor {
background: var(--theme-off-bg-color);

.cm-attribute {
color: var(--result-default);
}
// .cm-attribute {
// color: var(--result-default);
// }

.cm-string {
color: var(--result-string);
}
// .cm-string {
// color: var(--result-string);
// }

.cm-property {
color: var(--result-default);
}
// .cm-property {
// color: var(--result-default);
// }

.cm-punctuation {
color: var(--result-default);
}
// .cm-punctuation {
// color: var(--result-default);
// }
}

.cm-s-pre-request-editor {
Expand Down

0 comments on commit dd38eba

Please sign in to comment.