Merge VS Code 1.23.1 (#1520)

This commit is contained in:
Matt Irvine
2018-06-05 11:24:51 -07:00
committed by GitHub
parent e3baf5c443
commit 0c58f09e59
3651 changed files with 74249 additions and 48599 deletions

View File

@@ -15,6 +15,7 @@ import { Selection } from 'vs/editor/common/core/selection';
import { ModelRawContentChangedEvent, IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelOptionsChangedEvent, IModelLanguageConfigurationChangedEvent, IModelTokensChangedEvent, IModelContentChange } from 'vs/editor/common/model/textModelEvents';
import { ThemeColor } from 'vs/platform/theme/common/themeService';
import { ITextSnapshot } from 'vs/platform/files/common/files';
import { SearchData } from 'vs/editor/common/model/textModelSearch';
/**
* Vertical Lane in the overview ruler of the editor.
@@ -80,7 +81,12 @@ export interface IModelDecorationOptions {
* Always render the decoration (even when the range it encompasses is collapsed).
* @internal
*/
readonly showIfCollapsed?: boolean;
showIfCollapsed?: boolean;
/**
* Specifies the stack order of a decoration.
* A decoration with greater stack order is always in front of a decoration with a lower stack order.
*/
zIndex?: number;
/**
* If set, render this decoration in the overview ruler.
*/
@@ -103,6 +109,10 @@ export interface IModelDecorationOptions {
* to have a background color decoration.
*/
inlineClassName?: string;
/**
* If there is an `inlineClassName` which affects letter spacing.
*/
inlineClassNameAffectsLetterSpacing?: boolean;
/**
* If set, the decoration will be rendered before the text with this CSS class name.
*/
@@ -389,6 +399,8 @@ export interface ITextModelCreationOptions {
detectIndentation: boolean;
trimAutoWhitespace: boolean;
defaultEOL: DefaultEndOfLine;
isForSimpleWidget: boolean;
largeFileOptimizations: boolean;
}
export interface ITextModelUpdateOptions {
@@ -433,6 +445,15 @@ export enum TrackedRangeStickiness {
GrowsOnlyWhenTypingAfter = 3,
}
/**
* @internal
*/
export interface IActiveIndentGuideInfo {
startLineNumber: number;
endLineNumber: number;
indent: number;
}
/**
* A model.
*/
@@ -448,6 +469,12 @@ export interface ITextModel {
*/
readonly id: string;
/**
* This model is constructed for a simple widget code editor.
* @internal
*/
readonly isForSimpleWidget: boolean;
/**
* If true, the text model might contain RTL.
* If false, the text model **contains only** contain LTR.
@@ -553,6 +580,10 @@ export interface ITextModel {
*/
getLineContent(lineNumber: number): string;
/**
* Get the text length for a certain line.
*/
getLineLength(lineNumber: number): number;
/**
* Get the text for all lines.
@@ -643,11 +674,16 @@ export interface ITextModel {
isDisposed(): boolean;
/**
* Only basic mode supports allowed on this model because it is simply too large.
* (tokenization is allowed and other basic supports)
* @internal
*/
isTooLargeForHavingARichMode(): boolean;
tokenizeViewport(startLineNumber: number, endLineNumber: number): void;
/**
* This model is so large that it would not be a good idea to sync it over
* to web workers or other places.
* @internal
*/
isTooLargeForSyncing(): boolean;
/**
* The file is so large, that even tokenization is disabled.
@@ -829,6 +865,11 @@ export interface ITextModel {
*/
matchBracket(position: IPosition): [Range, Range];
/**
* @internal
*/
getActiveIndentGuide(lineNumber: number, minLineNumber: number, maxLineNumber: number): IActiveIndentGuideInfo;
/**
* @internal
*/
@@ -989,6 +1030,13 @@ export interface ITextModel {
*/
redo(): Selection[];
/**
* @deprecated Please use `onDidChangeContent` instead.
* An event emitted when the contents of the model have changed.
* @internal
* @event
*/
onDidChangeRawContentFast(listener: (e: ModelRawContentChangedEvent) => void): IDisposable;
/**
* @deprecated Please use `onDidChangeContent` instead.
* An event emitted when the contents of the model have changed.
@@ -1054,6 +1102,12 @@ export interface ITextModel {
* @internal
*/
isAttachedToEditor(): boolean;
/**
* Returns the count of editors this model is attached to.
* @internal
*/
getAttachedEditorCount(): number;
}
/**
@@ -1100,6 +1154,7 @@ export interface ITextBuffer {
setEOL(newEOL: '\r\n' | '\n'): void;
applyEdits(rawOperations: IIdentifiedSingleEditOperation[], recordTrimAutoWhitespace: boolean): ApplyEditsResult;
findMatchesLineByLine?(searchRange: Range, searchData: SearchData, captureMatches: boolean, limitResultCount: number): FindMatch[];
}
/**
@@ -1120,6 +1175,5 @@ export class ApplyEditsResult {
*/
export interface IInternalModelContentChange extends IModelContentChange {
range: Range;
rangeOffset: number;
forceMoveMarkers: boolean;
}