Class PromptTemplateContribution

Implements

  • LanguageGrammarDefinitionContribution
  • CommandContribution
  • TabBarToolbarContribution

Constructors

Properties

config: LanguageConfiguration = ...
customizationService: PromptCustomizationService
messageService: MessageService
promptService: PromptService
toolProviders: ContributionProvider<ToolProvider>

Methods

  • Type Parameters

    • T

    Parameters

    • model: ITextModel
    • position: Position
    • triggerChars: string
    • items: T[]
    • kind: CompletionItemKind
    • getId: ((item) => string)
        • (item): string
        • Parameters

          • item: T

          Returns string

    • getName: ((item) => string)
        • (item): string
        • Parameters

          • item: T

          Returns string

    • getDescription: ((item) => string)
        • (item): string
        • Parameters

          • item: T

          Returns string

    Returns ProviderResult<CompletionList>