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.
*--------------------------------------------------------------------------------------------*/
export function getWordAtText(text: string, offset: number, wordDefinition: RegExp): { start: number; length: number } {
let lineStart = offset;
while (lineStart > 0 && !isNewlineCharacter(text.charCodeAt(lineStart - 1))) {
lineStart--;
}
const offsetInLine = offset - lineStart;
const lineText textlineStart
flags wordDefinitionignoreCase
wordDefinition wordDefinitionsource flags
match wordDefinitionlineText
match matchindex matchlength offsetInLine
match wordDefinitionlineText
match matchindex offsetInLine
start matchindex lineStart length matchlength
start offset length
haystack needle
haystacklength needlelength
i i needlelength i
haystacki needlei
haystack needle
diff haystacklength needlelength
diff
haystackneedle diff diff
diff
haystack needle
value count
s
count
count
s value
value value
count count
s
str
str
content offset
contentoffset
charCode
charCode charCode