Improve naming and doc comments

This commit is contained in:
Alex Dima
2017-05-30 09:49:31 +02:00
parent e5421e3fe6
commit 081fbf2231
5 changed files with 46 additions and 10 deletions

View File

@@ -529,7 +529,7 @@ export function createApiFactory(
TextEditorLineNumbersStyle: extHostTypes.TextEditorLineNumbersStyle,
TextEditorRevealType: extHostTypes.TextEditorRevealType,
TextEditorSelectionChangeKind: extHostTypes.TextEditorSelectionChangeKind,
TrackedRangeStickiness: EditorCommon.TrackedRangeStickiness,
DecorationRangeBehaviour: extHostTypes.DecorationRangeBehaviour,
Uri: URI,
ViewColumn: extHostTypes.ViewColumn,
WorkspaceEdit: extHostTypes.WorkspaceEdit,

View File

@@ -962,6 +962,28 @@ export enum TextEditorSelectionChangeKind {
Command = 3
}
/**
* These values match very carefully the values of `TrackedRangeStickiness`
*/
export enum DecorationRangeBehaviour {
/**
* TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
*/
OpenOpen = 0,
/**
* TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
*/
ClosedClosed = 1,
/**
* TrackedRangeStickiness.GrowsOnlyWhenTypingBefore
*/
OpenClosed = 2,
/**
* TrackedRangeStickiness.GrowsOnlyWhenTypingAfter
*/
ClosedOpen = 3
}
export namespace TextEditorSelectionChangeKind {
export function fromValue(s: string) {
switch (s) {