UNPKG

@sussudio/base

Version:

Internal APIs for VS Code's utilities and user interface building blocks.

20 lines (18 loc) 936 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IMatch } from './filters.mjs'; export declare function escapeIcons(text: string): string; export declare function markdownEscapeEscapedIcons(text: string): string; export declare function stripIcons(text: string): string; export interface IParsedLabelWithIcons { readonly text: string; readonly iconOffsets?: readonly number[]; } export declare function parseLabelWithIcons(input: string): IParsedLabelWithIcons; export declare function matchesFuzzyIconAware( query: string, target: IParsedLabelWithIcons, enableSeparateSubstringMatching?: boolean, ): IMatch[] | null;