@microsoft/compose-language-service
Version:
Language service for Docker Compose documents
29 lines (28 loc) • 1.34 kB
TypeScript
/*!--------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { NotificationType, RequestType } from 'vscode-languageserver-protocol';
import type { TextDocumentParams } from './TextDocumentParams';
export type DocumentSettingsClientCapabilities = {
readonly request: boolean;
readonly notify: boolean;
};
export declare const LF = 1;
export declare const CRLF = 2;
type EndOfLine = typeof LF | typeof CRLF;
export interface DocumentSettings {
tabSize: number;
eol: EndOfLine;
}
export type DocumentSettingsParams = TextDocumentParams;
export declare namespace DocumentSettingsRequest {
const method: '$/textDocument/documentSettings';
const type: RequestType<TextDocumentParams, DocumentSettings | null | undefined, never>;
}
export type DocumentSettingsNotificationParams = DocumentSettingsParams & DocumentSettings;
export declare namespace DocumentSettingsNotification {
const method: '$/textDocument/documentSettings/didChange';
const type: NotificationType<DocumentSettingsNotificationParams>;
}
export {};