CompletionItemProvider
小于 1 分钟
CompletionItemProvider
interface
官网地址
属性 Properties
triggerCharacters
- 类型:
string[]
可选
- 默认值:
-
- 可选项:
-
- 描述: ``
方法 Methods
provideCompletionItems
- 语法:
provideCompletionItems(model: ITextModel, position: Position, context: CompletionContext, token: CancellationToken): ProviderResult<CompletionList>
- 参数:
- model: ITextModel
- position: Position
- context: CompletionContext
- token: CancellationToken
- 返回值: ProviderResult<CompletionList>
- 描述: ``
resolveCompletionItem
- 语法:
resolveCompletionItem(item: CompletionItem, token: CancellationToken): ProviderResult<CompletionItem>
- 参数:
- item: CompletionItem
- token: CancellationToken
- 返回值: ProviderResult<CompletionItem>
- 描述: ``