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 { CharCode } from '../../../base/common/charCode.js';
import { Event } from '../../../base/common/event.js';
import { isChrome, isEdge, isFirefox, isLinux, isMacintosh, isSafari, isWeb, isWindows } from '../../../base/common/platform.js';
import { isFalsyOrWhitespace } from '../../../base/common/strings.js';
import { Scanner, LexingError, Token, TokenType } from './scanner.js';
import { createDecorator } from '../../instantiation/common/instantiation.js'
localize
IDisposable
illegalArgument
isMacintosh
isLinux
isWindows
isWeb
isMacintosh isWeb
isEdge
isFirefox
isChrome
isSafari
key value
key
key value
hasOwnProperty ObjectprototypehasOwnProperty
ContextKeyExprType
False
True
Defined
Not
Equals
NotEquals
And
Regex
NotRegex
Or
In
NotIn
Greater
GreaterEquals
Smaller
SmallerEquals
key ContextKeyExpression
key ContextKeyExpression
key value ContextKeyExpression
key value ContextKeyExpression
key value ContextKeyExpression
key value ContextKeyExpression
key value ContextKeyExpression
key value ContextKeyExpression
key regexp RegExp ContextKeyRegexExpr
key valueKey ContextKeyInExpr
key valueKey ContextKeyNotInExpr
other ContextKeyExpression
other ContextKeyExpression
ContextKeyExpression
context IContext
mapFnc IContextKeyExprMapper ContextKeyExpression
ContextKeyExpression
ContextKeyFalseExpr ContextKeyTrueExpr ContextKeyDefinedExpr ContextKeyNotExpr
ContextKeyEqualsExpr ContextKeyNotEqualsExpr ContextKeyRegexExpr
ContextKeyNotRegexExpr ContextKeyAndExpr ContextKeyOrExpr ContextKeyInExpr
ContextKeyNotInExpr ContextKeyGreaterExpr ContextKeyGreaterEqualsExpr
ContextKeySmallerExpr ContextKeySmallerEqualsExpr
regexParsingWithErrorRecovery
defaultConfig ParserConfig
regexParsingWithErrorRecovery
message
offset
lexeme
additionalInfo
errorEmptyString
hintEmptyString
errorNoInAfterNot
errorClosingParenthesis
errorUnexpectedToken
hintUnexpectedToken
errorUnexpectedEOF
hintUnexpectedEOF
_parseError
_scanner
_tokens Token
_current
_parsingErrors ParsingError
ReadonlyLexingError
_scannererrors
ReadonlyParsingError
_parsingErrors
_config ParserConfig defaultConfig
input ContextKeyExpression
input
_parsingErrors message errorEmptyString offset lexeme additionalInfo hintEmptyString
_tokens _scannerinput
_current
_parsingErrors
expr
peek
additionalInfo peektype TokenTypeStr hintUnexpectedToken
_parsingErrors message errorUnexpectedToken offset peekoffset lexeme Scannerpeek additionalInfo
Parser_parseError
expr
e
e Parser_parseError
e
ContextKeyExpression
ContextKeyExpression
expr
TokenTypeOr
right
exprright
exprlength expr ContextKeyExprexpr
ContextKeyExpression
expr
TokenTypeAnd
right
exprright
exprlength expr ContextKeyExprexpr
ContextKeyExpression
TokenTypeNeg
peek
peektype
TokenTypeTrue
ContextKeyFalseExpr
TokenTypeFalse
ContextKeyTrueExpr
TokenTypeLParen
expr
TokenTypeRParen errorClosingParenthesis
expr
TokenTypeStr
ContextKeyNotExprpeeklexeme
peek
ContextKeyExpression
peek
peektype
TokenTypeTrue
ContextKeyExpr
TokenTypeFalse
ContextKeyExpr
TokenTypeLParen
expr
TokenTypeRParen errorClosingParenthesis
expr
TokenTypeStr
key peeklexeme
TokenTypeRegexOp
expr
_configregexParsingWithErrorRecovery
exprtype TokenTypeRegexStr
expr
regexLexeme exprlexeme
closingSlashIndex regexLexeme
flags closingSlashIndex regexLexemelength regexLexemeclosingSlashIndex
regexp RegExp
regexp regexLexeme closingSlashIndex flags
e
expr
ContextKeyRegexExprkey regexp
exprtype
TokenTypeRegexStr
TokenTypeError
lexemeReconstruction exprlexeme
followingToken
parenBalance
i i exprlexemelength i
exprlexemei CharCodeOpenParen
parenBalance
exprlexemei CharCodeCloseParen
parenBalance
followingTokentype TokenTypeAnd followingTokentype TokenTypeOr
followingTokentype
TokenTypeLParen
parenBalance
TokenTypeRParen
parenBalance
TokenTypeRegexStr
TokenTypeQuotedStr
i i followingTokenlexemelength i
followingTokenlexemei CharCodeOpenParen
parenBalance
exprlexemei CharCodeCloseParen
parenBalance
parenBalance
lexemeReconstructionScannerfollowingToken
followingToken
regexLexeme lexemeReconstruction
closingSlashIndex regexLexeme
flags closingSlashIndex regexLexemelength regexLexemeclosingSlashIndex
regexp RegExp
regexp regexLexeme closingSlashIndex flags
e
expr
ContextKeyExprkey regexp
TokenTypeQuotedStr
serializedValue exprlexeme
regex RegExp
serializedValue
start serializedValue
end serializedValue
start end start
value serializedValuestart end
caseIgnoreFlag serializedValueend
regex value caseIgnoreFlag
_e
expr
regex
expr
ContextKeyRegexExprkey regex
TokenTypeNot
TokenTypeIn errorNoInAfterNot
right
ContextKeyExprkey right
maybeOp type
maybeOp
TokenTypeEq
right
type TokenTypeQuotedStr
ContextKeyExprkey right
right
ContextKeyExprkey
ContextKeyExprkey
ContextKeyExprkey right
TokenTypeNotEq
right
type TokenTypeQuotedStr
ContextKeyExprkey right
right
ContextKeyExprkey
ContextKeyExprkey
ContextKeyExprkey right
TokenTypeLt
ContextKeySmallerExprkey
TokenTypeLtEq
ContextKeySmallerEqualsExprkey
TokenTypeGt
ContextKeyGreaterExprkey
TokenTypeGtEq
ContextKeyGreaterEqualsExprkey
TokenTypeIn
ContextKeyExprkey
ContextKeyExprkey
TokenType
_parsingErrors message errorUnexpectedEOF offset peekoffset lexeme additionalInfo hintUnexpectedEOF
Parser_parseError
token
tokentype
TokenTypeStr
TokenTypeQuotedStr
tokenlexeme
TokenTypeTrue
TokenTypeFalse
TokenTypeIn
_flagsGYRe
flags
flags_flagsGYRe
_tokens_current
token TokenType
token
_current
type TokenType message
type
message
expected got Token additionalInfo
message expected Scannergot
offset gotoffset
lexeme Scannergot
_parsingErrors message offset lexeme additionalInfo
Parser_parseError
type TokenType
type type
_tokens_current
type TokenType
ContextKeyExpression
ContextKeyFalseExpr
ContextKeyExpression
ContextKeyTrueExpr
key ContextKeyExpression
ContextKeyDefinedExprkey
key value ContextKeyExpression
ContextKeyEqualsExprkey value
key value ContextKeyExpression
ContextKeyNotEqualsExprkey value
key value RegExp ContextKeyExpression
ContextKeyRegexExprkey value
key value ContextKeyExpression
ContextKeyInExprkey value
key value ContextKeyExpression
ContextKeyNotInExprkey value
key ContextKeyExpression
ContextKeyNotExprkey
expr ContextKeyExpression ContextKeyExpression
ContextKeyAndExprexpr
expr ContextKeyExpression ContextKeyExpression
ContextKeyOrExprexpr
key value ContextKeyExpression
ContextKeyGreaterExprkey value
key value ContextKeyExpression
ContextKeyGreaterEqualsExprkey value
key value ContextKeyExpression
ContextKeySmallerExprkey value
key value ContextKeyExpression
ContextKeySmallerEqualsExprkey value
_parser regexParsingWithErrorRecovery
serialized ContextKeyExpression
serialized serialized
expr _parserserialized
expr
whenClauses
parser regexParsingWithErrorRecovery
whenClauseswhenClause
parserwhenClause
parserlexingErrorslength
parserlexingErrorsse LexingError
errorMessage seadditionalInfo
seadditionalInfo
offset seoffset
length selexemelength
parserparsingErrorslength
parserparsingErrorspe ParsingError
errorMessage peadditionalInfo pemessage
offset peoffset
length pelexemelength
a ContextKeyExpression b ContextKeyExpression
aExpr a a
bExpr b b
aExpr bExpr
aExpr bExpr
aExprbExpr
a ContextKeyExpression b ContextKeyExpression
ab
type ContextKeyExprTypeFalse
other ContextKeyExpression
type othertype
other ContextKeyExpression
othertype type
ContextKeyExpression
context IContext
mapFnc IContextKeyExprMapper ContextKeyExpression
ContextKeyExpression
ContextKeyTrueExpr
type ContextKeyExprTypeTrue
other ContextKeyExpression
type othertype
other ContextKeyExpression
othertype type
ContextKeyExpression
context IContext
mapFnc IContextKeyExprMapper ContextKeyExpression
ContextKeyExpression
ContextKeyFalseExpr
key negated ContextKeyExpression ContextKeyExpression
constantValue key
constantValue
constantValue ContextKeyTrueExpr ContextKeyFalseExpr
key negated
type ContextKeyExprTypeDefined
key
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key otherkey
other ContextKeyExpression
othertype type
key otherkey
ContextKeyExpression
constantValue key
constantValue
constantValue ContextKeyTrueExpr ContextKeyFalseExpr
context IContext
contextkey
key
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey
ContextKeyExpression
negated
negated ContextKeyNotExprkey
negated
key value negated ContextKeyExpression ContextKeyExpression
value
value ContextKeyDefinedExprkey negated ContextKeyNotExprkey negated
constantValue key
constantValue
trueValue constantValue
value trueValue ContextKeyTrueExpr ContextKeyFalseExpr
key value negated
type ContextKeyExprTypeEquals
key
value
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key value otherkey othervalue
other ContextKeyExpression
othertype type
key otherkey value othervalue
ContextKeyExpression
constantValue key
constantValue
trueValue constantValue
value trueValue ContextKeyTrueExpr ContextKeyFalseExpr
context IContext
contextkey value
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey value
ContextKeyExpression
negated
negated ContextKeyNotEqualsExprkey value
negated
key valueKey ContextKeyInExpr
key valueKey
type ContextKeyExprTypeIn
negated ContextKeyExpression
key
valueKey
other ContextKeyExpression
othertype type
type othertype
key valueKey otherkey othervalueKey
other ContextKeyExpression
othertype type
key otherkey valueKey othervalueKey
ContextKeyExpression
context IContext
source contextvalueKey
item contextkey
source
sourceitem
isWindows item item
itemLower item
sources s s itemLower
item source source
source item
isWindows item
itemLower item
Objectsourcekey key itemLower
key valueKey
mapFnc IContextKeyExprMapper ContextKeyInExpr
mapFnckey valueKey
ContextKeyExpression
negated
negated ContextKeyNotInExprkey valueKey
negated
key valueKey ContextKeyNotInExpr
key valueKey
type ContextKeyExprTypeNotIn
_negated ContextKeyInExpr
key
valueKey
_negated ContextKeyInExprkey valueKey
other ContextKeyExpression
othertype type
type othertype
_negatedother_negated
other ContextKeyExpression
othertype type
_negatedother_negated
ContextKeyExpression
context IContext
_negatedcontext
_negated
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey valueKey
ContextKeyExpression
_negated
key value negated ContextKeyExpression ContextKeyExpression
value
value
ContextKeyNotExprkey negated
ContextKeyDefinedExprkey negated
constantValue key
constantValue
falseValue constantValue
value falseValue ContextKeyFalseExpr ContextKeyTrueExpr
key value negated
type ContextKeyExprTypeNotEquals
key
value
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key value otherkey othervalue
other ContextKeyExpression
othertype type
key otherkey value othervalue
ContextKeyExpression
constantValue key
constantValue
falseValue constantValue
value falseValue ContextKeyFalseExpr ContextKeyTrueExpr
context IContext
contextkey value
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey value
ContextKeyExpression
negated
negated ContextKeyEqualsExprkey value
negated
key negated ContextKeyExpression ContextKeyExpression
constantValue key
constantValue
constantValue ContextKeyFalseExpr ContextKeyTrueExpr
key negated
type ContextKeyExprTypeNot
key
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key otherkey
other ContextKeyExpression
othertype type
key otherkey
ContextKeyExpression
constantValue key
constantValue
constantValue ContextKeyFalseExpr ContextKeyTrueExpr
context IContext
contextkey
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey
ContextKeyExpression
negated
negated ContextKeyDefinedExprkey
negated
value value ContextKeyFalseExpr
value
n value
n
value n
value value
value
ContextKeyFalseExpr
key _value negated ContextKeyExpression ContextKeyExpression
_value value key value negated
type ContextKeyExprTypeGreater
key
value
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key value otherkey othervalue
other ContextKeyExpression
othertype type
key otherkey value othervalue
ContextKeyExpression
context IContext
value
contextkey value
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey value
ContextKeyExpression
negated
negated ContextKeySmallerEqualsExprkey value
negated
key _value negated ContextKeyExpression ContextKeyExpression
_value value key value negated
type ContextKeyExprTypeGreaterEquals
key
value
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key value otherkey othervalue
other ContextKeyExpression
othertype type
key otherkey value othervalue
ContextKeyExpression
context IContext
value
contextkey value
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey value
ContextKeyExpression
negated
negated ContextKeySmallerExprkey value
negated
key _value negated ContextKeyExpression ContextKeyExpression
_value value key value negated
type ContextKeyExprTypeSmaller
key
value
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key value otherkey othervalue
other ContextKeyExpression
othertype type
key otherkey value othervalue
ContextKeyExpression
context IContext
value
contextkey value
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey value
ContextKeyExpression
negated
negated ContextKeyGreaterEqualsExprkey value
negated
key _value negated ContextKeyExpression ContextKeyExpression
_value value key value negated
type ContextKeyExprTypeSmallerEquals
key
value
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
key value otherkey othervalue
other ContextKeyExpression
othertype type
key otherkey value othervalue
ContextKeyExpression
context IContext
value
contextkey value
key
mapFnc IContextKeyExprMapper ContextKeyExpression
mapFnckey value
ContextKeyExpression
negated
negated ContextKeyGreaterExprkey value
negated
key regexp RegExp ContextKeyRegexExpr
key regexp
type ContextKeyExprTypeRegex
negated ContextKeyExpression
key
regexp RegExp
other ContextKeyExpression
othertype type
type othertype
key otherkey
key otherkey
thisSource regexp regexpsource
otherSource otherregexp otherregexpsource
thisSource otherSource
thisSource otherSource
other ContextKeyExpression
othertype type
thisSource regexp regexpsource
otherSource otherregexp otherregexpsource
key otherkey thisSource otherSource
ContextKeyExpression
context IContext
value contextkey
regexp regexpvalue
value regexp
key
mapFnc IContextKeyExprMapper ContextKeyRegexExpr
mapFnckey regexp
ContextKeyExpression
negated
negated ContextKeyNotRegexExpr
negated
actual ContextKeyRegexExpr ContextKeyExpression
actual
type ContextKeyExprTypeNotRegex
_actual ContextKeyRegexExpr
other ContextKeyExpression
othertype type
type othertype
_actualother_actual
other ContextKeyExpression
othertype type
_actualother_actual
ContextKeyExpression
context IContext
_actualcontext
_actual
mapFnc IContextKeyExprMapper ContextKeyExpression
_actualmapFnc
ContextKeyExpression
_actual
arr ContextKeyExpression ContextKeyExpression
newArr ContextKeyExpression
i len arrlength i len i
newExpr arri
arri newExpr
newArr
newArr
j j i j
newArrj arrj
newArr
newArri newExpr
newArr
arr
newArr
_expr ReadonlyArrayContextKeyExpression negated ContextKeyExpression extraRedundantCheck ContextKeyExpression
ContextKeyAndExpr_expr negated extraRedundantCheck
type ContextKeyExprTypeAnd
expr ContextKeyExpression
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
exprlength otherexprlength
exprlength otherexprlength
i len exprlength i len i
r expri otherexpri
r
r
other ContextKeyExpression
othertype type
exprlength otherexprlength
i len exprlength i len i
expriotherexpri
ContextKeyExpression
exprArr expr
exprArr expr
ContextKeyAndExprexprArr negated
context IContext
i len exprlength i len i
expricontext
arr ReadonlyArrayContextKeyExpression negated ContextKeyExpression extraRedundantCheck ContextKeyExpression
expr ContextKeyExpression
hasTrue
e arr
e
etype ContextKeyExprTypeTrue
hasTrue
etype ContextKeyExprTypeFalse
ContextKeyFalseExpr
etype ContextKeyExprTypeAnd
expreexpr
expre
exprlength hasTrue
ContextKeyTrueExpr
exprlength
exprlength
expr
exprcmp
i i exprlength i
expri expri
expri
i
exprlength
expr
exprlength
lastElement exprexprlength
lastElementtype ContextKeyExprTypeOr
expr
secondToLastElement expr
isFinished exprlength
resultElement ContextKeyOrExpr
lastElementexprel ContextKeyAndExprel secondToLastElement extraRedundantCheck
isFinished
resultElement
exprresultElement
exprcmp
exprlength
expr
extraRedundantCheck
i i exprlength i
j i j exprlength j
expriexprj
ContextKeyFalseExpr
exprlength
expr
expr negated
expre e
result
expr expr
resultexpr
result
mapFnc IContextKeyExprMapper ContextKeyExpression
exprexpr exprmapFnc
ContextKeyExpression
negated
result ContextKeyExpression
expr expr
resultexpr
negated ContextKeyOrExprresult
negated
_expr ReadonlyArrayContextKeyExpression negated ContextKeyExpression extraRedundantCheck ContextKeyExpression
ContextKeyOrExpr_expr negated extraRedundantCheck
type ContextKeyExprTypeOr
expr ContextKeyExpression
negated ContextKeyExpression
other ContextKeyExpression
othertype type
type othertype
exprlength otherexprlength
exprlength otherexprlength
i len exprlength i len i
r expri otherexpri
r
r
other ContextKeyExpression
othertype type
exprlength otherexprlength
i len exprlength i len i
expriotherexpri
ContextKeyExpression
exprArr expr
exprArr expr
ContextKeyOrExprexprArr negated
context IContext
i len exprlength i len i
expricontext
arr ReadonlyArrayContextKeyExpression negated ContextKeyExpression extraRedundantCheck ContextKeyExpression
expr ContextKeyExpression
hasFalse
arr
i len arrlength i len i
e arri
e
etype ContextKeyExprTypeFalse
hasFalse
etype ContextKeyExprTypeTrue
ContextKeyTrueExpr
etype ContextKeyExprTypeOr
expr expreexpr
expre
exprlength hasFalse
ContextKeyFalseExpr
exprcmp
exprlength
exprlength
expr
i i exprlength i
expri expri
expri
i
exprlength
expr
extraRedundantCheck
i i exprlength i
j i j exprlength j
expriexprj
ContextKeyTrueExpr
exprlength
expr
expr negated
expre e
result
expr expr
resultexpr
result
mapFnc IContextKeyExprMapper ContextKeyExpression
exprexpr exprmapFnc
ContextKeyExpression
negated
result ContextKeyExpression
expr expr
resultexpr
resultlength
result
result
all ContextKeyExpression
left
right
allContextKeyAndExprleft right
resultContextKeyOrExprall
negated ContextKeyOrExprresult
negated
key
type
description
_info ContextKeyInfo
IterableIteratorContextKeyInfo
RawContextKey_info
_defaultValue
key defaultValue metaOrHide type description
key
_defaultValue defaultValue
metaOrHide
RawContextKey_info metaOrHide key
metaOrHide
RawContextKey_info key description metaOrHide type defaultValue defaultValue defaultValue
target IContextKeyService IContextKey
targetkey _defaultValue
target IContextKeyService
targetkey
ContextKeyExpression
value ContextKeyExpression
ContextKeyEqualsExprkey value
value ContextKeyExpression
ContextKeyNotEqualsExprkey value
value ContextKeyExpression
ContextKeyGreaterExprkey value
Record
key
value
parentElement IContextKeyServiceTarget
attr value
attr
attr
attr
IContextKeyService
value
keys IReadableSet
keys IReadableSet
IContextKeyService IDisposable
_serviceBrand
onDidChangeContext EventIContextKeyChangeEvent
callback
key defaultValue IContextKey
rules ContextKeyExpression
key
target IContextKeyServiceTarget IScopedContextKeyService
overlay Iterable IContextKeyService
target IContextKeyServiceTarget IContext
parentContextKeyService IContextKeyService
key1 key2
key1 key2
key1 key2
key1 value1 key2 value2
key1 key2
key1 key2
value1 value2
value1 value2
p ContextKeyExpression q ContextKeyExpression
ptype ContextKeyExprTypeFalse qtype ContextKeyExprTypeTrue
ptype ContextKeyExprTypeOr
qtype ContextKeyExprTypeOr
pexpr qexpr
qtype ContextKeyExprTypeOr
element qexpr
p element
ptype ContextKeyExprTypeAnd
qtype ContextKeyExprTypeAnd
qexpr pexpr
element pexpr
element q
pq
p ContextKeyExpression q ContextKeyExpression
pIndex
qIndex
pIndex plength qIndex qlength
cmp ppIndexqqIndex
cmp
cmp
pIndex
qIndex
qIndex
pIndex plength
node ContextKeyExpression
nodetype ContextKeyExprTypeOr
nodeexpr
node