ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ITextSearchMatch, ITextSearchPreviewOptions, ITextSearchResult } from './search.js';
import { Range } from '../../../../editor/common/core/range.js';
export const getFileResults = (
bytes: Uint8Array,
pattern: RegExp,
options: {
surroundingContext: number;
previewOptions: ITextSearchPreviewOptions | undefined;
remainingResultQuota: number;
}
): ITextSearchResult[] => {
let text: string;
if bytes bytes
text bytes
bytes bytes
text bytes
text bytes
text bytes
results ITextSearchResult
patternIndices matchStartIndex matchedText
patternMatch RegExpExecArray
remainingResultQuota optionsremainingResultQuota
remainingResultQuota patternMatch patterntext
patternIndices matchStartIndex patternMatchindex matchedText patternMatch
remainingResultQuota
patternIndiceslength
contextLinesNeeded
resultLines
lineRanges start end
lineNumber textlineRangeslineNumberstart lineRangeslineNumberend
prevLineEnd
lineEndingMatch RegExpExecArray
lineEndRegex
lineEndingMatch lineEndRegextext
lineRanges start prevLineEnd end lineEndingMatchindex
prevLineEnd lineEndingMatchindex lineEndingMatchlength
prevLineEnd textlength lineRanges start prevLineEnd end textlength
startLine
matchStartIndex matchedText patternIndices
remainingResultQuota
lineRangesstartLine matchStartIndex lineRangesstartLineend
startLine
endLine startLine
lineRangesendLine matchStartIndex matchedTextlength lineRangesendLineend
endLine
optionssurroundingContext
contextLine Math startLine optionssurroundingContext contextLine startLine contextLine
contextLinesNeededcontextLine
previewText
offset
matchLine startLine matchLine endLine matchLine
previewLine matchLine
optionspreviewOptionscharsPerLine previewLinelength optionspreviewOptionscharsPerLine
offset MathmatchStartIndex lineRangesstartLinestart
previewLine previewLineoffset optionspreviewOptionscharsPerLine
previewText
resultLinesmatchLine
fileRange
startLine
matchStartIndex lineRangesstartLinestart
endLine
matchStartIndex matchedTextlength lineRangesendLinestart
previewRange
matchStartIndex lineRangesstartLinestart offset
endLine startLine
matchStartIndex matchedTextlength lineRangesendLinestart endLine startLine offset
match ITextSearchMatch
rangeLocations
source fileRange
preview previewRange
previewText previewText
resultsmatch
optionssurroundingContext
contextLine endLine contextLine MathendLine optionssurroundingContext lineRangeslength contextLine
contextLinesNeededcontextLine
contextLine contextLinesNeeded
resultLinescontextLine
results
text contextLine
lineNumber contextLine
results