@microsoft/compose-language-service
Version:
Language service for Docker Compose documents
20 lines (19 loc) • 1.4 kB
TypeScript
/*!--------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { CancellationToken, CompletionItem, CompletionParams, WorkDoneProgressReporter } from 'vscode-languageserver';
import { ExtendedParams, ExtendedPositionParams } from '../../ExtendedParams';
import { ProviderBase } from '../ProviderBase';
/**
* Completions are one of the more involved features so we will split up the code, with this multi-provider calling each of them
* Most will no-op but the results will all be aggregated upon return
* Importantly, if any fail, we will throw an error--all other results will be ignored
*/
export declare class MultiCompletionProvider extends ProviderBase<CompletionParams & ExtendedParams, CompletionItem[] | undefined, never, never> {
private readonly basicCompletions;
private readonly advancedCompletions;
private readonly completionCollections;
constructor(basicCompletions: boolean, advancedCompletions: boolean);
on(params: CompletionParams & ExtendedPositionParams, token: CancellationToken, workDoneProgress: WorkDoneProgressReporter): Promise<CompletionItem[] | undefined>;
}