UNPKG

@microsoft/compose-language-service

Version:
9 lines (8 loc) 652 B
/*!-------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import type { Range as LspRange } from 'vscode-languageserver'; import type { Range as YamlRange } from 'yaml'; import type { TextDocument } from 'vscode-languageserver-textdocument'; export declare function yamlRangeToLspRange(document: TextDocument, yamlRange: YamlRange | [number, number]): LspRange;