/******************************************************************************
 * Copyright 2021 TypeFox GmbH
 * This program and the accompanying materials are made available under the
 * terms of the MIT License, which is available in the project root.
 ******************************************************************************/ import { CancellationToken , CodeAction , CodeActionParams , Command } from 'vscode-languageserver' ; import { MaybePromise } from '../utils/promise-util' ; import { LangiumDocument } from '../workspace/documents' ; export interface CodeActionProvider { throws throws getCodeActions ( document , params , cancelToken ? ) : MaybePromise < Array < Command | CodeAction > | undefined > ; }