Это 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{ RunOnceScheduler }from'../../../base/common/async.js';import{ Color }from'../../../base/common/color.js';import{ Emitter, Event }from'../../../base/common/event.js';import{ IJSONSchema, IJSONSchemaMap }from'../../../base/common/jsonSchema.js';import{ Disposable }from'../../../base/common/lifecycle.js';import*as nls from'../../../nls.js';import{ Extensions as JSONExtensions, IJSONContributionRegistry }from'../../jsonschemas/common/jsonContributionRegistry.js'
platform
IColorTheme
idPattern
typeAndModifierIdPattern
selectorPattern
fontStylePattern
type modifiers language
id
num
id
superType
description
deprecationMessage
foreground Color
bold
underline
strikethrough
italic
foreground Color
bold
underline
strikethrough
italic
TokenStyle
style TokenStyle
_foreground styleforeground ColorFormatstyleforeground
_bold stylebold stylebold
_underline styleunderline styleunderline
_italic styleitalic styleitalic
_strikethrough stylestrikethrough stylestrikethrough
obj TokenStyle
obj
b b b
s s Colors
obj_foreground
obj_bold
obj_underline
obj_strikethrough
obj_italic
s1 s2
s1 s2
s1 s2
s1foreground s1foregrounds2foreground s2foreground
s1bold s2bold
s1underline s2underline
s1strikethrough s2strikethrough
s1italic s2italic
s s TokenStyle
s
data foreground Color bold underline strikethrough italic TokenStyle
dataforeground databold dataunderline datastrikethrough dataitalic
foreground fontStyle TokenStyle
foreground fontStyle bold underline strikethrough italic TokenStyle
foreground fontStyle bold underline strikethrough italic TokenStyle
foregroundColor
foreground
foregroundColor Colorforeground
fontStyle
bold italic underline strikethrough
expression
match
match expressionfontStyle
match
bold
italic
underline
strikethrough
foregroundColor bold underline strikethrough italic
theme IColorTheme TokenStyle
scopesToProbe ProbeScope
light TokenStyleValue
dark TokenStyleValue
hcDark TokenStyleValue
hcLight TokenStyleValue
selector TokenSelector
defaults TokenStyleDefaults
style TokenStyle
selector TokenSelector
SemanticTokenRule
registry ITokenClassificationRegistry o SemanticTokenRule
o o_selector o_style
style TokenStyleo_style
style
selector registryo_selector style
_ignore
rule SemanticTokenRule
_selector ruleselectorid
_style TokenStylerulestyle
r1 SemanticTokenRule r2 SemanticTokenRule
r1 r2
r1 r2
r1selector r2selector r1selectorid r2selectorid
TokenStyler1style r2style
r r SemanticTokenRule
r rselector rselectorid TokenStylerstyle
TokenStyle TokenClassificationString
Extensions
TokenClassificationContribution
onDidChangeSchema Event
id description superType deprecationMessage
id description
selectorString language TokenSelector
selector TokenSelector defaults TokenStyleDefaults
selector TokenSelector
id
id
TokenTypeOrModifierContribution
TokenTypeOrModifierContribution
SemanticTokenDefaultRule
IJSONSchema
_onDidChangeSchema
onDidChangeSchema Event _onDidChangeSchemaevent
currentTypeNumber
currentModifierBit
tokenTypeById key TokenTypeOrModifierContribution
tokenModifierById key TokenTypeOrModifierContribution
tokenStylingDefaultRules SemanticTokenDefaultRule
typeHierarchy id
tokenStylingSchema IJSONSchema properties IJSONSchemaMap patternProperties IJSONSchemaMap
type
properties
patternProperties
selectorPattern
additionalProperties
definitions
style
type
description nls
properties
foreground
type
description nls
format
background
type
deprecationMessage nls
fontStyle
type
description nls
pattern fontStylePattern
patternErrorMessage nls
defaultSnippets
label nls bodyText
body
body
body
body
body
body
body
body
body
body
body
body
body
body
body
bold
type
description nls
italic
type
description nls
underline
type
description nls
strikethrough
type
description nls
defaultSnippets body foreground fontStyle
tokenTypeById Object
tokenModifierById Object
typeHierarchy Object
id description superType deprecationMessage
idtypeAndModifierIdPattern
superType superTypetypeAndModifierIdPattern
num currentTypeNumber
tokenStyleContribution TokenTypeOrModifierContribution num id superType description deprecationMessage
tokenTypeByIdid tokenStyleContribution
stylingSchemeEntry description deprecationMessage
tokenStylingSchemapropertiesid stylingSchemeEntry
typeHierarchy Object
id description deprecationMessage
idtypeAndModifierIdPattern
num currentModifierBit
currentModifierBit currentModifierBit
tokenStyleContribution TokenTypeOrModifierContribution num id description deprecationMessage
tokenModifierByIdid tokenStyleContribution
tokenStylingSchemaproperties description deprecationMessage
selectorString language TokenSelector
selector selectorString language
selectortype
id
type modifiers language
score
selectorlanguage
selectorlanguage language
score
selectortype
hierarchy type
level hierarchyselectortype
level
score level
selectorModifier selectormodifiers
modifiersselectorModifier
score selectormodifierslength
id
selector TokenSelector defaults TokenStyleDefaults
tokenStylingDefaultRules selector defaults
selector TokenSelector
selectorString selectorid
tokenStylingDefaultRules tokenStylingDefaultRulesr rselectorid selectorString
id
tokenTypeByIdid
tokenStylingSchemapropertiesid
typeHierarchy Object
id
tokenModifierByIdid
tokenStylingSchemaproperties
TokenTypeOrModifierContribution
ObjecttokenTypeByIdid tokenTypeByIdid
TokenTypeOrModifierContribution
ObjecttokenModifierByIdid tokenModifierByIdid
IJSONSchema
tokenStylingSchema
SemanticTokenDefaultRule
tokenStylingDefaultRules
typeId
hierarchy typeHierarchytypeId
hierarchy
typeHierarchytypeId hierarchy typeId
type tokenTypeByIdtypeId
type typesuperType
hierarchytypesuperType
type tokenTypeByIdtypesuperType
hierarchy
override
a b
cat1 a
cat2 b
cat1 cat2
cat1 cat2
ab
ObjecttokenTypeByIdsorterk
s defaultLanguage type modifiers language
s defaultLanguage type modifiers language
s defaultLanguage type modifiers language
k slength
language defaultLanguage
modifiers
i k i i
ch si
ch ch
segment si k
k i
ch
language segment
modifierssegment
type s k
type modifiers language
tokenClassificationRegistry
platformRegistryExtensionsTokenClassificationContribution tokenClassificationRegistry
TokenClassificationRegistry
registry
id description scopesToProbe ProbeScope superType deprecationMessage
registryid description superType deprecationMessage
scopesToProbe
id scopesToProbe
id
selectorString scopesToProbe ProbeScope
selector registryselectorString
registryselector scopesToProbe
e
e
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
registry nls
registry nls
registry nls
registry nls
registry nls
registry nls
registry nls
registry nls
registry
ITokenClassificationRegistry
tokenClassificationRegistry
description deprecationMessage IJSONSchema
description
deprecationMessage
defaultSnippets body
anyOf
type
format
$ref
tokenStylingSchemaId
schemaRegistry platformRegistryJSONExtensionsJSONContribution
schemaRegistrytokenStylingSchemaId tokenClassificationRegistry
delayer schemaRegistrytokenStylingSchemaId
tokenClassificationRegistry
delayer
delayer
/**
* A TokenStyle Value is either a token style literal, or a TokenClassificationString
*/
export
type
TokenStyleValue
=
|
;
// TokenStyle registry
const
=
{
:
'base.contributions.tokenClassification'
}
;
export
interface
ITokenClassificationRegistry
{
readonly
:
<
void
>
;
/**
* Register a token type to the registry.
* @paramid The TokenType id as used in theme description files
* @paramdescription the description
*/
registerTokenType
(
:
string
,
:
string
,
?
:
string
,
?
:
string
)
:
void
;
/**
* Register a token modifier to the registry.
* @paramid The TokenModifier id as used in theme description files
* @paramdescription the description
*/
registerTokenModifier
(
:
string
,
:
string
)
:
void
;
/**
* Parses a token selector from a selector string.
* @paramselectorString selector string in the form (*|type)(.modifier)*
* @paramlanguage language to which the selector applies or undefined if the selector is for all languafe
* @returns the parsesd selector
* @throws an error if the string is not a valid selector
*/
parseTokenSelector
(
:
string
,
?
:
string
)
:
;
/**
* Register a TokenStyle default to the registry.
* @paramselector The rule selector
* @paramdefaults The default values
*/
registerTokenStyleDefault
(
:
,
:
)
:
void
;
/**
* Deregister a TokenStyle default to the registry.
* @paramselector The rule selector
*/
deregisterTokenStyleDefault
(
:
)
:
void
;
/**
* Deregister a TokenType from the registry.
*/
deregisterTokenType
(
:
string
)
:
void
;
/**
* Deregister a TokenModifier from the registry.
*/
deregisterTokenModifier
(
:
string
)
:
void
;
/**
* Get all TokenType contributions
*/
getTokenTypes
(
)
:
[
]
;
/**
* Get all TokenModifier contributions
*/
getTokenModifiers
(
)
:
[
]
;
/**
* The styling rules to used when a schema does not define any styling rules.
*/
getTokenStylingDefaultRules
(
)
:
[
]
;
/**
* JSON schema for an object to assign styling to token classifications
*/
getTokenStylingSchema
(
)
:
;
}
class
TokenClassificationRegistry
extends
Disposable
implements
ITokenClassificationRegistry
{
private
readonly
=
this
.
_register
(
new
Emitter<void>
(
)
)
;
readonly
:
<
void
>
=
this
.
.
;
private
=
0
;
private
=
1
;
private
:
{
[
:
string
]
:
}
;
private
:
{
[
:
string
]
:
}
;
private
:
[
]
=
[
]
;
private
:
{
[
:
string
]
:
string
[
]
}
;
private
:
&
{
:
;
:
}
=
{
:
'object'
,
:
{
}
,
:
{
[
]
:
getStylingSchemeEntry
(
)
}
,
//errorMessage: nls.localize('schema.token.errors', 'Valid token selectors have the form (*|tokenType)(.tokenModifier)*(:tokenLanguage)?.'),
:
false
,
:
{
:
{
:
'object'
,
:
.
localize
(
'schema.token.settings'
,
'Colors and styles for the token.'
)
,
:
{
:
{
:
'string'
,
:
.
localize
(
'schema.token.foreground'
,
'Foreground color for the token.'
)
,
:
'color-hex'
,
default
:
'#ff0000'
}
,
:
{
:
'string'
,
:
.
localize
(
'schema.token.background.warning'
,
'Token background colors are currently not supported.'
)
}
,
:
{
:
'string'
,
:
.
localize
(
'schema.token.fontStyle'
,
'Sets the all font styles of the rule: \'italic\', \'bold\', \'underline\' or \'strikethrough\' or a combination. All styles that are not listed are unset. The empty string unsets all styles.'
)
,
:
,
:
.
localize
(
'schema.fontStyle.error'
,
'Font style must be \'italic\', \'bold\', \'underline\' or \'strikethrough\' or a combination. The empty string unsets all styles.'
)
,
:
[
{
:
.
localize
(
'schema.token.fontStyle.none'
,
'None (clear inherited style)'
)
,
:
'""'
}
,
{
:
'italic'
}
,
{
:
'bold'
}
,
{
:
'underline'
}
,
{
:
'strikethrough'
}
,
{
:
'italic bold'
}
,
{
:
'italic underline'
}
,
{
:
'italic strikethrough'
}
,
{
:
'bold underline'
}
,
{
:
'bold strikethrough'
}
,
{
:
'underline strikethrough'
}
,
{
:
'italic bold underline'
}
,
{
:
'italic bold strikethrough'
}
,
{
:
'italic underline strikethrough'
}
,
{
:
'bold underline strikethrough'
}
,
{
:
'italic bold underline strikethrough'
}
]
}
,
:
{
:
'boolean'
,
:
.
localize
(
'schema.token.bold'
,
'Sets or unsets the font style to bold. Note, the presence of \'fontStyle\' overrides this setting.'
)
,
}
,
:
{
:
'boolean'
,
:
.
localize
(
'schema.token.italic'
,
'Sets or unsets the font style to italic. Note, the presence of \'fontStyle\' overrides this setting.'
)
,
}
,
:
{
:
'boolean'
,
:
.
localize
(
'schema.token.underline'
,
'Sets or unsets the font style to underline. Note, the presence of \'fontStyle\' overrides this setting.'
)
,
}
,
:
{
:
'boolean'
,
:
.
localize
(
'schema.token.strikethrough'
,
'Sets or unsets the font style to strikethrough. Note, the presence of \'fontStyle\' overrides this setting.'