@vscode/markdown-editor 0.0.2-13 → 0.0.2-131
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/README.md +659 -0
- package/dist/commands.d.ts +67 -0
- package/dist/commands.js +185 -0
- package/dist/commands.js.map +1 -0
- package/dist/config-BGeaJqWk.js +286 -0
- package/dist/config-BGeaJqWk.js.map +1 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +6 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +1611 -270
- package/dist/index.js +7839 -3291
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.css +1 -1
- package/dist/scrolling-C4GW1cCQ.js +391 -0
- package/dist/scrolling-C4GW1cCQ.js.map +1 -0
- package/dist/web-editors.d.ts +354 -0
- package/dist/web-editors.js +7528 -0
- package/dist/web-editors.js.map +1 -0
- package/package.json +59 -19
- package/src/contrib/comments/commentInput.css +38 -80
- package/src/contrib/comments/commentWidget.css +60 -0
- package/src/contrib/find/find.css +347 -0
- package/src/contrib/rename/rename.css +73 -0
- package/src/contrib/suggest/suggest.css +109 -0
- package/src/view/editor.css +1702 -111
- package/src/view/themes/default.css +21 -4
- package/src/view/themes/github.css +25 -13
- package/src/view/themes/vscode-default.css +98 -23
- package/src/view/themes/vscode-github.css +84 -15
- package/dist/_observables/assert.d.ts +0 -2
- package/dist/_observables/deps.d.ts +0 -28
- package/dist/_observables/disposables.d.ts +0 -19
- package/dist/_observables/equals.d.ts +0 -32
- package/dist/_observables/index.d.ts +0 -2
- package/dist/_observables/observableInternal/base.d.ts +0 -172
- package/dist/_observables/observableInternal/changeTracker.d.ts +0 -44
- package/dist/_observables/observableInternal/commonFacade/cancellation.d.ts +0 -24
- package/dist/_observables/observableInternal/commonFacade/deps.d.ts +0 -24
- package/dist/_observables/observableInternal/debugLocation.d.ts +0 -21
- package/dist/_observables/observableInternal/debugName.d.ts +0 -33
- package/dist/_observables/observableInternal/experimental/deferUnobserve.d.ts +0 -16
- package/dist/_observables/observableInternal/experimental/reducer.d.ts +0 -37
- package/dist/_observables/observableInternal/experimental/utils.d.ts +0 -15
- package/dist/_observables/observableInternal/index.d.ts +0 -25
- package/dist/_observables/observableInternal/logging/consoleObservableLogger.d.ts +0 -40
- package/dist/_observables/observableInternal/logging/debugGetDependencyGraph.d.ts +0 -4
- package/dist/_observables/observableInternal/logging/debugger/debuggerRpc.d.ts +0 -4
- package/dist/_observables/observableInternal/logging/debugger/devToolsLogger.d.ts +0 -43
- package/dist/_observables/observableInternal/logging/debugger/rpc.d.ts +0 -41
- package/dist/_observables/observableInternal/logging/debugger/utils.d.ts +0 -13
- package/dist/_observables/observableInternal/logging/logging.d.ts +0 -30
- package/dist/_observables/observableInternal/map.d.ts +0 -18
- package/dist/_observables/observableInternal/observables/baseObservable.d.ts +0 -58
- package/dist/_observables/observableInternal/observables/constObservable.d.ts +0 -5
- package/dist/_observables/observableInternal/observables/derived.d.ts +0 -46
- package/dist/_observables/observableInternal/observables/derivedImpl.d.ts +0 -83
- package/dist/_observables/observableInternal/observables/lazyObservableValue.d.ts +0 -27
- package/dist/_observables/observableInternal/observables/observableFromEvent.d.ts +0 -37
- package/dist/_observables/observableInternal/observables/observableSignal.d.ts +0 -11
- package/dist/_observables/observableInternal/observables/observableSignalFromEvent.d.ts +0 -5
- package/dist/_observables/observableInternal/observables/observableValue.d.ts +0 -37
- package/dist/_observables/observableInternal/observables/observableValueOpts.d.ts +0 -8
- package/dist/_observables/observableInternal/reactions/autorun.d.ts +0 -56
- package/dist/_observables/observableInternal/reactions/autorunImpl.d.ts +0 -53
- package/dist/_observables/observableInternal/set.d.ts +0 -17
- package/dist/_observables/observableInternal/transaction.d.ts +0 -27
- package/dist/_observables/observableInternal/utils/promise.d.ts +0 -75
- package/dist/_observables/observableInternal/utils/runOnChange.d.ts +0 -7
- package/dist/_observables/observableInternal/utils/utils.d.ts +0 -43
- package/dist/_observables/observableInternal/utils/utilsCancellation.d.ts +0 -10
- package/dist/_observables/observableInternal/utils/valueWithChangeEvent.d.ts +0 -10
- package/dist/_observables/utils.d.ts +0 -15
- package/dist/observables.d.ts +0 -4
- package/dist/observables.js +0 -439
- package/dist/observables.js.map +0 -1
- package/dist/runOnChange-C00UIwqQ.js +0 -1538
- package/dist/runOnChange-C00UIwqQ.js.map +0 -1
- package/src/contrib/comments/comments.css +0 -129
- package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +0 -166
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
.md-editor.md-theme-default {
|
|
15
|
+
color-scheme: light;
|
|
15
16
|
font-family: system-ui, -apple-system, sans-serif;
|
|
16
17
|
font-size: 16px;
|
|
17
18
|
line-height: 1.6;
|
|
@@ -26,13 +27,21 @@
|
|
|
26
27
|
margin: 0.5em 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
.md-theme-default .md-code-block-container {
|
|
31
|
+
margin: 0.5em 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
29
34
|
.md-theme-default .md-code-block {
|
|
30
35
|
background: #f4f4f4;
|
|
31
36
|
border-radius: 4px;
|
|
32
|
-
padding: 12px
|
|
37
|
+
padding: 8px 12px;
|
|
33
38
|
margin: 0.5em 0;
|
|
34
39
|
}
|
|
35
40
|
|
|
41
|
+
.md-theme-default .md-code-block-container > .md-code-block {
|
|
42
|
+
margin: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
36
45
|
.md-theme-default .md-code-block code {
|
|
37
46
|
font-family: 'Cascadia Code', 'Fira Code', monospace;
|
|
38
47
|
font-size: 14px;
|
|
@@ -121,9 +130,14 @@
|
|
|
121
130
|
--md-list-indent-step: 24px;
|
|
122
131
|
}
|
|
123
132
|
|
|
133
|
+
.md-theme-default .md-table-wrapper {
|
|
134
|
+
/* Block spacing lives on the wrapper (the scroll/BFC box) so it collapses
|
|
135
|
+
with siblings as before; the inner table has no margin of its own. */
|
|
136
|
+
margin: 0.5em 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
124
139
|
.md-theme-default .md-table {
|
|
125
140
|
border-collapse: collapse;
|
|
126
|
-
margin: 0.5em 0;
|
|
127
141
|
width: auto;
|
|
128
142
|
}
|
|
129
143
|
|
|
@@ -201,6 +215,9 @@
|
|
|
201
215
|
* box) so the right outline is a straight line. Absolute removes it from flow,
|
|
202
216
|
* but it is the trailing node so no text shifts; the leading pipe still fixes
|
|
203
217
|
* first-text X and the row stays one line tall, keeping the compare invariants.
|
|
218
|
+
* `top: auto` keeps the pipe on the content line (the shared editor.css rule
|
|
219
|
+
* also takes trailing glue out of flow); the previous `top: 0` floated it to
|
|
220
|
+
* the cell's top edge, misaligning it with the leading pipes on wrapping rows.
|
|
204
221
|
*/
|
|
205
222
|
.md-theme-default .md-table.md-block-active td:last-child {
|
|
206
223
|
position: relative;
|
|
@@ -209,7 +226,7 @@
|
|
|
209
226
|
.md-theme-default .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
|
|
210
227
|
position: absolute;
|
|
211
228
|
right: 0;
|
|
212
|
-
top:
|
|
229
|
+
top: auto;
|
|
213
230
|
}
|
|
214
231
|
|
|
215
232
|
/*
|
|
@@ -220,7 +237,7 @@
|
|
|
220
237
|
.md-theme-default .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
|
|
221
238
|
position: absolute;
|
|
222
239
|
right: 0;
|
|
223
|
-
top:
|
|
240
|
+
top: auto;
|
|
224
241
|
}
|
|
225
242
|
|
|
226
243
|
.md-theme-default code {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
.md-editor.github-markdown-theme {
|
|
17
|
+
color-scheme: light;
|
|
17
18
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans',
|
|
18
19
|
Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
19
20
|
font-size: 16px;
|
|
@@ -66,14 +67,8 @@
|
|
|
66
67
|
.github-markdown-theme .md-blockquote {
|
|
67
68
|
margin: 0 0 16px 0;
|
|
68
69
|
padding: 0 1em;
|
|
69
|
-
/*
|
|
70
|
-
|
|
71
|
-
* the 16px blockquote font). Must be an absolute length, not `1em`: the
|
|
72
|
-
* marker positions itself with this var inside its own (smaller, 0.85em)
|
|
73
|
-
* font context, so an `em` value would resolve against the marker's
|
|
74
|
-
* font-size and pull the `>` ~2px out of alignment with the text.
|
|
75
|
-
*/
|
|
76
|
-
--md-blockquote-pad: 16px;
|
|
70
|
+
/* Matches padding-left; `em` is safe because shared marker geometry inherits font size. */
|
|
71
|
+
--md-blockquote-pad: 1em;
|
|
77
72
|
color: #59636e;
|
|
78
73
|
border-left: 0.25em solid #d1d9e0;
|
|
79
74
|
}
|
|
@@ -117,16 +112,25 @@
|
|
|
117
112
|
}
|
|
118
113
|
|
|
119
114
|
/* Fenced code block. */
|
|
115
|
+
.github-markdown-theme .md-code-block-container {
|
|
116
|
+
margin-top: 0;
|
|
117
|
+
margin-bottom: 16px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
120
|
.github-markdown-theme .md-code-block {
|
|
121
121
|
margin-top: 0;
|
|
122
122
|
margin-bottom: 16px;
|
|
123
|
-
padding:
|
|
123
|
+
padding: 8px 12px;
|
|
124
124
|
font-size: 85%;
|
|
125
125
|
line-height: 1.45;
|
|
126
126
|
background-color: #f6f8fa;
|
|
127
127
|
border-radius: 6px;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
.github-markdown-theme .md-code-block-container > .md-code-block {
|
|
131
|
+
margin: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
130
134
|
.github-markdown-theme .md-code-block code {
|
|
131
135
|
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
|
|
132
136
|
'Liberation Mono', monospace;
|
|
@@ -197,10 +201,15 @@
|
|
|
197
201
|
line-height: 1;
|
|
198
202
|
}
|
|
199
203
|
|
|
200
|
-
.github-markdown-theme .md-table {
|
|
201
|
-
|
|
204
|
+
.github-markdown-theme .md-table-wrapper {
|
|
205
|
+
/* Block spacing lives on the wrapper (the scroll/BFC box) so it collapses
|
|
206
|
+
with siblings as before; the inner table has no margin of its own. */
|
|
202
207
|
margin-top: 0;
|
|
203
208
|
margin-bottom: 16px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.github-markdown-theme .md-table {
|
|
212
|
+
border-collapse: collapse;
|
|
204
213
|
width: auto;
|
|
205
214
|
}
|
|
206
215
|
|
|
@@ -280,6 +289,9 @@
|
|
|
280
289
|
* box) so the right outline is a straight line. Absolute removes it from flow,
|
|
281
290
|
* but it is the trailing node so no text shifts; the leading pipe still fixes
|
|
282
291
|
* first-text X and the row stays one line tall, keeping the compare invariants.
|
|
292
|
+
* `top: auto` keeps the pipe on the content line (the shared editor.css rule
|
|
293
|
+
* also takes trailing glue out of flow); the previous `top: 0` floated it to
|
|
294
|
+
* the cell's top edge, misaligning it with the leading pipes on wrapping rows.
|
|
283
295
|
*/
|
|
284
296
|
.github-markdown-theme .md-table.md-block-active td:last-child {
|
|
285
297
|
position: relative;
|
|
@@ -288,7 +300,7 @@
|
|
|
288
300
|
.github-markdown-theme .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
|
|
289
301
|
position: absolute;
|
|
290
302
|
right: 0;
|
|
291
|
-
top:
|
|
303
|
+
top: auto;
|
|
292
304
|
}
|
|
293
305
|
|
|
294
306
|
/*
|
|
@@ -299,5 +311,5 @@
|
|
|
299
311
|
.github-markdown-theme .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
|
|
300
312
|
position: absolute;
|
|
301
313
|
right: 0;
|
|
302
|
-
top:
|
|
314
|
+
top: auto;
|
|
303
315
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* (`markdown-language-features/media/markdown.css`): a 14px base with a 22px
|
|
7
7
|
* line box, headings underlined with a 1px rule, a 5px blockquote bar, and
|
|
8
8
|
* code blocks framed by a 1px border on the editor's code-block background.
|
|
9
|
+
* Its heading scale is moderately reduced to better fit narrower editor panes.
|
|
9
10
|
* The sibling `vscode-github.css` (`md-theme-vscode-github`) instead mirrors
|
|
10
11
|
* GitHub's layout (16px base, badge-style inline code, zebra tables).
|
|
11
12
|
*
|
|
@@ -30,6 +31,11 @@
|
|
|
30
31
|
*/
|
|
31
32
|
|
|
32
33
|
.md-editor.md-theme-vscode-default {
|
|
34
|
+
--md-iframe-background: var(--vscode-editor-background, #fff);
|
|
35
|
+
--md-iframe-foreground: var(--vscode-descriptionForeground, #616161);
|
|
36
|
+
--md-iframe-border: var(--vscode-editorWidget-border, var(--vscode-widget-border, #e5e5e5));
|
|
37
|
+
--md-iframe-hover-background: var(--vscode-toolbar-hoverBackground, rgba(128, 128, 128, 0.12));
|
|
38
|
+
--md-iframe-focus-border: var(--vscode-focusBorder, #007acc);
|
|
33
39
|
font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
|
|
34
40
|
'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif);
|
|
35
41
|
font-size: var(--markdown-font-size, 14px);
|
|
@@ -48,6 +54,62 @@
|
|
|
48
54
|
* stays visible on dark color themes.
|
|
49
55
|
*/
|
|
50
56
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
57
|
+
--md-whitespace-foreground: var(--vscode-editorWhitespace-foreground, #b0b0b0);
|
|
58
|
+
--md-html-comment-foreground: var(--vscode-descriptionForeground, #616161);
|
|
59
|
+
--md-html-comment-hover-foreground: var(--vscode-editor-foreground, #1f2328);
|
|
60
|
+
--md-html-comment-font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
61
|
+
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
62
|
+
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
63
|
+
var(--vscode-editorWidget-background, #f3f3f3));
|
|
64
|
+
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|
|
65
|
+
var(--vscode-button-secondaryBackground,
|
|
66
|
+
var(--vscode-editorWidget-background, #e9e9e9)));
|
|
67
|
+
--md-readonly-foreground: var(--vscode-button-secondaryForeground,
|
|
68
|
+
var(--vscode-editorWidget-foreground, #444));
|
|
69
|
+
--md-readonly-border: var(--vscode-button-secondaryBorder,
|
|
70
|
+
var(--vscode-button-border,
|
|
71
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #b8b8b8))));
|
|
72
|
+
--md-readonly-border-hover: var(--vscode-button-secondaryBorder,
|
|
73
|
+
var(--vscode-button-border,
|
|
74
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #8d8d8d))));
|
|
75
|
+
--md-readonly-accent: var(--vscode-button-background, rgb(45, 92, 180));
|
|
76
|
+
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
77
|
+
--md-find-widget-background: var(--vscode-editorWidget-background, #f3f3f3);
|
|
78
|
+
--md-find-widget-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
79
|
+
--md-find-widget-border: var(--vscode-editorWidget-border, #c8c8c8);
|
|
80
|
+
--md-find-widget-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.2));
|
|
81
|
+
--md-find-input-background: var(--vscode-input-background, #fff);
|
|
82
|
+
--md-find-input-foreground: var(--vscode-input-foreground, #222);
|
|
83
|
+
--md-find-placeholder-foreground: var(--vscode-input-placeholderForeground, #767676);
|
|
84
|
+
--md-find-input-caret: var(--vscode-editorCursor-foreground, currentColor);
|
|
85
|
+
--md-find-input-border: var(--vscode-input-border, #cecece);
|
|
86
|
+
--md-find-count-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
87
|
+
--md-find-focus-border: var(--vscode-focusBorder, #007fd4);
|
|
88
|
+
--md-find-button-hover-background: var(--vscode-inputOption-hoverBackground, rgba(128, 128, 128, 0.18));
|
|
89
|
+
--md-find-disabled-foreground: var(--vscode-disabledForeground, rgba(97, 97, 97, 0.5));
|
|
90
|
+
--md-find-editor-background: var(--vscode-editor-background, #ffffff);
|
|
91
|
+
--md-find-match-background: var(--vscode-editor-findMatchHighlightBackground, rgba(234, 92, 0, 0.33));
|
|
92
|
+
--md-find-current-background: var(--vscode-editor-findMatchBackground, #a8ac94);
|
|
93
|
+
--md-find-current-border: var(--vscode-editor-findMatchBorder,
|
|
94
|
+
color-mix(in srgb, var(--vscode-editorWidget-foreground, #616161) 55%,
|
|
95
|
+
var(--vscode-editor-findMatchBackground, #a8ac94)));
|
|
96
|
+
--md-find-option-background: var(--vscode-inputOption-activeBackground, #007acc);
|
|
97
|
+
--md-find-option-border: color-mix(in srgb,
|
|
98
|
+
var(--vscode-focusBorder, #007acc) 70%,
|
|
99
|
+
var(--vscode-inputOption-activeForeground, #000000));
|
|
100
|
+
--md-find-option-foreground: var(--vscode-inputOption-activeForeground, #fff);
|
|
101
|
+
--md-find-error-border: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
102
|
+
--md-find-error-foreground: var(--vscode-errorForeground, #a1260d);
|
|
103
|
+
--md-separator-color: color-mix(in srgb,
|
|
104
|
+
var(--vscode-textSeparator-foreground, #d1d9e0) 60%, transparent);
|
|
105
|
+
--md-inline-code-background: color-mix(in srgb,
|
|
106
|
+
var(--vscode-textPreformat-background, #818b981f) 60%, transparent);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.vscode-high-contrast .md-editor.md-theme-vscode-default,
|
|
110
|
+
.vscode-high-contrast-light .md-editor.md-theme-vscode-default {
|
|
111
|
+
--md-separator-color: var(--vscode-textSeparator-foreground, currentColor);
|
|
112
|
+
--md-inline-code-background: var(--vscode-textPreformat-background, #818b981f);
|
|
51
113
|
}
|
|
52
114
|
|
|
53
115
|
.md-theme-vscode-default .md-heading {
|
|
@@ -58,19 +120,19 @@
|
|
|
58
120
|
}
|
|
59
121
|
|
|
60
122
|
.md-theme-vscode-default h1.md-heading {
|
|
61
|
-
font-size:
|
|
123
|
+
font-size: 1.75em;
|
|
62
124
|
padding-bottom: 0.3em;
|
|
63
|
-
border-bottom: 1px solid var(--
|
|
125
|
+
border-bottom: 1px solid var(--md-separator-color);
|
|
64
126
|
}
|
|
65
127
|
|
|
66
128
|
.md-theme-vscode-default h2.md-heading {
|
|
67
|
-
font-size: 1.
|
|
129
|
+
font-size: 1.4em;
|
|
68
130
|
padding-bottom: 0.3em;
|
|
69
|
-
border-bottom: 1px solid var(--
|
|
131
|
+
border-bottom: 1px solid var(--md-separator-color);
|
|
70
132
|
}
|
|
71
133
|
|
|
72
134
|
.md-theme-vscode-default h3.md-heading {
|
|
73
|
-
font-size: 1.
|
|
135
|
+
font-size: 1.2em;
|
|
74
136
|
}
|
|
75
137
|
|
|
76
138
|
.md-theme-vscode-default h4.md-heading {
|
|
@@ -96,14 +158,9 @@
|
|
|
96
158
|
*/
|
|
97
159
|
.md-theme-vscode-default .md-blockquote {
|
|
98
160
|
margin: 0 0 16px 0;
|
|
99
|
-
padding: 0 16px 0
|
|
100
|
-
/*
|
|
101
|
-
|
|
102
|
-
* Must be an absolute length, not `em`: the marker positions itself with
|
|
103
|
-
* this var inside its own (smaller) font context, so an `em` value would
|
|
104
|
-
* resolve against the marker's font-size and pull the `>` out of alignment.
|
|
105
|
-
*/
|
|
106
|
-
--md-blockquote-pad: 10px;
|
|
161
|
+
padding: 0 16px 0 12px;
|
|
162
|
+
/* The left padding the `>` gutter hangs in (matches padding-left). */
|
|
163
|
+
--md-blockquote-pad: 12px;
|
|
107
164
|
background-color: var(--vscode-textBlockQuote-background, transparent);
|
|
108
165
|
border-left: 5px solid var(--vscode-textBlockQuote-border, #d1d9e0);
|
|
109
166
|
border-radius: 2px;
|
|
@@ -123,7 +180,7 @@
|
|
|
123
180
|
padding: 0;
|
|
124
181
|
margin: 24px 0;
|
|
125
182
|
border: 0;
|
|
126
|
-
border-bottom: 1px solid var(--
|
|
183
|
+
border-bottom: 1px solid var(--md-separator-color);
|
|
127
184
|
}
|
|
128
185
|
|
|
129
186
|
.md-theme-vscode-default a {
|
|
@@ -140,8 +197,9 @@
|
|
|
140
197
|
}
|
|
141
198
|
|
|
142
199
|
/*
|
|
143
|
-
* Inline code. Preview keeps inline code at the body font size (1em) on
|
|
144
|
-
* Code preformat surface, with only a small inset — no GitHub-style
|
|
200
|
+
* Inline code. Preview keeps inline code at the body font size (1em) on a
|
|
201
|
+
* softened VS Code preformat surface, with only a small inset — no GitHub-style
|
|
202
|
+
* badge.
|
|
145
203
|
*/
|
|
146
204
|
.md-theme-vscode-default :not(pre)>code {
|
|
147
205
|
font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
@@ -151,22 +209,31 @@
|
|
|
151
209
|
padding: 1px 3px;
|
|
152
210
|
margin: 0;
|
|
153
211
|
color: var(--vscode-textPreformat-foreground, inherit);
|
|
154
|
-
background-color: var(--
|
|
212
|
+
background-color: var(--md-inline-code-background);
|
|
155
213
|
border-radius: 4px;
|
|
156
214
|
white-space: break-spaces;
|
|
157
215
|
}
|
|
158
216
|
|
|
159
217
|
/* Fenced code block: framed by a 1px border, preview-style. */
|
|
218
|
+
.md-theme-vscode-default .md-code-block-container {
|
|
219
|
+
margin-top: 0;
|
|
220
|
+
margin-bottom: 16px;
|
|
221
|
+
}
|
|
222
|
+
|
|
160
223
|
.md-theme-vscode-default .md-code-block {
|
|
161
224
|
margin-top: 0;
|
|
162
225
|
margin-bottom: 16px;
|
|
163
|
-
padding:
|
|
226
|
+
padding: 6px 10px;
|
|
164
227
|
line-height: 1.357;
|
|
165
228
|
background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
|
|
166
229
|
border: 1px solid var(--vscode-widget-border, #d1d9e0);
|
|
167
230
|
border-radius: 3px;
|
|
168
231
|
}
|
|
169
232
|
|
|
233
|
+
.md-theme-vscode-default .md-code-block-container > .md-code-block {
|
|
234
|
+
margin: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
170
237
|
.md-theme-vscode-default .md-code-block code {
|
|
171
238
|
font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
172
239
|
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
@@ -238,10 +305,15 @@
|
|
|
238
305
|
line-height: 1;
|
|
239
306
|
}
|
|
240
307
|
|
|
241
|
-
.md-theme-vscode-default .md-table {
|
|
242
|
-
|
|
308
|
+
.md-theme-vscode-default .md-table-wrapper {
|
|
309
|
+
/* Block spacing lives on the wrapper (the scroll/BFC box) so it collapses
|
|
310
|
+
with siblings as before; the inner table has no margin of its own. */
|
|
243
311
|
margin-top: 0;
|
|
244
312
|
margin-bottom: 16px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.md-theme-vscode-default .md-table {
|
|
316
|
+
border-collapse: collapse;
|
|
245
317
|
width: auto;
|
|
246
318
|
}
|
|
247
319
|
|
|
@@ -313,7 +385,10 @@
|
|
|
313
385
|
/*
|
|
314
386
|
* The last cell's closing `|` floats right after the (left-aligned) cell text.
|
|
315
387
|
* Pin it to the column's right gridline (the cell's border edge, 10px past the
|
|
316
|
-
* content box) so the right outline is a straight line.
|
|
388
|
+
* content box) so the right outline is a straight line. `top: auto` keeps the
|
|
389
|
+
* pipe on the content line (the shared editor.css rule takes it out of flow);
|
|
390
|
+
* the previous `top: 0` floated it to the cell's top edge, so on tall/wrapping
|
|
391
|
+
* rows it no longer lined up with the in-flow leading pipes.
|
|
317
392
|
*/
|
|
318
393
|
.md-theme-vscode-default .md-table.md-block-active td:last-child {
|
|
319
394
|
position: relative;
|
|
@@ -322,7 +397,7 @@
|
|
|
322
397
|
.md-theme-vscode-default .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
|
|
323
398
|
position: absolute;
|
|
324
399
|
right: 0;
|
|
325
|
-
top:
|
|
400
|
+
top: auto;
|
|
326
401
|
}
|
|
327
402
|
|
|
328
403
|
/*
|
|
@@ -333,5 +408,5 @@
|
|
|
333
408
|
.md-theme-vscode-default .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
|
|
334
409
|
position: absolute;
|
|
335
410
|
right: 0;
|
|
336
|
-
top:
|
|
411
|
+
top: auto;
|
|
337
412
|
}
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
.md-editor.md-theme-vscode-github {
|
|
43
|
+
--md-iframe-background: var(--vscode-editor-background, #fff);
|
|
44
|
+
--md-iframe-foreground: var(--vscode-descriptionForeground, #616161);
|
|
45
|
+
--md-iframe-border: var(--vscode-editorWidget-border, var(--vscode-widget-border, #e5e5e5));
|
|
46
|
+
--md-iframe-hover-background: var(--vscode-toolbar-hoverBackground, rgba(128, 128, 128, 0.12));
|
|
47
|
+
--md-iframe-focus-border: var(--vscode-focusBorder, #007acc);
|
|
43
48
|
font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
|
|
44
49
|
'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif);
|
|
45
50
|
font-size: var(--markdown-font-size, 16px);
|
|
@@ -58,6 +63,59 @@
|
|
|
58
63
|
* stays visible on dark color themes.
|
|
59
64
|
*/
|
|
60
65
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
66
|
+
--md-whitespace-foreground: var(--vscode-editorWhitespace-foreground, #b0b0b0);
|
|
67
|
+
--md-html-comment-foreground: var(--vscode-descriptionForeground, #59636e);
|
|
68
|
+
--md-html-comment-hover-foreground: var(--vscode-editor-foreground, #1f2328);
|
|
69
|
+
--md-html-comment-font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
70
|
+
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
71
|
+
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
72
|
+
var(--vscode-editorWidget-background, #f3f3f3));
|
|
73
|
+
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|
|
74
|
+
var(--vscode-button-secondaryBackground,
|
|
75
|
+
var(--vscode-editorWidget-background, #e9e9e9)));
|
|
76
|
+
--md-readonly-foreground: var(--vscode-button-secondaryForeground,
|
|
77
|
+
var(--vscode-editorWidget-foreground, #444));
|
|
78
|
+
--md-readonly-border: var(--vscode-button-secondaryBorder,
|
|
79
|
+
var(--vscode-button-border,
|
|
80
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #b8b8b8))));
|
|
81
|
+
--md-readonly-border-hover: var(--vscode-button-secondaryBorder,
|
|
82
|
+
var(--vscode-button-border,
|
|
83
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #8d8d8d))));
|
|
84
|
+
--md-readonly-accent: var(--vscode-button-background, rgb(45, 92, 180));
|
|
85
|
+
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
86
|
+
--md-inline-code-background: color-mix(in srgb,
|
|
87
|
+
var(--vscode-textPreformat-background, #818b981f) 60%, transparent);
|
|
88
|
+
--md-find-widget-background: var(--vscode-editorWidget-background, #f3f3f3);
|
|
89
|
+
--md-find-widget-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
90
|
+
--md-find-widget-border: var(--vscode-editorWidget-border, #c8c8c8);
|
|
91
|
+
--md-find-widget-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.2));
|
|
92
|
+
--md-find-input-background: var(--vscode-input-background, #fff);
|
|
93
|
+
--md-find-input-foreground: var(--vscode-input-foreground, #222);
|
|
94
|
+
--md-find-placeholder-foreground: var(--vscode-input-placeholderForeground, #767676);
|
|
95
|
+
--md-find-input-caret: var(--vscode-editorCursor-foreground, currentColor);
|
|
96
|
+
--md-find-input-border: var(--vscode-input-border, #cecece);
|
|
97
|
+
--md-find-count-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
98
|
+
--md-find-focus-border: var(--vscode-focusBorder, #007fd4);
|
|
99
|
+
--md-find-button-hover-background: var(--vscode-inputOption-hoverBackground, rgba(128, 128, 128, 0.18));
|
|
100
|
+
--md-find-disabled-foreground: var(--vscode-disabledForeground, rgba(97, 97, 97, 0.5));
|
|
101
|
+
--md-find-editor-background: var(--vscode-editor-background, #ffffff);
|
|
102
|
+
--md-find-match-background: var(--vscode-editor-findMatchHighlightBackground, rgba(234, 92, 0, 0.33));
|
|
103
|
+
--md-find-current-background: var(--vscode-editor-findMatchBackground, #a8ac94);
|
|
104
|
+
--md-find-current-border: var(--vscode-editor-findMatchBorder,
|
|
105
|
+
color-mix(in srgb, var(--vscode-editorWidget-foreground, #616161) 55%,
|
|
106
|
+
var(--vscode-editor-findMatchBackground, #a8ac94)));
|
|
107
|
+
--md-find-option-background: var(--vscode-inputOption-activeBackground, #007acc);
|
|
108
|
+
--md-find-option-border: color-mix(in srgb,
|
|
109
|
+
var(--vscode-focusBorder, #007acc) 70%,
|
|
110
|
+
var(--vscode-inputOption-activeForeground, #000000));
|
|
111
|
+
--md-find-option-foreground: var(--vscode-inputOption-activeForeground, #fff);
|
|
112
|
+
--md-find-error-border: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
113
|
+
--md-find-error-foreground: var(--vscode-errorForeground, #a1260d);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.vscode-high-contrast .md-editor.md-theme-vscode-github,
|
|
117
|
+
.vscode-high-contrast-light .md-editor.md-theme-vscode-github {
|
|
118
|
+
--md-inline-code-background: var(--vscode-textPreformat-background, #818b981f);
|
|
61
119
|
}
|
|
62
120
|
|
|
63
121
|
.md-theme-vscode-github .md-heading {
|
|
@@ -104,14 +162,8 @@
|
|
|
104
162
|
.md-theme-vscode-github .md-blockquote {
|
|
105
163
|
margin: 0 0 16px 0;
|
|
106
164
|
padding: 0 1em;
|
|
107
|
-
/*
|
|
108
|
-
|
|
109
|
-
* the base font). Must be an absolute length, not `1em`: the marker
|
|
110
|
-
* positions itself with this var inside its own (smaller, 0.85em) font
|
|
111
|
-
* context, so an `em` value would resolve against the marker's font-size
|
|
112
|
-
* and pull the `>` out of alignment with the text.
|
|
113
|
-
*/
|
|
114
|
-
--md-blockquote-pad: 16px;
|
|
165
|
+
/* Matches padding-left; `em` is safe because shared marker geometry inherits font size. */
|
|
166
|
+
--md-blockquote-pad: 1em;
|
|
115
167
|
color: var(--vscode-descriptionForeground, #59636e);
|
|
116
168
|
border-left: 0.25em solid var(--vscode-textBlockQuote-border, #d1d9e0);
|
|
117
169
|
}
|
|
@@ -153,22 +205,31 @@
|
|
|
153
205
|
padding: 0.2em 0.4em;
|
|
154
206
|
margin: 0;
|
|
155
207
|
color: var(--vscode-textPreformat-foreground, inherit);
|
|
156
|
-
background-color: var(--
|
|
208
|
+
background-color: var(--md-inline-code-background);
|
|
157
209
|
border-radius: 6px;
|
|
158
210
|
white-space: break-spaces;
|
|
159
211
|
}
|
|
160
212
|
|
|
161
213
|
/* Fenced code block. */
|
|
214
|
+
.md-theme-vscode-github .md-code-block-container {
|
|
215
|
+
margin-top: 0;
|
|
216
|
+
margin-bottom: 16px;
|
|
217
|
+
}
|
|
218
|
+
|
|
162
219
|
.md-theme-vscode-github .md-code-block {
|
|
163
220
|
margin-top: 0;
|
|
164
221
|
margin-bottom: 16px;
|
|
165
|
-
padding: 10px
|
|
222
|
+
padding: 6px 10px;
|
|
166
223
|
font-size: 85%;
|
|
167
224
|
line-height: 1.45;
|
|
168
225
|
background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
|
|
169
226
|
border-radius: 6px;
|
|
170
227
|
}
|
|
171
228
|
|
|
229
|
+
.md-theme-vscode-github .md-code-block-container > .md-code-block {
|
|
230
|
+
margin: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
172
233
|
.md-theme-vscode-github .md-code-block code {
|
|
173
234
|
font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
174
235
|
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
@@ -240,10 +301,15 @@
|
|
|
240
301
|
line-height: 1;
|
|
241
302
|
}
|
|
242
303
|
|
|
243
|
-
.md-theme-vscode-github .md-table {
|
|
244
|
-
|
|
304
|
+
.md-theme-vscode-github .md-table-wrapper {
|
|
305
|
+
/* Block spacing lives on the wrapper (the scroll/BFC box) so it collapses
|
|
306
|
+
with siblings as before; the inner table has no margin of its own. */
|
|
245
307
|
margin-top: 0;
|
|
246
308
|
margin-bottom: 16px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.md-theme-vscode-github .md-table {
|
|
312
|
+
border-collapse: collapse;
|
|
247
313
|
width: auto;
|
|
248
314
|
}
|
|
249
315
|
|
|
@@ -315,7 +381,10 @@
|
|
|
315
381
|
/*
|
|
316
382
|
* The last cell's closing `|` floats right after the (left-aligned) cell text.
|
|
317
383
|
* Pin it to the column's right gridline (the cell's border edge, 13px past the
|
|
318
|
-
* content box) so the right outline is a straight line.
|
|
384
|
+
* content box) so the right outline is a straight line. `top: auto` keeps the
|
|
385
|
+
* pipe on the content line (the shared editor.css rule takes it out of flow);
|
|
386
|
+
* the previous `top: 0` floated it to the cell's top edge, so on tall/wrapping
|
|
387
|
+
* rows it no longer lined up with the in-flow leading pipes.
|
|
319
388
|
*/
|
|
320
389
|
.md-theme-vscode-github .md-table.md-block-active td:last-child {
|
|
321
390
|
position: relative;
|
|
@@ -324,7 +393,7 @@
|
|
|
324
393
|
.md-theme-vscode-github .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
|
|
325
394
|
position: absolute;
|
|
326
395
|
right: 0;
|
|
327
|
-
top:
|
|
396
|
+
top: auto;
|
|
328
397
|
}
|
|
329
398
|
|
|
330
399
|
/*
|
|
@@ -335,5 +404,5 @@
|
|
|
335
404
|
.md-theme-vscode-github .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
|
|
336
405
|
position: absolute;
|
|
337
406
|
right: 0;
|
|
338
|
-
top:
|
|
407
|
+
top: auto;
|
|
339
408
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IDisposable, DisposableStore } from './disposables';
|
|
2
|
-
export { IDisposable, DisposableStore };
|
|
3
|
-
export declare function toDisposable(fn: () => void): IDisposable;
|
|
4
|
-
export declare function markAsDisposed(_disposable: IDisposable): void;
|
|
5
|
-
export declare function trackDisposable(_disposable: IDisposable): void;
|
|
6
|
-
export declare function assertFn(_fn: () => {}): void;
|
|
7
|
-
export declare class CancellationError extends Error {
|
|
8
|
-
constructor();
|
|
9
|
-
}
|
|
10
|
-
export interface CancellationToken {
|
|
11
|
-
/**
|
|
12
|
-
* A flag signalling is cancellation has been requested.
|
|
13
|
-
*/
|
|
14
|
-
readonly isCancellationRequested: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* An event which fires when cancellation is requested. This event
|
|
17
|
-
* only ever fires `once` as cancellation can only happen once. Listeners
|
|
18
|
-
* that are registered after cancellation will be called (next event loop run),
|
|
19
|
-
* but also only once.
|
|
20
|
-
*
|
|
21
|
-
* @event
|
|
22
|
-
*/
|
|
23
|
-
readonly onCancellationRequested: (listener: (e: any) => any, thisArgs?: any, disposables?: IDisposable[]) => IDisposable;
|
|
24
|
-
}
|
|
25
|
-
export declare function onBugIndicatingError(_error?: any): void;
|
|
26
|
-
export declare class BugIndicatingError extends Error {
|
|
27
|
-
constructor(message?: string);
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface IDisposable {
|
|
2
|
-
dispose(): void;
|
|
3
|
-
}
|
|
4
|
-
export declare class DisposableStore implements IDisposable {
|
|
5
|
-
private disposables;
|
|
6
|
-
private _isDisposed;
|
|
7
|
-
get isDisposed(): boolean;
|
|
8
|
-
dispose(): void;
|
|
9
|
-
add<T extends IDisposable | undefined>(disposable: T): T;
|
|
10
|
-
remove<T extends IDisposable | undefined>(disposable: T): T;
|
|
11
|
-
clear(): void;
|
|
12
|
-
leakItems(): void;
|
|
13
|
-
}
|
|
14
|
-
export declare abstract class Disposable implements IDisposable {
|
|
15
|
-
protected readonly _store: DisposableStore;
|
|
16
|
-
dispose(): void;
|
|
17
|
-
protected _register<T extends IDisposable>(t: T): T;
|
|
18
|
-
protected _registerOrDispose<T extends IDisposable | undefined>(t: T): T;
|
|
19
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export type EqualityComparer<T> = (a: T, b: T) => boolean;
|
|
2
|
-
/**
|
|
3
|
-
* Compares two items for equality using strict equality.
|
|
4
|
-
*/
|
|
5
|
-
export declare const strictEquals: EqualityComparer<any>;
|
|
6
|
-
/**
|
|
7
|
-
* Two items are considered equal, if their stringified representations are equal.
|
|
8
|
-
*/
|
|
9
|
-
export declare function jsonStringifyEquals<T>(): EqualityComparer<T>;
|
|
10
|
-
/**
|
|
11
|
-
* Uses `item.equals(other)` to determine equality.
|
|
12
|
-
*/
|
|
13
|
-
export declare function itemEquals<T extends {
|
|
14
|
-
equals(other: T): boolean;
|
|
15
|
-
}>(): EqualityComparer<T>;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if two items are both null or undefined, or are equal according to the provided equality comparer.
|
|
18
|
-
*/
|
|
19
|
-
export declare function equalsIfDefined<T>(v1: T | undefined | null, v2: T | undefined | null, equals: EqualityComparer<T>): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Returns an equality comparer that checks if two items are both null or undefined, or are equal according to the provided equality comparer.
|
|
22
|
-
*/
|
|
23
|
-
export declare function equalsIfDefined<T>(equals: EqualityComparer<T>): EqualityComparer<T | undefined | null>;
|
|
24
|
-
/**
|
|
25
|
-
* Drills into arrays (items ordered) and objects (keys unordered) and uses strict equality on everything else.
|
|
26
|
-
*/
|
|
27
|
-
export declare function structuralEquals<T>(a: T, b: T): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* `getStructuralKey(a) === getStructuralKey(b) <=> structuralEquals(a, b)`
|
|
30
|
-
* (assuming that a and b are not cyclic structures and nothing extends globalThis Array).
|
|
31
|
-
*/
|
|
32
|
-
export declare function getStructuralKey(t: unknown): string;
|