@vscode/markdown-editor 0.0.2-41 → 0.0.2-42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{config-Dvgk17FF.js → config-BGeaJqWk.js} +26 -22
- package/dist/config-BGeaJqWk.js.map +1 -0
- package/dist/config.js +1 -1
- package/dist/index.d.ts +231 -3
- package/dist/index.js +2657 -1515
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/contrib/find/find.css +347 -0
- package/src/view/editor.css +1 -0
- package/src/view/themes/default.css +1 -0
- package/src/view/themes/github.css +1 -0
- package/src/view/themes/vscode-default.css +26 -0
- package/src/view/themes/vscode-github.css +26 -0
- package/dist/config-Dvgk17FF.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/markdown-editor",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"src/view/themes/vscode-default.css",
|
|
34
34
|
"src/contrib/comments/comments.css",
|
|
35
35
|
"src/contrib/comments/commentInput.css",
|
|
36
|
-
"src/contrib/commentsVscode/vscodeCommentWidgetV2.css"
|
|
36
|
+
"src/contrib/commentsVscode/vscodeCommentWidgetV2.css",
|
|
37
|
+
"src/contrib/find/find.css"
|
|
37
38
|
],
|
|
38
39
|
"exports": {
|
|
39
40
|
".": {
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
.md-editor {
|
|
2
|
+
--md-find-widget-background: light-dark(#f3f3f3, #252526);
|
|
3
|
+
--md-find-widget-foreground: light-dark(#616161, #cccccc);
|
|
4
|
+
--md-find-widget-border: light-dark(#c8c8c8, #454545);
|
|
5
|
+
--md-find-widget-shadow: rgba(0, 0, 0, 0.24);
|
|
6
|
+
--md-find-input-background: light-dark(#ffffff, #313131);
|
|
7
|
+
--md-find-input-foreground: light-dark(#3b3b3b, #cccccc);
|
|
8
|
+
--md-find-placeholder-foreground: light-dark(#767676, #a6a6a6);
|
|
9
|
+
--md-find-input-caret: currentColor;
|
|
10
|
+
--md-find-input-border: light-dark(#cecece, #3c3c3c);
|
|
11
|
+
--md-find-count-foreground: light-dark(#616161, #cccccc);
|
|
12
|
+
--md-find-focus-border: light-dark(#0090f1, #007fd4);
|
|
13
|
+
--md-find-button-hover-background: light-dark(rgba(184, 184, 184, 0.31), rgba(90, 93, 94, 0.5));
|
|
14
|
+
--md-find-option-background: light-dark(rgba(0, 144, 241, 0.2), rgba(0, 127, 212, 0.4));
|
|
15
|
+
--md-find-option-border: light-dark(#007acc, #1c9cf0);
|
|
16
|
+
--md-find-option-foreground: light-dark(#000000, #ffffff);
|
|
17
|
+
--md-find-disabled-foreground: light-dark(#9d9d9d, rgba(204, 204, 204, 0.5));
|
|
18
|
+
--md-find-error-border: light-dark(#be1100, #be1100);
|
|
19
|
+
--md-find-error-foreground: light-dark(#a1260d, #f48771);
|
|
20
|
+
--md-find-editor-background: light-dark(#ffffff, #1e1e1e);
|
|
21
|
+
--md-find-match-background: rgba(234, 92, 0, 0.33);
|
|
22
|
+
--md-find-match-fill: color-mix(
|
|
23
|
+
in srgb,
|
|
24
|
+
var(--md-find-editor-background) 85%,
|
|
25
|
+
var(--md-find-match-background)
|
|
26
|
+
);
|
|
27
|
+
--md-find-match-border: color-mix(
|
|
28
|
+
in srgb,
|
|
29
|
+
var(--md-find-widget-foreground) 55%,
|
|
30
|
+
#ea5c00
|
|
31
|
+
);
|
|
32
|
+
--md-find-current-background: light-dark(#a8ac94, #515c6a);
|
|
33
|
+
--md-find-current-fill: color-mix(
|
|
34
|
+
in srgb,
|
|
35
|
+
var(--md-find-editor-background) 90%,
|
|
36
|
+
var(--md-find-current-background)
|
|
37
|
+
);
|
|
38
|
+
--md-find-current-border: color-mix(
|
|
39
|
+
in srgb,
|
|
40
|
+
var(--md-find-widget-foreground) 55%,
|
|
41
|
+
var(--md-find-current-background)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::highlight(md-editor-find-match) {
|
|
46
|
+
background-color: var(--md-find-match-fill);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
::highlight(md-editor-find-current) {
|
|
50
|
+
background-color: var(--md-find-current-fill);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.md-find-highlight-layer {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
overflow: visible;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.md-find-match-rect,
|
|
63
|
+
.md-find-current-rect {
|
|
64
|
+
position: absolute;
|
|
65
|
+
border-radius: 2px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.md-find-match-rect {
|
|
69
|
+
background: transparent;
|
|
70
|
+
outline: 1px solid var(--md-find-match-border);
|
|
71
|
+
outline-offset: -1px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.md-find-current-rect {
|
|
75
|
+
background: transparent;
|
|
76
|
+
outline: 2px solid var(--md-find-current-border);
|
|
77
|
+
outline-offset: -1px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.md-find-zero-width-rect.md-find-match-rect {
|
|
81
|
+
background: var(--md-find-match-fill);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.md-find-zero-width-rect.md-find-current-rect {
|
|
85
|
+
background: var(--md-find-current-fill);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.md-find-widget-host {
|
|
89
|
+
position: sticky;
|
|
90
|
+
top: 0;
|
|
91
|
+
z-index: 30;
|
|
92
|
+
display: flex;
|
|
93
|
+
height: 0;
|
|
94
|
+
justify-content: flex-end;
|
|
95
|
+
overflow: visible;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.md-find-widget-host[hidden] {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.md-editor.md-find-visible .md-find-widget-host {
|
|
104
|
+
height: auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.md-find-widget {
|
|
108
|
+
display: flex;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
width: min(420px, calc(100% - 8px));
|
|
111
|
+
margin: 4px 4px 0 0;
|
|
112
|
+
padding: 3px 4px;
|
|
113
|
+
align-self: flex-start;
|
|
114
|
+
flex: none;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
gap: 0;
|
|
117
|
+
color: var(--md-find-widget-foreground);
|
|
118
|
+
background: var(--md-find-widget-background);
|
|
119
|
+
border: 1px solid var(--md-find-widget-border);
|
|
120
|
+
border-radius: var(--vscode-cornerRadius-large, 8px);
|
|
121
|
+
box-shadow: 0 2px 8px var(--md-find-widget-shadow);
|
|
122
|
+
font: 13px/1.4 var(--vscode-font-family, system-ui, sans-serif);
|
|
123
|
+
pointer-events: auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.md-find-row {
|
|
127
|
+
display: flex;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: 2px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.md-find-input-shell {
|
|
134
|
+
display: flex;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
height: 26px;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
flex: 1 1 auto;
|
|
139
|
+
align-items: center;
|
|
140
|
+
color: var(--md-find-input-foreground);
|
|
141
|
+
background: var(--md-find-input-background);
|
|
142
|
+
border: 1px solid var(--md-find-input-border);
|
|
143
|
+
border-radius: var(--vscode-cornerRadius-small, 2px);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.md-find-input-shell:focus-within {
|
|
147
|
+
border-color: var(--md-find-focus-border);
|
|
148
|
+
outline: 1px solid var(--md-find-focus-border);
|
|
149
|
+
outline-offset: -1px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.md-find-input-shell.md-find-input-invalid {
|
|
153
|
+
border-color: var(--md-find-error-border);
|
|
154
|
+
outline-color: var(--md-find-error-border);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.md-find-input {
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
width: 100%;
|
|
160
|
+
min-width: 48px;
|
|
161
|
+
height: 24px;
|
|
162
|
+
min-height: 24px;
|
|
163
|
+
max-height: 80px;
|
|
164
|
+
margin: 0;
|
|
165
|
+
padding: 2px 4px;
|
|
166
|
+
flex: 1 1 auto;
|
|
167
|
+
resize: none;
|
|
168
|
+
overflow: auto;
|
|
169
|
+
color: inherit;
|
|
170
|
+
caret-color: var(--md-find-input-caret);
|
|
171
|
+
background: transparent;
|
|
172
|
+
border: 0;
|
|
173
|
+
border-radius: inherit;
|
|
174
|
+
outline: 0;
|
|
175
|
+
font: inherit;
|
|
176
|
+
line-height: 20px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.md-find-input:focus {
|
|
180
|
+
outline: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.md-find-input::placeholder {
|
|
184
|
+
color: var(--md-find-placeholder-foreground);
|
|
185
|
+
opacity: 1;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.md-find-input[aria-invalid='true'] {
|
|
189
|
+
outline: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.md-find-options {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex: 0 0 auto;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 0;
|
|
197
|
+
padding-right: 1px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.md-find-button {
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
width: 24px;
|
|
203
|
+
height: 24px;
|
|
204
|
+
padding: 0;
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
color: inherit;
|
|
208
|
+
background: transparent;
|
|
209
|
+
border: 1px solid transparent;
|
|
210
|
+
border-radius: var(--vscode-cornerRadius-small, 5px);
|
|
211
|
+
font: inherit;
|
|
212
|
+
flex: 0 0 24px;
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.md-find-button:hover:not(:disabled) {
|
|
217
|
+
background: var(--md-find-button-hover-background);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.md-find-button:focus-visible {
|
|
221
|
+
border-color: var(--md-find-focus-border);
|
|
222
|
+
outline: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.md-find-button:disabled {
|
|
226
|
+
color: var(--md-find-disabled-foreground);
|
|
227
|
+
cursor: default;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.md-find-option {
|
|
231
|
+
width: 24px;
|
|
232
|
+
font-size: 11px;
|
|
233
|
+
font-weight: 600;
|
|
234
|
+
letter-spacing: -0.04em;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.md-find-option-whole-word {
|
|
238
|
+
text-decoration: underline;
|
|
239
|
+
text-decoration-thickness: 1px;
|
|
240
|
+
text-underline-offset: 2px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.md-find-option-active {
|
|
244
|
+
color: var(--md-find-option-foreground);
|
|
245
|
+
background: var(--md-find-option-background);
|
|
246
|
+
border-color: var(--md-find-option-border);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.md-find-option-active:hover:not(:disabled) {
|
|
250
|
+
background: var(--md-find-option-background);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.md-find-count {
|
|
254
|
+
min-width: 54px;
|
|
255
|
+
padding-inline: 2px;
|
|
256
|
+
color: var(--md-find-count-foreground, inherit);
|
|
257
|
+
font-variant-numeric: tabular-nums;
|
|
258
|
+
line-height: 22px;
|
|
259
|
+
text-align: center;
|
|
260
|
+
white-space: nowrap;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.md-find-error {
|
|
264
|
+
padding: 2px 6px 3px;
|
|
265
|
+
color: var(--md-find-error-foreground);
|
|
266
|
+
font-size: 12px;
|
|
267
|
+
overflow-wrap: anywhere;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.md-find-no-results .md-find-count {
|
|
271
|
+
color: var(--md-find-error-foreground);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.md-editor.md-find-widget-focused .md-cursor {
|
|
275
|
+
visibility: hidden;
|
|
276
|
+
animation: none;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.md-find-has-current-match .md-selection-path {
|
|
280
|
+
fill: transparent;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.md-editor.md-find-visible .md-readonly-toggle-host {
|
|
284
|
+
visibility: hidden;
|
|
285
|
+
pointer-events: none;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.md-find-compact .md-find-widget {
|
|
289
|
+
width: calc(100% - 4px);
|
|
290
|
+
margin-right: 2px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.md-find-compact .md-find-row {
|
|
294
|
+
flex-wrap: wrap;
|
|
295
|
+
justify-content: flex-end;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.md-find-compact .md-find-input {
|
|
299
|
+
width: 100%;
|
|
300
|
+
min-width: 0;
|
|
301
|
+
flex: 1 1 100%;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.md-find-compact .md-find-count {
|
|
305
|
+
min-width: 40px;
|
|
306
|
+
margin-right: auto;
|
|
307
|
+
padding-inline: 0;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.md-find-compact .md-find-options {
|
|
311
|
+
display: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.md-find-compact .md-find-input-shell {
|
|
315
|
+
flex: 1 1 100%;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@media (forced-colors: active) {
|
|
319
|
+
::highlight(md-editor-find-match),
|
|
320
|
+
::highlight(md-editor-find-current) {
|
|
321
|
+
background-color: transparent;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.md-find-match-rect {
|
|
325
|
+
forced-color-adjust: none;
|
|
326
|
+
background: transparent;
|
|
327
|
+
outline: 1px solid Highlight;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.md-find-current-rect {
|
|
331
|
+
forced-color-adjust: none;
|
|
332
|
+
background: transparent;
|
|
333
|
+
opacity: 1;
|
|
334
|
+
outline: 2px solid Highlight;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.md-find-widget,
|
|
338
|
+
.md-find-input,
|
|
339
|
+
.md-find-button {
|
|
340
|
+
border-color: ButtonText;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.md-find-option-active {
|
|
344
|
+
color: HighlightText;
|
|
345
|
+
background: Highlight;
|
|
346
|
+
}
|
|
347
|
+
}
|
package/src/view/editor.css
CHANGED
|
@@ -51,6 +51,32 @@
|
|
|
51
51
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
52
52
|
--md-readonly-accent: var(--vscode-button-background, rgb(45, 92, 180));
|
|
53
53
|
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
54
|
+
--md-find-widget-background: var(--vscode-editorWidget-background, #f3f3f3);
|
|
55
|
+
--md-find-widget-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
56
|
+
--md-find-widget-border: var(--vscode-editorWidget-border, #c8c8c8);
|
|
57
|
+
--md-find-widget-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.2));
|
|
58
|
+
--md-find-input-background: var(--vscode-input-background, #fff);
|
|
59
|
+
--md-find-input-foreground: var(--vscode-input-foreground, #222);
|
|
60
|
+
--md-find-placeholder-foreground: var(--vscode-input-placeholderForeground, #767676);
|
|
61
|
+
--md-find-input-caret: var(--vscode-editorCursor-foreground, currentColor);
|
|
62
|
+
--md-find-input-border: var(--vscode-input-border, #cecece);
|
|
63
|
+
--md-find-count-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
64
|
+
--md-find-focus-border: var(--vscode-focusBorder, #007fd4);
|
|
65
|
+
--md-find-button-hover-background: var(--vscode-inputOption-hoverBackground, rgba(128, 128, 128, 0.18));
|
|
66
|
+
--md-find-disabled-foreground: var(--vscode-disabledForeground, rgba(97, 97, 97, 0.5));
|
|
67
|
+
--md-find-editor-background: var(--vscode-editor-background, #ffffff);
|
|
68
|
+
--md-find-match-background: var(--vscode-editor-findMatchHighlightBackground, rgba(234, 92, 0, 0.33));
|
|
69
|
+
--md-find-current-background: var(--vscode-editor-findMatchBackground, #a8ac94);
|
|
70
|
+
--md-find-current-border: var(--vscode-editor-findMatchBorder,
|
|
71
|
+
color-mix(in srgb, var(--vscode-editorWidget-foreground, #616161) 55%,
|
|
72
|
+
var(--vscode-editor-findMatchBackground, #a8ac94)));
|
|
73
|
+
--md-find-option-background: var(--vscode-inputOption-activeBackground, #007acc);
|
|
74
|
+
--md-find-option-border: color-mix(in srgb,
|
|
75
|
+
var(--vscode-focusBorder, #007acc) 70%,
|
|
76
|
+
var(--vscode-inputOption-activeForeground, #000000));
|
|
77
|
+
--md-find-option-foreground: var(--vscode-inputOption-activeForeground, #fff);
|
|
78
|
+
--md-find-error-border: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
79
|
+
--md-find-error-foreground: var(--vscode-errorForeground, #a1260d);
|
|
54
80
|
--md-separator-color: color-mix(in srgb,
|
|
55
81
|
var(--vscode-textSeparator-foreground, #d1d9e0) 60%, transparent);
|
|
56
82
|
--md-inline-code-background: color-mix(in srgb,
|
|
@@ -62,6 +62,32 @@
|
|
|
62
62
|
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
63
63
|
--md-inline-code-background: color-mix(in srgb,
|
|
64
64
|
var(--vscode-textPreformat-background, #818b981f) 60%, transparent);
|
|
65
|
+
--md-find-widget-background: var(--vscode-editorWidget-background, #f3f3f3);
|
|
66
|
+
--md-find-widget-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
67
|
+
--md-find-widget-border: var(--vscode-editorWidget-border, #c8c8c8);
|
|
68
|
+
--md-find-widget-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.2));
|
|
69
|
+
--md-find-input-background: var(--vscode-input-background, #fff);
|
|
70
|
+
--md-find-input-foreground: var(--vscode-input-foreground, #222);
|
|
71
|
+
--md-find-placeholder-foreground: var(--vscode-input-placeholderForeground, #767676);
|
|
72
|
+
--md-find-input-caret: var(--vscode-editorCursor-foreground, currentColor);
|
|
73
|
+
--md-find-input-border: var(--vscode-input-border, #cecece);
|
|
74
|
+
--md-find-count-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
75
|
+
--md-find-focus-border: var(--vscode-focusBorder, #007fd4);
|
|
76
|
+
--md-find-button-hover-background: var(--vscode-inputOption-hoverBackground, rgba(128, 128, 128, 0.18));
|
|
77
|
+
--md-find-disabled-foreground: var(--vscode-disabledForeground, rgba(97, 97, 97, 0.5));
|
|
78
|
+
--md-find-editor-background: var(--vscode-editor-background, #ffffff);
|
|
79
|
+
--md-find-match-background: var(--vscode-editor-findMatchHighlightBackground, rgba(234, 92, 0, 0.33));
|
|
80
|
+
--md-find-current-background: var(--vscode-editor-findMatchBackground, #a8ac94);
|
|
81
|
+
--md-find-current-border: var(--vscode-editor-findMatchBorder,
|
|
82
|
+
color-mix(in srgb, var(--vscode-editorWidget-foreground, #616161) 55%,
|
|
83
|
+
var(--vscode-editor-findMatchBackground, #a8ac94)));
|
|
84
|
+
--md-find-option-background: var(--vscode-inputOption-activeBackground, #007acc);
|
|
85
|
+
--md-find-option-border: color-mix(in srgb,
|
|
86
|
+
var(--vscode-focusBorder, #007acc) 70%,
|
|
87
|
+
var(--vscode-inputOption-activeForeground, #000000));
|
|
88
|
+
--md-find-option-foreground: var(--vscode-inputOption-activeForeground, #fff);
|
|
89
|
+
--md-find-error-border: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
90
|
+
--md-find-error-foreground: var(--vscode-errorForeground, #a1260d);
|
|
65
91
|
}
|
|
66
92
|
|
|
67
93
|
.vscode-high-contrast .md-editor.md-theme-vscode-github,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-Dvgk17FF.js","sources":["../src/core/wordUtils.ts"],"sourcesContent":["export const DEFAULT_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\\\|;:\\'\",.<>/?';\n\nexport interface WordNavigationConfig {\n\treadonly wordSeparators: string;\n\treadonly wordSegmenterLocales: readonly string[];\n}\n\nexport const DEFAULT_WORD_NAVIGATION_CONFIG: WordNavigationConfig = {\n\twordSeparators: DEFAULT_WORD_SEPARATORS,\n\twordSegmenterLocales: [],\n};\n\nconst enum WordCharacterClass {\n\tRegular,\n\tWhitespace,\n\tSeparator,\n}\n\nconst enum WordType {\n\tRegular,\n\tSeparator,\n}\n\ninterface WordSpan {\n\treadonly start: number;\n\treadonly end: number;\n\treadonly type: WordType;\n\treadonly nextClass: WordCharacterClass;\n}\n\ninterface IntlWordSpan {\n\treadonly index: number;\n\treadonly segment: string;\n}\n\nclass WordClassifier {\n\tprivate readonly _separators: ReadonlySet<string>;\n\tprivate readonly _segmenter: Intl.Segmenter | undefined;\n\tprivate _cachedLine: string | undefined;\n\tprivate _cachedWords: readonly IntlWordSpan[] = [];\n\n\tconstructor(config: WordNavigationConfig) {\n\t\tthis._separators = new Set(config.wordSeparators);\n\t\tthis._segmenter = createWordSegmenter(config.wordSegmenterLocales);\n\t}\n\n\tclassify(character: string | undefined): WordCharacterClass {\n\t\tif (character === undefined) {\n\t\t\treturn WordCharacterClass.Whitespace;\n\t\t}\n\t\tif (character === ' ' || character === '\\t') {\n\t\t\treturn WordCharacterClass.Whitespace;\n\t\t}\n\t\treturn this._separators.has(character)\n\t\t\t? WordCharacterClass.Separator\n\t\t\t: WordCharacterClass.Regular;\n\t}\n\n\tpreviousIntlWord(line: string, offset: number): IntlWordSpan | undefined {\n\t\tlet candidate: IntlWordSpan | undefined;\n\t\tfor (const word of this._intlWords(line)) {\n\t\t\tif (word.index > offset) { break; }\n\t\t\tcandidate = word;\n\t\t}\n\t\treturn candidate;\n\t}\n\n\tnextIntlWord(line: string, offset: number): IntlWordSpan | undefined {\n\t\treturn this._intlWords(line).find(word => word.index >= offset);\n\t}\n\n\tprivate _intlWords(line: string): readonly IntlWordSpan[] {\n\t\tif (!this._segmenter) { return []; }\n\t\tif (this._cachedLine === line) { return this._cachedWords; }\n\n\t\tconst words: IntlWordSpan[] = [];\n\t\tfor (const segment of this._segmenter.segment(line)) {\n\t\t\tif (segment.isWordLike) {\n\t\t\t\twords.push({ index: segment.index, segment: segment.segment });\n\t\t\t}\n\t\t}\n\t\tthis._cachedLine = line;\n\t\tthis._cachedWords = words;\n\t\treturn words;\n\t}\n}\n\nfunction createWordSegmenter(locales: readonly string[]): Intl.Segmenter | undefined {\n\tif (locales.length === 0) { return undefined; }\n\tconst supportedLocales: string[] = [];\n\tfor (const locale of locales as readonly unknown[]) {\n\t\tif (typeof locale !== 'string' || locale.length === 0) {\n\t\t\tconsole.warn('Ignoring invalid editor.wordSegmenterLocales entry', locale);\n\t\t\tcontinue;\n\t\t}\n\t\ttry {\n\t\t\tsupportedLocales.push(...Intl.Segmenter.supportedLocalesOf(locale));\n\t\t} catch (error) {\n\t\t\tconsole.warn(`Ignoring invalid editor.wordSegmenterLocales entry: ${locale}`, error);\n\t\t}\n\t}\n\tif (supportedLocales.length === 0) { return undefined; }\n\ttry {\n\t\treturn new Intl.Segmenter(supportedLocales, { granularity: 'word' });\n\t} catch (error) {\n\t\tconsole.warn(`Unable to initialize editor.wordSegmenterLocales: ${supportedLocales.join(', ')}`, error);\n\t\treturn undefined;\n\t}\n}\n\nconst classifierCache = new Map<string, WordClassifier>();\n\nfunction getClassifier(config: WordNavigationConfig): WordClassifier {\n\tconst key = `${config.wordSeparators}/${config.wordSegmenterLocales.join(',')}`;\n\tlet classifier = classifierCache.get(key);\n\tif (!classifier) {\n\t\tclassifier = new WordClassifier(config);\n\t\tclassifierCache.set(key, classifier);\n\t}\n\treturn classifier;\n}\n\nexport function findWordBoundaryLeft(\n\ttext: string,\n\toffset: number,\n\tconfig: WordNavigationConfig = DEFAULT_WORD_NAVIGATION_CONFIG,\n): number {\n\toffset = clamp(offset, 0, text.length);\n\tif (offset === 0) { return 0; }\n\n\tlet lineStart = text.lastIndexOf('\\n', offset - 1) + 1;\n\tlet lineEnd = text.indexOf('\\n', offset);\n\tif (lineEnd === -1) { lineEnd = text.length; }\n\tlet localOffset = offset - lineStart;\n\tif (localOffset === 0) {\n\t\tconst previousLineEnd = lineStart - 1;\n\t\tlineStart = previousLineEnd <= 0\n\t\t\t? 0\n\t\t\t: text.lastIndexOf('\\n', previousLineEnd - 1) + 1;\n\t\tlineEnd = previousLineEnd;\n\t\tlocalOffset = Math.max(0, previousLineEnd - lineStart);\n\t}\n\n\tconst line = text.slice(lineStart, lineEnd);\n\tconst classifier = getClassifier(config);\n\tlet previous = findPreviousWord(line, classifier, localOffset);\n\tif (\n\t\tprevious?.type === WordType.Separator\n\t\t&& previous.end - previous.start === 1\n\t\t&& previous.nextClass === WordCharacterClass.Regular\n\t) {\n\t\tprevious = findPreviousWord(line, classifier, previous.start);\n\t}\n\treturn lineStart + (previous?.start ?? 0);\n}\n\nexport function findWordBoundaryRight(\n\ttext: string,\n\toffset: number,\n\tconfig: WordNavigationConfig = DEFAULT_WORD_NAVIGATION_CONFIG,\n): number {\n\toffset = clamp(offset, 0, text.length);\n\tif (offset === text.length) { return text.length; }\n\n\tlet lineStart = text.lastIndexOf('\\n', offset - 1) + 1;\n\tlet lineEnd = text.indexOf('\\n', offset);\n\tif (lineEnd === -1) { lineEnd = text.length; }\n\tlet localOffset = offset - lineStart;\n\tif (offset === lineEnd && lineEnd < text.length) {\n\t\tlineStart = lineEnd + 1;\n\t\tlineEnd = text.indexOf('\\n', lineStart);\n\t\tif (lineEnd === -1) { lineEnd = text.length; }\n\t\tlocalOffset = 0;\n\t}\n\n\tconst line = text.slice(lineStart, lineEnd);\n\tconst classifier = getClassifier(config);\n\tlet next = findNextWord(line, classifier, localOffset);\n\tif (\n\t\tnext?.type === WordType.Separator\n\t\t&& next.end - next.start === 1\n\t\t&& next.nextClass === WordCharacterClass.Regular\n\t) {\n\t\tnext = findNextWord(line, classifier, next.end);\n\t}\n\treturn lineStart + (next?.end ?? line.length);\n}\n\nexport function findWordDeleteBoundaryLeft(\n\ttext: string,\n\toffset: number,\n\tconfig: WordNavigationConfig = DEFAULT_WORD_NAVIGATION_CONFIG,\n): number {\n\toffset = clamp(offset, 0, text.length);\n\tif (offset === 0) { return 0; }\n\n\tconst lineStart = offset === 0 ? 0 : text.lastIndexOf('\\n', offset - 1) + 1;\n\tconst localOffset = offset - lineStart;\n\tif (localOffset === 0) {\n\t\treturn offset - 1;\n\t}\n\n\tlet lastNonWhitespace = localOffset - 1;\n\twhile (\n\t\tlastNonWhitespace >= 0\n\t\t&& (text[lineStart + lastNonWhitespace] === ' ' || text[lineStart + lastNonWhitespace] === '\\t')\n\t) {\n\t\tlastNonWhitespace--;\n\t}\n\tif (lastNonWhitespace + 1 < localOffset - 1) {\n\t\treturn lineStart + lastNonWhitespace + 1;\n\t}\n\n\tlet lineEnd = text.indexOf('\\n', offset);\n\tif (lineEnd === -1) { lineEnd = text.length; }\n\tconst line = text.slice(lineStart, lineEnd);\n\tconst previous = findPreviousWord(line, getClassifier(config), localOffset);\n\treturn lineStart + (previous?.start ?? 0);\n}\n\nexport function findWordDeleteBoundaryRight(\n\ttext: string,\n\toffset: number,\n\tconfig: WordNavigationConfig = DEFAULT_WORD_NAVIGATION_CONFIG,\n): number {\n\toffset = clamp(offset, 0, text.length);\n\tif (offset === text.length) { return text.length; }\n\n\tconst lineStart = text.lastIndexOf('\\n', offset - 1) + 1;\n\tlet lineEnd = text.indexOf('\\n', offset);\n\tif (lineEnd === -1) { lineEnd = text.length; }\n\tconst localOffset = offset - lineStart;\n\tconst line = text.slice(lineStart, lineEnd);\n\n\tlet firstNonWhitespace = localOffset;\n\twhile (\n\t\tfirstNonWhitespace < line.length\n\t\t&& (line[firstNonWhitespace] === ' ' || line[firstNonWhitespace] === '\\t')\n\t) {\n\t\tfirstNonWhitespace++;\n\t}\n\tif (localOffset < firstNonWhitespace) {\n\t\treturn lineStart + firstNonWhitespace;\n\t}\n\n\tconst classifier = getClassifier(config);\n\tconst next = findNextWord(line, classifier, localOffset);\n\tif (next) {\n\t\treturn lineStart + next.end;\n\t}\n\tif (offset < lineEnd || lineEnd === text.length) {\n\t\treturn lineEnd;\n\t}\n\n\tconst nextLineStart = lineEnd + 1;\n\tlet nextLineEnd = text.indexOf('\\n', nextLineStart);\n\tif (nextLineEnd === -1) { nextLineEnd = text.length; }\n\tconst nextLine = text.slice(nextLineStart, nextLineEnd);\n\tconst nextLineWord = findNextWord(nextLine, classifier, 0);\n\treturn nextLineStart + (nextLineWord?.start ?? nextLine.length);\n}\n\nexport function findWordAt(\n\ttext: string,\n\toffset: number,\n\tconfig: WordNavigationConfig = DEFAULT_WORD_NAVIGATION_CONFIG,\n): { start: number; end: number } {\n\toffset = clamp(offset, 0, text.length);\n\tif (offset === text.length) {\n\t\treturn { start: offset, end: offset };\n\t}\n\n\tconst character = text[offset];\n\tif (/\\s/u.test(character)) {\n\t\tlet start = offset;\n\t\tlet end = offset + 1;\n\t\twhile (start > 0 && /\\s/u.test(text[start - 1])) { start--; }\n\t\twhile (end < text.length && /\\s/u.test(text[end])) { end++; }\n\t\treturn { start, end };\n\t}\n\n\tconst lineStart = text.lastIndexOf('\\n', offset - 1) + 1;\n\tlet lineEnd = text.indexOf('\\n', offset);\n\tif (lineEnd === -1) { lineEnd = text.length; }\n\tconst line = text.slice(lineStart, lineEnd);\n\tconst localOffset = offset - lineStart;\n\tconst classifier = getClassifier(config);\n\n\tconst intlWord = classifier.previousIntlWord(line, localOffset);\n\tif (intlWord && localOffset < intlWord.index + intlWord.segment.length) {\n\t\treturn {\n\t\t\tstart: lineStart + intlWord.index,\n\t\t\tend: lineStart + intlWord.index + intlWord.segment.length,\n\t\t};\n\t}\n\n\tconst characterClass = classifier.classify(character);\n\tlet start = localOffset;\n\tlet end = localOffset + 1;\n\twhile (start > 0 && classifier.classify(line[start - 1]) === characterClass) { start--; }\n\twhile (end < line.length && classifier.classify(line[end]) === characterClass) { end++; }\n\treturn { start: lineStart + start, end: lineStart + end };\n}\n\nfunction findPreviousWord(line: string, classifier: WordClassifier, offset: number): WordSpan | undefined {\n\tlet type: WordType | undefined;\n\tconst previousIntlWord = classifier.previousIntlWord(line, offset - 1);\n\n\tfor (let index = offset - 1; index >= 0; index--) {\n\t\tconst characterClass = classifier.classify(line[index]);\n\t\tif (previousIntlWord && index === previousIntlWord.index) {\n\t\t\treturn {\n\t\t\t\tstart: previousIntlWord.index,\n\t\t\t\tend: previousIntlWord.index + previousIntlWord.segment.length,\n\t\t\t\ttype: WordType.Regular,\n\t\t\t\tnextClass: characterClass,\n\t\t\t};\n\t\t}\n\n\t\tif (characterClass === WordCharacterClass.Regular) {\n\t\t\tif (type === WordType.Separator) {\n\t\t\t\tconst start = index + 1;\n\t\t\t\treturn { start, end: findWordEnd(line, classifier, type, start), type, nextClass: characterClass };\n\t\t\t}\n\t\t\ttype = WordType.Regular;\n\t\t} else if (characterClass === WordCharacterClass.Separator) {\n\t\t\tif (type === WordType.Regular) {\n\t\t\t\tconst start = index + 1;\n\t\t\t\treturn { start, end: findWordEnd(line, classifier, type, start), type, nextClass: characterClass };\n\t\t\t}\n\t\t\ttype = WordType.Separator;\n\t\t} else if (type !== undefined) {\n\t\t\tconst start = index + 1;\n\t\t\treturn { start, end: findWordEnd(line, classifier, type, start), type, nextClass: characterClass };\n\t\t}\n\t}\n\n\treturn type === undefined\n\t\t? undefined\n\t\t: { start: 0, end: findWordEnd(line, classifier, type, 0), type, nextClass: WordCharacterClass.Whitespace };\n}\n\nfunction findNextWord(line: string, classifier: WordClassifier, offset: number): WordSpan | undefined {\n\tlet type: WordType | undefined;\n\tconst nextIntlWord = classifier.nextIntlWord(line, offset);\n\n\tfor (let index = offset; index < line.length; index++) {\n\t\tconst characterClass = classifier.classify(line[index]);\n\t\tif (nextIntlWord && index === nextIntlWord.index) {\n\t\t\treturn {\n\t\t\t\tstart: nextIntlWord.index,\n\t\t\t\tend: nextIntlWord.index + nextIntlWord.segment.length,\n\t\t\t\ttype: WordType.Regular,\n\t\t\t\tnextClass: characterClass,\n\t\t\t};\n\t\t}\n\n\t\tif (characterClass === WordCharacterClass.Regular) {\n\t\t\tif (type === WordType.Separator) {\n\t\t\t\tconst end = index;\n\t\t\t\treturn { start: findWordStart(line, classifier, type, end - 1), end, type, nextClass: characterClass };\n\t\t\t}\n\t\t\ttype = WordType.Regular;\n\t\t} else if (characterClass === WordCharacterClass.Separator) {\n\t\t\tif (type === WordType.Regular) {\n\t\t\t\tconst end = index;\n\t\t\t\treturn { start: findWordStart(line, classifier, type, end - 1), end, type, nextClass: characterClass };\n\t\t\t}\n\t\t\ttype = WordType.Separator;\n\t\t} else if (type !== undefined) {\n\t\t\tconst end = index;\n\t\t\treturn { start: findWordStart(line, classifier, type, end - 1), end, type, nextClass: characterClass };\n\t\t}\n\t}\n\n\treturn type === undefined\n\t\t? undefined\n\t\t: {\n\t\t\tstart: findWordStart(line, classifier, type, line.length - 1),\n\t\t\tend: line.length,\n\t\t\ttype,\n\t\t\tnextClass: WordCharacterClass.Whitespace,\n\t\t};\n}\n\nfunction findWordEnd(line: string, classifier: WordClassifier, type: WordType, start: number): number {\n\tconst nextIntlWord = classifier.nextIntlWord(line, start);\n\tfor (let index = start; index < line.length; index++) {\n\t\tif (nextIntlWord && index === nextIntlWord.index + nextIntlWord.segment.length) {\n\t\t\treturn index;\n\t\t}\n\t\tconst characterClass = classifier.classify(line[index]);\n\t\tif (\n\t\t\tcharacterClass === WordCharacterClass.Whitespace\n\t\t\t|| (type === WordType.Regular && characterClass === WordCharacterClass.Separator)\n\t\t\t|| (type === WordType.Separator && characterClass === WordCharacterClass.Regular)\n\t\t) {\n\t\t\treturn index;\n\t\t}\n\t}\n\treturn line.length;\n}\n\nfunction findWordStart(line: string, classifier: WordClassifier, type: WordType, start: number): number {\n\tconst previousIntlWord = classifier.previousIntlWord(line, start);\n\tfor (let index = start; index >= 0; index--) {\n\t\tif (previousIntlWord && index === previousIntlWord.index) {\n\t\t\treturn index;\n\t\t}\n\t\tconst characterClass = classifier.classify(line[index]);\n\t\tif (\n\t\t\tcharacterClass === WordCharacterClass.Whitespace\n\t\t\t|| (type === WordType.Regular && characterClass === WordCharacterClass.Separator)\n\t\t\t|| (type === WordType.Separator && characterClass === WordCharacterClass.Regular)\n\t\t) {\n\t\t\treturn index + 1;\n\t\t}\n\t}\n\treturn 0;\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n\treturn Math.min(Math.max(value, min), max);\n}\n"],"names":["DEFAULT_WORD_SEPARATORS","DEFAULT_WORD_NAVIGATION_CONFIG","WordClassifier","config","createWordSegmenter","character","line","offset","candidate","word","words","segment","locales","supportedLocales","locale","error","classifierCache","getClassifier","key","classifier","findWordBoundaryLeft","text","clamp","lineStart","lineEnd","localOffset","previousLineEnd","previous","findPreviousWord","findWordBoundaryRight","next","findNextWord","findWordDeleteBoundaryLeft","lastNonWhitespace","findWordDeleteBoundaryRight","firstNonWhitespace","nextLineStart","nextLineEnd","nextLine","nextLineWord","findWordAt","start","end","intlWord","characterClass","type","previousIntlWord","index","findWordEnd","nextIntlWord","findWordStart","value","min","max"],"mappings":"AAAO,MAAMA,IAA0B,qCAO1BC,IAAuD;AAAA,EACnE,gBAAgBD;AAAA,EAChB,sBAAsB,CAAA;AACvB;AAyBA,MAAME,EAAe;AAAA,EACH;AAAA,EACA;AAAA,EACT;AAAA,EACA,eAAwC,CAAA;AAAA,EAEhD,YAAYC,GAA8B;AACzC,SAAK,cAAc,IAAI,I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