mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Improve naming and doc comments
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user