提交 bb51ca00 编写于 作者: A Alex Dima

Align standalone editor CompletionItem

上级 c2c9e49b
{
"name": "monaco-editor-core",
"private": true,
"version": "0.11.0",
"version": "0.11.1",
"description": "A browser based code editor",
"author": "Microsoft Corporation",
"license": "MIT",
......
......@@ -24,6 +24,7 @@ import { IMarkerData } from 'vs/platform/markers/common/markers';
import { Token, TokenizationResult, TokenizationResult2 } from 'vs/editor/common/core/token';
import { IStandaloneThemeService } from 'vs/editor/standalone/common/standaloneThemeService';
import * as model from 'vs/editor/common/model';
import { IMarkdownString } from 'vs/base/common/htmlContent';
/**
* Register information about a new language.
......@@ -494,7 +495,7 @@ export interface CompletionItem {
/**
* A human-readable string that represents a doc-comment.
*/
documentation?: string;
documentation?: string | IMarkdownString;
/**
* A command that should be run upon acceptance of this item.
*/
......@@ -527,6 +528,12 @@ export interface CompletionItem {
* [contain](#Range.contains) the position at which completion has been [requested](#CompletionItemProvider.provideCompletionItems).
*/
range?: Range;
/**
* An optional set of characters that when pressed while this completion is active will accept it first and
* then type that character. *Note* that all commit characters should have `length=1` and that superfluous
* characters will be ignored.
*/
commitCharacters?: string[];
/**
* @deprecated **Deprecated** in favor of `CompletionItem.insertText` and `CompletionItem.range`.
*
......@@ -544,12 +551,6 @@ export interface CompletionItem {
* nor with themselves.
*/
additionalTextEdits?: model.ISingleEditOperation[];
/**
* An optional set of characters that when pressed while this completion is active will accept it first and
* then type that character. *Note* that all commit characters should have `length=1` and that superfluous
* characters will be ignored.
*/
commitCharacters?: string[];
}
/**
* Represents a collection of [completion items](#CompletionItem) to be presented
......
......@@ -4149,7 +4149,7 @@ declare module monaco.languages {
/**
* A human-readable string that represents a doc-comment.
*/
documentation?: string;
documentation?: string | IMarkdownString;
/**
* A command that should be run upon acceptance of this item.
*/
......@@ -4182,6 +4182,12 @@ declare module monaco.languages {
* [contain](#Range.contains) the position at which completion has been [requested](#CompletionItemProvider.provideCompletionItems).
*/
range?: Range;
/**
* An optional set of characters that when pressed while this completion is active will accept it first and
* then type that character. *Note* that all commit characters should have `length=1` and that superfluous
* characters will be ignored.
*/
commitCharacters?: string[];
/**
* @deprecated **Deprecated** in favor of `CompletionItem.insertText` and `CompletionItem.range`.
*
......@@ -4199,12 +4205,6 @@ declare module monaco.languages {
* nor with themselves.
*/
additionalTextEdits?: editor.ISingleEditOperation[];
/**
* An optional set of characters that when pressed while this completion is active will accept it first and
* then type that character. *Note* that all commit characters should have `length=1` and that superfluous
* characters will be ignored.
*/
commitCharacters?: string[];
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册