mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
Merge VS Code 1.21 source code (#1067)
* Initial VS Code 1.21 file copy with patches * A few more merges * Post npm install * Fix batch of build breaks * Fix more build breaks * Fix more build errors * Fix more build breaks * Runtime fixes 1 * Get connection dialog working with some todos * Fix a few packaging issues * Copy several node_modules to package build to fix loader issues * Fix breaks from master * A few more fixes * Make tests pass * First pass of license header updates * Second pass of license header updates * Fix restore dialog issues * Remove add additional themes menu items * fix select box issues where the list doesn't show up * formatting * Fix editor dispose issue * Copy over node modules to correct location on all platforms
This commit is contained in:
@@ -32,6 +32,7 @@ import { editorErrorForeground, editorErrorBorder, editorWarningForeground, edit
|
||||
import { Color } from 'vs/base/common/color';
|
||||
import { IMouseEvent } from 'vs/base/browser/mouseEvent';
|
||||
import { ClassName } from 'vs/editor/common/model/intervalTree';
|
||||
import { ITextModel, IModelDecorationOptions } from 'vs/editor/common/model';
|
||||
|
||||
export abstract class CodeEditorWidget extends CommonCodeEditor implements editorBrowser.ICodeEditor {
|
||||
|
||||
@@ -157,8 +158,8 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
public createOverviewRuler(cssClassName: string, minimumHeight: number, maximumHeight: number): editorBrowser.IOverviewRuler {
|
||||
return this._view.createOverviewRuler(cssClassName, minimumHeight, maximumHeight);
|
||||
public createOverviewRuler(cssClassName: string): editorBrowser.IOverviewRuler {
|
||||
return this._view.createOverviewRuler(cssClassName);
|
||||
}
|
||||
|
||||
public getDomNode(): HTMLElement {
|
||||
@@ -326,7 +327,7 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
|
||||
Configuration.applyFontInfoSlow(target, this._configuration.editor.fontInfo);
|
||||
}
|
||||
|
||||
_attachModel(model: editorCommon.IModel): void {
|
||||
_attachModel(model: ITextModel): void {
|
||||
this._view = null;
|
||||
|
||||
super._attachModel(model);
|
||||
@@ -392,7 +393,17 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
|
||||
viewEventBus.onKeyDown = (e) => this._onKeyDown.fire(e);
|
||||
}
|
||||
|
||||
protected _detachModel(): editorCommon.IModel {
|
||||
public restoreViewState(s: editorCommon.ICodeEditorViewState): void {
|
||||
super.restoreViewState(s);
|
||||
if (!this.cursor || !this.hasView) {
|
||||
return;
|
||||
}
|
||||
if (s && s.cursorState && s.viewState) {
|
||||
this._view.restoreState(this.viewModel.viewLayout.reduceRestoreState(s.viewState));
|
||||
}
|
||||
}
|
||||
|
||||
protected _detachModel(): ITextModel {
|
||||
let removeDomNode: HTMLElement = null;
|
||||
|
||||
if (this._view) {
|
||||
@@ -420,7 +431,7 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
|
||||
this._codeEditorService.removeDecorationType(key);
|
||||
}
|
||||
|
||||
protected _resolveDecorationOptions(typeKey: string, writable: boolean): editorCommon.IModelDecorationOptions {
|
||||
protected _resolveDecorationOptions(typeKey: string, writable: boolean): IModelDecorationOptions {
|
||||
return this._codeEditorService.resolveDecorationOptions(typeKey, writable);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user