ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / workbench / contrib / testing / browser / theme.ts 220 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
import { localize } from '../../../../nls.js' ;
import { activityErrorBadgeBackground, activityErrorBadgeForeground, badgeBackground, badgeForeground, chartsGreen, chartsRed, contrastBorder, diffInserted, diffRemoved, editorBackground, editorErrorForeground, editorForeground, editorInfoForeground, opaque, registerColor, transparent } from '../../../../platform/theme/common/colorRegistry.js' ;
import { listErrorForeground, listWarningForeground } from '../../../../platform/theme/common/colors/listColors.js' ;
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js' ;
import { TestResultState
testingColorIconFailed listErrorForeground
testingColorIconErrored listErrorForeground
testingColorIconPassed
dark
light
hcDark
hcLight
testingColorRunAction testingColorIconPassed
testingColorIconQueued listWarningForeground
testingColorIconUnset
testingColorIconSkipped
testingPeekBorder
dark editorErrorForeground
light editorErrorForeground
hcDark contrastBorder
hcLight contrastBorder
testingMessagePeekBorder
dark editorInfoForeground
light editorInfoForeground
hcDark contrastBorder
hcLight contrastBorder
testingPeekHeaderBackground
dark editorErrorForeground
light editorErrorForeground
hcDark
hcLight
testingPeekMessageHeaderBackground
dark editorInfoForeground
light editorInfoForeground
hcDark
hcLight
testingCoveredBackground
dark diffInserted
light diffInserted
hcDark
hcLight
testingCoveredBorder
dark testingCoveredBackground
light testingCoveredBackground
hcDark contrastBorder
hcLight contrastBorder
testingCoveredGutterBackground
dark diffInserted
light diffInserted
hcDark chartsGreen
hcLight chartsGreen
testingUncoveredBranchBackground
dark diffRemoved editorBackground
light diffRemoved editorBackground
hcDark
hcLight
testingUncoveredBackground
dark diffRemoved
light diffRemoved
hcDark
hcLight
testingUncoveredBorder
dark testingUncoveredBackground
light testingUncoveredBackground
hcDark contrastBorder
hcLight contrastBorder
testingUncoveredGutterBackground
dark diffRemoved
light diffRemoved
hcDark chartsRed
hcLight chartsRed
testingCoveredMinimapBackground
dark diffInserted
light diffInserted
hcDark chartsGreen
hcLight chartsGreen
testingUncoveredMinimapBackground
dark diffRemoved
light diffRemoved
hcDark chartsRed
hcLight chartsRed
testingCoverCountBadgeBackground badgeBackground
testingCoverCountBadgeForeground badgeForeground
messageBadgeBackground
activityErrorBadgeBackground
messageBadgeBackground
activityErrorBadgeForeground
editorForeground
testStatesToIconColors TestResultState
TestResultState Errored testingColorIconErrored
TestResultState Failed testingColorIconFailed
TestResultState Passed testingColorIconPassed
TestResultState Queued testingColorIconQueued
TestResultState Unset testingColorIconUnset
TestResultState Skipped testingColorIconSkipped
testingRetiredColorIconErrored testingColorIconErrored
testingRetiredColorIconFailed testingColorIconFailed
testingRetiredColorIconPassed testingColorIconPassed
testingRetiredColorIconQueued testingColorIconQueued
testingRetiredColorIconUnset testingColorIconUnset
testingRetiredColorIconSkipped testingColorIconSkipped
testStatesToRetiredIconColors TestResultState
TestResultState Errored testingRetiredColorIconErrored
TestResultState Failed testingRetiredColorIconFailed
TestResultState Passed testingRetiredColorIconPassed
TestResultState Queued testingRetiredColorIconQueued
TestResultState Unset testingRetiredColorIconUnset
TestResultState Skipped testingRetiredColorIconSkipped
theme collector
editorBg theme editorBackground
collector
editorBg
missBadgeBackground theme testingUncoveredBackground editorBg
errorBadgeBackground theme messageBadgeBackground editorBg
collector
}
from
'../common/testTypes.js'
;
export
const
=
registerColor
(
'testing.iconFailed'
,
,
localize
(
'testing.iconFailed'
,
"Color for the 'failed' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconErrored'
,
,
localize
(
'testing.iconErrored'
,
"Color for the 'Errored' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconPassed'
,
{
:
'#73c991'
,
:
'#73c991'
,
:
'#73c991'
,
:
'#007100'
}
,
localize
(
'testing.iconPassed'
,
"Color for the 'passed' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.runAction'
,
,
localize
(
'testing.runAction'
,
"Color for 'run' icons in the editor."
)
)
;
export
const
=
registerColor
(
'testing.iconQueued'
,
,
localize
(
'testing.iconQueued'
,
"Color for the 'Queued' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconUnset'
,
'#848484'
,
localize
(
'testing.iconUnset'
,
"Color for the 'Unset' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconSkipped'
,
'#848484'
,
localize
(
'testing.iconSkipped'
,
"Color for the 'Skipped' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.peekBorder'
,
{
:
,
:
,
:
,
:
}
,
localize
(
'testing.peekBorder'
,
'Color of the peek view borders and arrow.'
)
)
;
export
const
=
registerColor
(
'testing.messagePeekBorder'
,
{
:
,
:
,
:
,
:
}
,
localize
(
'testing.messagePeekBorder'
,
'Color of the peek view borders and arrow when peeking a logged message.'
)
)
;
export
const
=
registerColor
(
'testing.peekHeaderBackground'
,
{
:
transparent
(
,
0.1
)
,
:
transparent
(
,
0.1
)
,
:
null
,
:
null
}
,
localize
(
'testing.peekBorder'
,
'Color of the peek view borders and arrow.'
)
)
;
export
const
=
registerColor
(
'testing.messagePeekHeaderBackground'
,
{
:
transparent
(
,
0.1
)
,
:
transparent
(
,
0.1
)
,
:
null
,
:
null
}
,
localize
(
'testing.messagePeekHeaderBackground'
,
'Color of the peek view borders and arrow when peeking a logged message.'
)
)
;
export
const
=
registerColor
(
'testing.coveredBackground'
,
{
:
,
:
,
:
null
,
:
null
}
,
localize
(
'testing.coveredBackground'
,
'Background color of text that was covered.'
)
)
;
export
const
=
registerColor
(
'testing.coveredBorder'
,
{
:
transparent
(
,
0.75
)
,
:
transparent
(
,
0.75
)
,
:
,
:
}
,
localize
(
'testing.coveredBorder'
,
'Border color of text that was covered.'
)
)
;
export
const
=
registerColor
(
'testing.coveredGutterBackground'
,
{
:
transparent
(
,
0.6
)
,
:
transparent
(
,
0.6
)
,
:
,
:
}
,
localize
(
'testing.coveredGutterBackground'
,
'Gutter color of regions where code was covered.'
)
)
;
export
const
=
registerColor
(
'testing.uncoveredBranchBackground'
,
{
:
opaque
(
transparent
(
,
2
)
,
)
,
:
opaque
(
transparent
(
,
2
)
,
)
,
:
null
,
:
null
}
,
localize
(
'testing.uncoveredBranchBackground'
,
'Background of the widget shown for an uncovered branch.'
)
)
;
export
const
=
registerColor
(
'testing.uncoveredBackground'
,
{
:
,
:
,
:
null
,
:
null
}
,
localize
(
'testing.uncoveredBackground'
,
'Background color of text that was not covered.'
)
)
;
export
const
=
registerColor
(
'testing.uncoveredBorder'
,
{
:
transparent
(
,
0.75
)
,
:
transparent
(
,
0.75
)
,
:
,
:
}
,
localize
(
'testing.uncoveredBorder'
,
'Border color of text that was not covered.'
)
)
;
export
const
=
registerColor
(
'testing.uncoveredGutterBackground'
,
{
:
transparent
(
,
1.5
)
,
:
transparent
(
,
1.5
)
,
:
,
:
}
,
localize
(
'testing.uncoveredGutterBackground'
,
'Gutter color of regions where code not covered.'
)
)
;
export
const
=
registerColor
(
'testing.coveredMinimapBackground'
,
{
:
transparent
(
,
0.6
)
,
:
transparent
(
,
0.6
)
,
:
,
:
}
,
localize
(
'testing.coveredMinimapBackground'
,
'Minimap color of regions where code was covered.'
)
)
;
export
const
=
registerColor
(
'testing.uncoveredMinimapBackground'
,
{
:
transparent
(
,
1.5
)
,
:
transparent
(
,
1.5
)
,
:
,
:
}
,
localize
(
'testing.uncoveredMinimapBackground'
,
'Minimap color of regions where code was not covered.'
)
)
;
export
const
=
registerColor
(
'testing.coverCountBadgeBackground'
,
,
localize
(
'testing.coverCountBadgeBackground'
,
'Background for the badge indicating execution count'
)
)
;
export
const
=
registerColor
(
'testing.coverCountBadgeForeground'
,
,
localize
(
'testing.coverCountBadgeForeground'
,
'Foreground for the badge indicating execution count'
)
)
;
const
=
registerColor
(
'testing.message.error.badgeBackground'
,
,
localize
(
'testing.message.error.badgeBackground'
,
'Background color of test error messages shown inline in the editor.'
)
)
;
registerColor
(
'testing.message.error.badgeBorder'
,
,
localize
(
'testing.message.error.badgeBorder'
,
'Border color of test error messages shown inline in the editor.'
)
)
;
registerColor
(
'testing.message.error.badgeForeground'
,
,
localize
(
'testing.message.error.badgeForeground'
,
'Text color of test error messages shown inline in the editor.'
)
)
;
registerColor
(
'testing.message.error.lineBackground'
,
null
,
localize
(
'testing.message.error.marginBackground'
,
'Margin color beside error messages shown inline in the editor.'
)
)
;
registerColor
(
'testing.message.info.decorationForeground'
,
transparent
(
,
0.5
)
,
localize
(
'testing.message.info.decorationForeground'
,
'Text color of test info messages shown inline in the editor.'
)
)
;
registerColor
(
'testing.message.info.lineBackground'
,
null
,
localize
(
'testing.message.info.marginBackground'
,
'Margin color beside info messages shown inline in the editor.'
)
)
;
export
const
:
{
[
K
in
]
?
:
string
}
=
{
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
}
;
export
const
=
registerColor
(
'testing.iconErrored.retired'
,
transparent
(
,
0.7
)
,
localize
(
'testing.iconErrored.retired'
,
"Retired color for the 'Errored' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconFailed.retired'
,
transparent
(
,
0.7
)
,
localize
(
'testing.iconFailed.retired'
,
"Retired color for the 'failed' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconPassed.retired'
,
transparent
(
,
0.7
)
,
localize
(
'testing.iconPassed.retired'
,
"Retired color for the 'passed' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconQueued.retired'
,
transparent
(
,
0.7
)
,
localize
(
'testing.iconQueued.retired'
,
"Retired color for the 'Queued' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconUnset.retired'
,
transparent
(
,
0.7
)
,
localize
(
'testing.iconUnset.retired'
,
"Retired color for the 'Unset' icon in the test explorer."
)
)
;
export
const
=
registerColor
(
'testing.iconSkipped.retired'
,
transparent
(
,
0.7
)
,
localize
(
'testing.iconSkipped.retired'
,
"Retired color for the 'Skipped' icon in the test explorer."
)
)
;
export
const
:
{
[
K
in
]
?
:
string
}
=
{
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
[
.
]
:
,
}
;
registerThemingParticipant
(
(
,
)
=>
{
const
=
.
getColor
(
)
;
.
addRule
(
`
.coverage-deco-inline.coverage-deco-hit.coverage-deco-hovered {
background: ${ theme. getColor ( testingCoveredBackground) ?. transparent ( 1.3 ) } ;
outline-color: ${ theme. getColor ( testingCoveredBorder) ?. transparent ( 2 ) } ;
}
.coverage-deco-inline.coverage-deco-miss.coverage-deco-hovered {
background: ${ theme. getColor ( testingUncoveredBackground) ?. transparent ( 1.3 ) } ;
outline-color: ${ theme. getColor ( testingUncoveredBorder) ?. transparent ( 2 ) } ;
}
`
)
;
if
(
)
{
const
=
.
getColor
(
)
?.
transparent
(
2
)
.
makeOpaque
(
)
;
const
=
.
getColor
(
)
?.
makeOpaque
(
)
;
.
addRule
(
`
.coverage-deco-branch-miss-indicator::before {
border-color: ${ missBadgeBackground?. transparent ( 1.3 ) } ;
background-color: ${ missBadgeBackground} ;
}
.monaco-workbench .test-error-content-widget .inner{
background: ${ errorBadgeBackground} ;
}
.monaco-workbench .test-error-content-widget .inner .arrow svg {
fill: ${ errorBadgeBackground} ;
}
`
)
;
}
}
)
;