Refresh master with initial release/0.24 snapshot (#332)

* Initial port of release/0.24 source code

* Fix additional headers

* Fix a typo in launch.json
This commit is contained in:
Karl Burtram
2017-12-15 15:38:57 -08:00
committed by GitHub
parent 271b3a0b82
commit 6ad0df0e3e
7118 changed files with 107999 additions and 56466 deletions

View File

@@ -226,7 +226,7 @@ export interface ISuggestion {
insertText: string;
type: SuggestionType;
detail?: string;
documentation?: string;
documentation?: string | IMarkdownString;
filterText?: string;
sortText?: string;
noAutoAccept?: boolean;
@@ -244,6 +244,23 @@ export interface ISuggestion {
export interface ISuggestResult {
suggestions: ISuggestion[];
incomplete?: boolean;
dispose?(): void;
}
/**
* How a suggest provider was triggered.
*/
export enum SuggestTriggerKind {
Invoke = 0,
TriggerCharacter = 1
}
/**
* @internal
*/
export interface SuggestContext {
triggerKind: SuggestTriggerKind;
triggerCharacter?: string;
}
/**
@@ -253,7 +270,7 @@ export interface ISuggestSupport {
triggerCharacters?: string[];
provideCompletionItems(model: editorCommon.IModel, position: Position, token: CancellationToken): ISuggestResult | Thenable<ISuggestResult>;
provideCompletionItems(model: editorCommon.IModel, position: Position, context: SuggestContext, token: CancellationToken): ISuggestResult | Thenable<ISuggestResult>;
resolveCompletionItem?(model: editorCommon.IModel, position: Position, item: ISuggestion, token: CancellationToken): ISuggestion | Thenable<ISuggestion>;
}
@@ -284,7 +301,7 @@ export interface ParameterInformation {
* The human-readable doc-comment of this signature. Will be shown
* in the UI but can be omitted.
*/
documentation?: string;
documentation?: string | IMarkdownString;
}
/**
* Represents the signature of something callable. A signature
@@ -301,7 +318,7 @@ export interface SignatureInformation {
* The human-readable doc-comment of this signature. Will be shown
* in the UI but can be omitted.
*/
documentation?: string;
documentation?: string | IMarkdownString;
/**
* The parameters of this signature.
*/
@@ -679,17 +696,31 @@ export interface IColor {
}
/**
* A color formatter.
* String representations for a color
*/
export interface IColorFormatter {
readonly supportsTransparency: boolean;
format(color: IColor): string;
export interface IColorPresentation {
/**
* The label of this color presentation. It will be shown on the color
* picker header. By default this is also the text that is inserted when selecting
* this color presentation.
*/
label: string;
/**
* An [edit](#TextEdit) which is applied to a document when selecting
* this presentation for the color.
*/
textEdit?: TextEdit;
/**
* An optional array of additional [text edits](#TextEdit) that are applied when
* selecting this color presentation.
*/
additionalTextEdits?: TextEdit[];
}
/**
* A color range is a range in a text model which represents a color.
*/
export interface IColorRange {
export interface IColorInformation {
/**
* The range within the model.
@@ -700,11 +731,6 @@ export interface IColorRange {
* The color represented in this range.
*/
color: IColor;
/**
* The available formats for this specific color.
*/
formatters: IColorFormatter[];
}
/**
@@ -714,7 +740,11 @@ export interface DocumentColorProvider {
/**
* Provides the color ranges for a specific model.
*/
provideColorRanges(model: editorCommon.IReadOnlyModel, token: CancellationToken): IColorRange[] | Thenable<IColorRange[]>;
provideDocumentColors(model: editorCommon.IReadOnlyModel, token: CancellationToken): IColorInformation[] | Thenable<IColorInformation[]>;
/**
* Provide the string representations for a color.
*/
provideColorPresentations(model: editorCommon.IReadOnlyModel, colorInfo: IColorInformation, token: CancellationToken): IColorPresentation[] | Thenable<IColorPresentation[]>;
}
export interface IResourceEdit {