NewSymbolNamesProvider
原文链接
https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.NewSymbolNamesProvider.html
ts
interface NewSymbolNamesProvider {
supportsAutomaticNewSymbolNamesTriggerKind?: Promise<boolean>;
provideNewSymbolNames(model, range, triggerKind, token): ProviderResult<NewSymbolName[]>;
}
supportsAutomaticNewSymbolNamesTriggerKind
- 类型:
Promise<boolean>
provideNewSymbolNames
- 语法:
provideNewSymbolNames(model, range, triggerKind, token): ProviderResult<NewSymbolName[]>
- 参数:
model
:ITextModelrange
:IRangetriggerKind
:NewSymbolNameTriggerKindtoken
:CancellationToken
- 返回值: ProviderResult<NewSymbolName[]>