Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MonacoSnippetSuggestProvider

Hierarchy

  • MonacoSnippetSuggestProvider

Implements

  • CompletionItemProvider

Index

Constructors

Properties

fileService: FileService
pendingSnippets: Map<string, Promise<void>[]> = ...
snippets: Map<string, Snippet[]> = ...
_maxPrefix: 10000 = 10000

Methods

  • isPatternInWord(patternLow: string, patternPos: number, patternLen: number, wordLow: string, wordPos: number, wordLen: number): boolean
  • loadSnippets(scope: string): Promise<void>
  • loadURI(uri: string | URI, options: SnippetLoadOptions, toDispose: DisposableCollection): Promise<void>
  • provideCompletionItems(model: ITextModel, position: Position, context: CompletionContext): Promise<undefined | CompletionList>
  • push(...snippets: Snippet[]): Disposable
  • resolveCompletionItem(item: CompletionItem, token: CancellationToken): CompletionItem