change the default lang in editor component to plaintext and fix sample (#2459)

* change the default lang in editor component to plaintext and fix sample

* minor fix
This commit is contained in:
Abbie Petchtes
2018-09-07 13:29:34 -07:00
committed by GitHub
parent cde20d338e
commit ce699a1c84
5 changed files with 102 additions and 16 deletions

View File

@@ -63,7 +63,7 @@ export default class EditorComponent extends ComponentBase implements IComponent
this._editor.create(this._el.nativeElement);
this._editor.setVisible(true);
let uri = this.createUri();
this._editorInput = instantiationService.createInstance(UntitledEditorInput, uri, false, 'sql', '', '');
this._editorInput = instantiationService.createInstance(UntitledEditorInput, uri, false, 'plaintext', '', '');
this._editor.setInput(this._editorInput, undefined);
this._editorInput.resolve().then(model => {
this._editorModel = model.textEditorModel;