UNPKG

sussudio

Version:

An unofficial VS Code Internal API

10 lines (9 loc) 813 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { JSONPath } from "../../../base/common/json.mjs"; import { FormattingOptions } from "../../../base/common/jsonFormatter.mjs"; export declare function edit(content: string, originalPath: JSONPath, value: any, formattingOptions: FormattingOptions): string; export declare function getLineStartOffset(content: string, eol: string, atOffset: number): number; export declare function getLineEndOffset(content: string, eol: string, atOffset: number): number;