@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
18 lines (17 loc) • 777 B
TypeScript
import { SuggestionService } from './SuggestionService';
import { editor, languages, IPosition } from 'monaco-editor';
/**
* Engine that provides code suggestions/completions in the editor
*/
export declare class SuggestionEngine {
private suggestionService;
constructor(suggestionService: SuggestionService);
/**
* Provides code completion suggestions based on the current word and position
* @param word The current word at the cursor position
* @param model The text model of the editor
* @param position The cursor position
* @returns Completion suggestions for the current context
*/
suggest(word: editor.IWordAtPosition, model: editor.ITextModel, position: IPosition): languages.ProviderResult<languages.CompletionList>;
}