@vscode/markdown-editor 0.0.2-12 → 0.0.2-120
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 +571 -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 +1964 -155
- package/dist/index.js +8134 -2188
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.css +1 -0
- package/dist/stringEdit-CVDbCUBY.js +215 -0
- package/dist/stringEdit-CVDbCUBY.js.map +1 -0
- package/dist/web-editors.d.ts +297 -0
- package/dist/web-editors.js +7359 -0
- package/dist/web-editors.js.map +1 -0
- package/package.json +66 -17
- package/src/contrib/comments/commentInput.css +89 -0
- 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 +1603 -66
- package/src/view/themes/default.css +21 -4
- package/src/view/themes/github.css +25 -13
- package/src/view/themes/vscode-default.css +407 -0
- package/src/view/themes/{vscode.css → vscode-github.css} +134 -62
- 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
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* VS Code markdown theme.
|
|
2
|
+
* VS Code markdown theme — GitHub layout variant (`md-theme-vscode-github`).
|
|
3
|
+
*
|
|
4
|
+
* One of two `--vscode-*`-variable-driven themes. This variant keeps the
|
|
5
|
+
* GitHub-style layout/typography (larger 16px base, 1.5 line-height, badge-
|
|
6
|
+
* style inline code, zebra tables); the sibling `vscode-default.css`
|
|
7
|
+
* (`md-theme-vscode-default`) mirrors VS Code's own markdown *preview*
|
|
8
|
+
* (`markdown-language-features/media/markdown.css`: 14px base, code blocks with
|
|
9
|
+
* a 1px border, 5px blockquote rule). Both consume the same `--vscode-*`
|
|
10
|
+
* variables and `--md-tok-*` token palette, so only layout/typography differs.
|
|
3
11
|
*
|
|
4
12
|
* A *variable-driven* theme: every color is expressed as `var(--vscode-*, …)`
|
|
5
13
|
* so the editor adopts whatever VS Code color theme is active (dark, light,
|
|
@@ -9,7 +17,7 @@
|
|
|
9
17
|
*
|
|
10
18
|
* Apply it via the editor `classNames` option:
|
|
11
19
|
*
|
|
12
|
-
* new EditorView(model, { classNames: ['md-theme-vscode'] });
|
|
20
|
+
* new EditorView(model, { classNames: ['md-theme-vscode-github'] });
|
|
13
21
|
*
|
|
14
22
|
* In a real webview VS Code injects the `--vscode-*` custom properties onto
|
|
15
23
|
* the document root and sets a body theme class, so this theme just works. In
|
|
@@ -31,7 +39,7 @@
|
|
|
31
39
|
* Component Explorer supplies a matching `--md-tok-*` palette per color theme.
|
|
32
40
|
*/
|
|
33
41
|
|
|
34
|
-
.md-editor.md-theme-vscode {
|
|
42
|
+
.md-editor.md-theme-vscode-github {
|
|
35
43
|
font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
|
|
36
44
|
'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif);
|
|
37
45
|
font-size: var(--markdown-font-size, 16px);
|
|
@@ -50,65 +58,112 @@
|
|
|
50
58
|
* stays visible on dark color themes.
|
|
51
59
|
*/
|
|
52
60
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
--md-whitespace-foreground: var(--vscode-editorWhitespace-foreground, #b0b0b0);
|
|
62
|
+
--md-html-comment-foreground: var(--vscode-descriptionForeground, #59636e);
|
|
63
|
+
--md-html-comment-hover-foreground: var(--vscode-editor-foreground, #1f2328);
|
|
64
|
+
--md-html-comment-font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
65
|
+
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
66
|
+
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
67
|
+
var(--vscode-editorWidget-background, #f3f3f3));
|
|
68
|
+
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|
|
69
|
+
var(--vscode-button-secondaryBackground,
|
|
70
|
+
var(--vscode-editorWidget-background, #e9e9e9)));
|
|
71
|
+
--md-readonly-foreground: var(--vscode-button-secondaryForeground,
|
|
72
|
+
var(--vscode-editorWidget-foreground, #444));
|
|
73
|
+
--md-readonly-border: var(--vscode-button-secondaryBorder,
|
|
74
|
+
var(--vscode-button-border,
|
|
75
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #b8b8b8))));
|
|
76
|
+
--md-readonly-border-hover: var(--vscode-button-secondaryBorder,
|
|
77
|
+
var(--vscode-button-border,
|
|
78
|
+
var(--vscode-contrastBorder, var(--vscode-editorWidget-border, #8d8d8d))));
|
|
79
|
+
--md-readonly-accent: var(--vscode-button-background, rgb(45, 92, 180));
|
|
80
|
+
--md-readonly-accent-foreground: var(--vscode-button-foreground, #fff);
|
|
81
|
+
--md-inline-code-background: color-mix(in srgb,
|
|
82
|
+
var(--vscode-textPreformat-background, #818b981f) 60%, transparent);
|
|
83
|
+
--md-find-widget-background: var(--vscode-editorWidget-background, #f3f3f3);
|
|
84
|
+
--md-find-widget-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
85
|
+
--md-find-widget-border: var(--vscode-editorWidget-border, #c8c8c8);
|
|
86
|
+
--md-find-widget-shadow: var(--vscode-widget-shadow, rgba(0, 0, 0, 0.2));
|
|
87
|
+
--md-find-input-background: var(--vscode-input-background, #fff);
|
|
88
|
+
--md-find-input-foreground: var(--vscode-input-foreground, #222);
|
|
89
|
+
--md-find-placeholder-foreground: var(--vscode-input-placeholderForeground, #767676);
|
|
90
|
+
--md-find-input-caret: var(--vscode-editorCursor-foreground, currentColor);
|
|
91
|
+
--md-find-input-border: var(--vscode-input-border, #cecece);
|
|
92
|
+
--md-find-count-foreground: var(--vscode-editorWidget-foreground, #222);
|
|
93
|
+
--md-find-focus-border: var(--vscode-focusBorder, #007fd4);
|
|
94
|
+
--md-find-button-hover-background: var(--vscode-inputOption-hoverBackground, rgba(128, 128, 128, 0.18));
|
|
95
|
+
--md-find-disabled-foreground: var(--vscode-disabledForeground, rgba(97, 97, 97, 0.5));
|
|
96
|
+
--md-find-editor-background: var(--vscode-editor-background, #ffffff);
|
|
97
|
+
--md-find-match-background: var(--vscode-editor-findMatchHighlightBackground, rgba(234, 92, 0, 0.33));
|
|
98
|
+
--md-find-current-background: var(--vscode-editor-findMatchBackground, #a8ac94);
|
|
99
|
+
--md-find-current-border: var(--vscode-editor-findMatchBorder,
|
|
100
|
+
color-mix(in srgb, var(--vscode-editorWidget-foreground, #616161) 55%,
|
|
101
|
+
var(--vscode-editor-findMatchBackground, #a8ac94)));
|
|
102
|
+
--md-find-option-background: var(--vscode-inputOption-activeBackground, #007acc);
|
|
103
|
+
--md-find-option-border: color-mix(in srgb,
|
|
104
|
+
var(--vscode-focusBorder, #007acc) 70%,
|
|
105
|
+
var(--vscode-inputOption-activeForeground, #000000));
|
|
106
|
+
--md-find-option-foreground: var(--vscode-inputOption-activeForeground, #fff);
|
|
107
|
+
--md-find-error-border: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
108
|
+
--md-find-error-foreground: var(--vscode-errorForeground, #a1260d);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.vscode-high-contrast .md-editor.md-theme-vscode-github,
|
|
112
|
+
.vscode-high-contrast-light .md-editor.md-theme-vscode-github {
|
|
113
|
+
--md-inline-code-background: var(--vscode-textPreformat-background, #818b981f);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.md-theme-vscode-github .md-heading {
|
|
56
117
|
margin-top: 24px;
|
|
57
118
|
margin-bottom: 16px;
|
|
58
119
|
font-weight: 600;
|
|
59
120
|
line-height: 1.25;
|
|
60
121
|
}
|
|
61
122
|
|
|
62
|
-
.md-theme-vscode h1.md-heading {
|
|
123
|
+
.md-theme-vscode-github h1.md-heading {
|
|
63
124
|
font-size: 2em;
|
|
64
125
|
padding-bottom: 0.3em;
|
|
65
126
|
border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0b3);
|
|
66
127
|
}
|
|
67
128
|
|
|
68
|
-
.md-theme-vscode h2.md-heading {
|
|
129
|
+
.md-theme-vscode-github h2.md-heading {
|
|
69
130
|
font-size: 1.5em;
|
|
70
131
|
padding-bottom: 0.3em;
|
|
71
132
|
border-bottom: 1px solid var(--vscode-textSeparator-foreground, #d1d9e0b3);
|
|
72
133
|
}
|
|
73
134
|
|
|
74
|
-
.md-theme-vscode h3.md-heading {
|
|
135
|
+
.md-theme-vscode-github h3.md-heading {
|
|
75
136
|
font-size: 1.25em;
|
|
76
137
|
}
|
|
77
138
|
|
|
78
|
-
.md-theme-vscode h4.md-heading {
|
|
139
|
+
.md-theme-vscode-github h4.md-heading {
|
|
79
140
|
font-size: 1em;
|
|
80
141
|
}
|
|
81
142
|
|
|
82
|
-
.md-theme-vscode h5.md-heading {
|
|
143
|
+
.md-theme-vscode-github h5.md-heading {
|
|
83
144
|
font-size: 0.875em;
|
|
84
145
|
}
|
|
85
146
|
|
|
86
|
-
.md-theme-vscode h6.md-heading {
|
|
147
|
+
.md-theme-vscode-github h6.md-heading {
|
|
87
148
|
font-size: 0.85em;
|
|
88
149
|
color: var(--vscode-descriptionForeground, #59636e);
|
|
89
150
|
}
|
|
90
151
|
|
|
91
|
-
.md-theme-vscode .md-paragraph {
|
|
152
|
+
.md-theme-vscode-github .md-paragraph {
|
|
92
153
|
margin-top: 0;
|
|
93
154
|
margin-bottom: 16px;
|
|
94
155
|
}
|
|
95
156
|
|
|
96
|
-
.md-theme-vscode .md-blockquote {
|
|
157
|
+
.md-theme-vscode-github .md-blockquote {
|
|
97
158
|
margin: 0 0 16px 0;
|
|
98
159
|
padding: 0 1em;
|
|
99
|
-
/*
|
|
100
|
-
|
|
101
|
-
* the base font). Must be an absolute length, not `1em`: the marker
|
|
102
|
-
* positions itself with this var inside its own (smaller, 0.85em) font
|
|
103
|
-
* context, so an `em` value would resolve against the marker's font-size
|
|
104
|
-
* and pull the `>` out of alignment with the text.
|
|
105
|
-
*/
|
|
106
|
-
--md-blockquote-pad: 16px;
|
|
160
|
+
/* Matches padding-left; `em` is safe because shared marker geometry inherits font size. */
|
|
161
|
+
--md-blockquote-pad: 1em;
|
|
107
162
|
color: var(--vscode-descriptionForeground, #59636e);
|
|
108
163
|
border-left: 0.25em solid var(--vscode-textBlockQuote-border, #d1d9e0);
|
|
109
164
|
}
|
|
110
165
|
|
|
111
|
-
.md-theme-vscode .md-list {
|
|
166
|
+
.md-theme-vscode-github .md-list {
|
|
112
167
|
margin-top: 0;
|
|
113
168
|
margin-bottom: 16px;
|
|
114
169
|
padding-left: 2em;
|
|
@@ -116,7 +171,7 @@
|
|
|
116
171
|
--md-list-indent-step: 2em;
|
|
117
172
|
}
|
|
118
173
|
|
|
119
|
-
.md-theme-vscode .md-thematic-break {
|
|
174
|
+
.md-theme-vscode-github .md-thematic-break {
|
|
120
175
|
height: 0.25em;
|
|
121
176
|
padding: 0;
|
|
122
177
|
margin: 24px 0;
|
|
@@ -124,44 +179,53 @@
|
|
|
124
179
|
border: 0;
|
|
125
180
|
}
|
|
126
181
|
|
|
127
|
-
.md-theme-vscode a {
|
|
182
|
+
.md-theme-vscode-github a {
|
|
128
183
|
color: var(--vscode-textLink-foreground, #0969da);
|
|
129
184
|
text-decoration: none;
|
|
130
185
|
}
|
|
131
186
|
|
|
132
|
-
.md-theme-vscode a:hover {
|
|
187
|
+
.md-theme-vscode-github a:hover {
|
|
133
188
|
text-decoration: underline;
|
|
134
189
|
}
|
|
135
190
|
|
|
136
|
-
.md-theme-vscode strong {
|
|
191
|
+
.md-theme-vscode-github strong {
|
|
137
192
|
font-weight: 600;
|
|
138
193
|
}
|
|
139
194
|
|
|
140
195
|
/* Inline code. */
|
|
141
|
-
.md-theme-vscode :not(pre)>code {
|
|
196
|
+
.md-theme-vscode-github :not(pre)>code {
|
|
142
197
|
font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
143
198
|
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
144
199
|
font-size: 85%;
|
|
145
200
|
padding: 0.2em 0.4em;
|
|
146
201
|
margin: 0;
|
|
147
202
|
color: var(--vscode-textPreformat-foreground, inherit);
|
|
148
|
-
background-color: var(--
|
|
203
|
+
background-color: var(--md-inline-code-background);
|
|
149
204
|
border-radius: 6px;
|
|
150
205
|
white-space: break-spaces;
|
|
151
206
|
}
|
|
152
207
|
|
|
153
208
|
/* Fenced code block. */
|
|
154
|
-
.md-theme-vscode .md-code-block {
|
|
209
|
+
.md-theme-vscode-github .md-code-block-container {
|
|
155
210
|
margin-top: 0;
|
|
156
211
|
margin-bottom: 16px;
|
|
157
|
-
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.md-theme-vscode-github .md-code-block {
|
|
215
|
+
margin-top: 0;
|
|
216
|
+
margin-bottom: 16px;
|
|
217
|
+
padding: 6px 10px;
|
|
158
218
|
font-size: 85%;
|
|
159
219
|
line-height: 1.45;
|
|
160
220
|
background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
|
|
161
221
|
border-radius: 6px;
|
|
162
222
|
}
|
|
163
223
|
|
|
164
|
-
.md-theme-vscode .md-code-block code {
|
|
224
|
+
.md-theme-vscode-github .md-code-block-container > .md-code-block {
|
|
225
|
+
margin: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.md-theme-vscode-github .md-code-block code {
|
|
165
229
|
font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
166
230
|
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
167
231
|
padding: 0;
|
|
@@ -174,43 +238,43 @@
|
|
|
174
238
|
* the explorer (or any embedder) can supply a palette matched to the active
|
|
175
239
|
* color theme. Fallbacks are the VS Code light theme palette.
|
|
176
240
|
*/
|
|
177
|
-
.md-theme-vscode .md-code-block .tok-keyword {
|
|
241
|
+
.md-theme-vscode-github .md-code-block .tok-keyword {
|
|
178
242
|
color: var(--md-tok-keyword, #0000ff);
|
|
179
243
|
}
|
|
180
244
|
|
|
181
|
-
.md-theme-vscode .md-code-block .tok-string {
|
|
245
|
+
.md-theme-vscode-github .md-code-block .tok-string {
|
|
182
246
|
color: var(--md-tok-string, #a31515);
|
|
183
247
|
}
|
|
184
248
|
|
|
185
|
-
.md-theme-vscode .md-code-block .tok-comment {
|
|
249
|
+
.md-theme-vscode-github .md-code-block .tok-comment {
|
|
186
250
|
color: var(--md-tok-comment, #008000);
|
|
187
251
|
}
|
|
188
252
|
|
|
189
|
-
.md-theme-vscode .md-code-block .tok-number {
|
|
253
|
+
.md-theme-vscode-github .md-code-block .tok-number {
|
|
190
254
|
color: var(--md-tok-number, #098658);
|
|
191
255
|
}
|
|
192
256
|
|
|
193
|
-
.md-theme-vscode .md-code-block .tok-regexp {
|
|
257
|
+
.md-theme-vscode-github .md-code-block .tok-regexp {
|
|
194
258
|
color: var(--md-tok-regexp, #811f3f);
|
|
195
259
|
}
|
|
196
260
|
|
|
197
|
-
.md-theme-vscode .md-code-block .tok-type {
|
|
261
|
+
.md-theme-vscode-github .md-code-block .tok-type {
|
|
198
262
|
color: var(--md-tok-type, #267f99);
|
|
199
263
|
}
|
|
200
264
|
|
|
201
|
-
.md-theme-vscode .md-code-block .tok-annotation {
|
|
265
|
+
.md-theme-vscode-github .md-code-block .tok-annotation {
|
|
202
266
|
color: var(--md-tok-annotation, #267f99);
|
|
203
267
|
}
|
|
204
268
|
|
|
205
|
-
.md-theme-vscode .md-code-block .tok-tag {
|
|
269
|
+
.md-theme-vscode-github .md-code-block .tok-tag {
|
|
206
270
|
color: var(--md-tok-tag, #800000);
|
|
207
271
|
}
|
|
208
272
|
|
|
209
|
-
.md-theme-vscode .md-code-block .tok-attribute {
|
|
273
|
+
.md-theme-vscode-github .md-code-block .tok-attribute {
|
|
210
274
|
color: var(--md-tok-attribute, #e50000);
|
|
211
275
|
}
|
|
212
276
|
|
|
213
|
-
.md-theme-vscode .md-code-block .tok-delimiter {
|
|
277
|
+
.md-theme-vscode-github .md-code-block .tok-delimiter {
|
|
214
278
|
color: var(--md-tok-delimiter, inherit);
|
|
215
279
|
}
|
|
216
280
|
|
|
@@ -218,7 +282,7 @@
|
|
|
218
282
|
* Display math has no container styling (KaTeX renders it inline-centered).
|
|
219
283
|
* Keep only the block spacing; horizontal scroll comes from the base sheet.
|
|
220
284
|
*/
|
|
221
|
-
.md-theme-vscode .md-math-block {
|
|
285
|
+
.md-theme-vscode-github .md-math-block {
|
|
222
286
|
margin-top: 0;
|
|
223
287
|
margin-bottom: 16px;
|
|
224
288
|
}
|
|
@@ -228,19 +292,24 @@
|
|
|
228
292
|
* would inflate the surrounding line box. Collapse it so the rendered math fits
|
|
229
293
|
* the text line and the paragraph height stays identical active vs inactive.
|
|
230
294
|
*/
|
|
231
|
-
.md-theme-vscode .md-inline-math .katex {
|
|
295
|
+
.md-theme-vscode-github .md-inline-math .katex {
|
|
232
296
|
line-height: 1;
|
|
233
297
|
}
|
|
234
298
|
|
|
235
|
-
.md-theme-vscode .md-table {
|
|
236
|
-
|
|
299
|
+
.md-theme-vscode-github .md-table-wrapper {
|
|
300
|
+
/* Block spacing lives on the wrapper (the scroll/BFC box) so it collapses
|
|
301
|
+
with siblings as before; the inner table has no margin of its own. */
|
|
237
302
|
margin-top: 0;
|
|
238
303
|
margin-bottom: 16px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.md-theme-vscode-github .md-table {
|
|
307
|
+
border-collapse: collapse;
|
|
239
308
|
width: auto;
|
|
240
309
|
}
|
|
241
310
|
|
|
242
|
-
.md-theme-vscode .md-table th,
|
|
243
|
-
.md-theme-vscode .md-table td {
|
|
311
|
+
.md-theme-vscode-github .md-table th,
|
|
312
|
+
.md-theme-vscode-github .md-table td {
|
|
244
313
|
padding: 6px 13px;
|
|
245
314
|
border: 1px solid var(--vscode-editorWidget-border, #d1d9e0);
|
|
246
315
|
text-align: left;
|
|
@@ -250,19 +319,19 @@
|
|
|
250
319
|
* The editor renders every cell as <td> in a flat <table> of <tr> (no
|
|
251
320
|
* <thead>/<tbody>/<th>). Row order is: header, delimiter row, body rows.
|
|
252
321
|
*/
|
|
253
|
-
.md-theme-vscode .md-table tr:first-child td {
|
|
322
|
+
.md-theme-vscode-github .md-table tr:first-child td {
|
|
254
323
|
font-weight: 600;
|
|
255
324
|
padding-top: 11px;
|
|
256
325
|
padding-bottom: 11px;
|
|
257
326
|
}
|
|
258
327
|
|
|
259
328
|
/* Active: reclaim the header's extra spacing to host the delimiter row. */
|
|
260
|
-
.md-theme-vscode .md-table.md-block-active tr:first-child td {
|
|
329
|
+
.md-theme-vscode-github .md-table.md-block-active tr:first-child td {
|
|
261
330
|
padding-top: 3px;
|
|
262
331
|
padding-bottom: 3px;
|
|
263
332
|
}
|
|
264
333
|
|
|
265
|
-
.md-theme-vscode .md-table tr:nth-child(even):not(.md-table-delimiter-row) {
|
|
334
|
+
.md-theme-vscode-github .md-table tr:nth-child(even):not(.md-table-delimiter-row) {
|
|
266
335
|
background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
|
|
267
336
|
}
|
|
268
337
|
|
|
@@ -271,7 +340,7 @@
|
|
|
271
340
|
* editing; render it borderless with no vertical padding so it occupies just
|
|
272
341
|
* the compact 10px reclaimed from the header.
|
|
273
342
|
*/
|
|
274
|
-
.md-theme-vscode .md-table-delimiter-row td {
|
|
343
|
+
.md-theme-vscode-github .md-table-delimiter-row td {
|
|
275
344
|
border: 0;
|
|
276
345
|
padding: 0 13px;
|
|
277
346
|
background: transparent;
|
|
@@ -283,11 +352,11 @@
|
|
|
283
352
|
* height and first-text X — is unchanged) and clear the zebra fill so the
|
|
284
353
|
* table reads as plain source.
|
|
285
354
|
*/
|
|
286
|
-
.md-theme-vscode .md-table.md-block-active td {
|
|
355
|
+
.md-theme-vscode-github .md-table.md-block-active td {
|
|
287
356
|
border-color: transparent;
|
|
288
357
|
}
|
|
289
358
|
|
|
290
|
-
.md-theme-vscode .md-table.md-block-active tr:nth-child(even):not(.md-table-delimiter-row) td {
|
|
359
|
+
.md-theme-vscode-github .md-table.md-block-active tr:nth-child(even):not(.md-table-delimiter-row) td {
|
|
291
360
|
background-color: transparent;
|
|
292
361
|
}
|
|
293
362
|
|
|
@@ -298,8 +367,8 @@
|
|
|
298
367
|
* siblings and the glue's reserved width are untouched, so active/inactive
|
|
299
368
|
* height and first-text X stay pixel-identical.
|
|
300
369
|
*/
|
|
301
|
-
.md-theme-vscode .md-table.md-block-active td>.md-glue-tableCellGlue:first-child,
|
|
302
|
-
.md-theme-vscode .md-table.md-block-active .md-table-delimiter-row td>.md-marker-tableDelimiter {
|
|
370
|
+
.md-theme-vscode-github .md-table.md-block-active td>.md-glue-tableCellGlue:first-child,
|
|
371
|
+
.md-theme-vscode-github .md-table.md-block-active .md-table-delimiter-row td>.md-marker-tableDelimiter {
|
|
303
372
|
position: relative;
|
|
304
373
|
left: -13px;
|
|
305
374
|
}
|
|
@@ -307,16 +376,19 @@
|
|
|
307
376
|
/*
|
|
308
377
|
* The last cell's closing `|` floats right after the (left-aligned) cell text.
|
|
309
378
|
* Pin it to the column's right gridline (the cell's border edge, 13px past the
|
|
310
|
-
* content box) so the right outline is a straight line.
|
|
379
|
+
* content box) so the right outline is a straight line. `top: auto` keeps the
|
|
380
|
+
* pipe on the content line (the shared editor.css rule takes it out of flow);
|
|
381
|
+
* the previous `top: 0` floated it to the cell's top edge, so on tall/wrapping
|
|
382
|
+
* rows it no longer lined up with the in-flow leading pipes.
|
|
311
383
|
*/
|
|
312
|
-
.md-theme-vscode .md-table.md-block-active td:last-child {
|
|
384
|
+
.md-theme-vscode-github .md-table.md-block-active td:last-child {
|
|
313
385
|
position: relative;
|
|
314
386
|
}
|
|
315
387
|
|
|
316
|
-
.md-theme-vscode .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
|
|
388
|
+
.md-theme-vscode-github .md-table.md-block-active td:last-child>.md-glue-tableCellGlue:last-child {
|
|
317
389
|
position: absolute;
|
|
318
390
|
right: 0;
|
|
319
|
-
top:
|
|
391
|
+
top: auto;
|
|
320
392
|
}
|
|
321
393
|
|
|
322
394
|
/*
|
|
@@ -324,8 +396,8 @@
|
|
|
324
396
|
* `tableDelimiterClose` marker; pin it to the same right gridline as the body
|
|
325
397
|
* rows' closing pipe so the last column's outline stays straight.
|
|
326
398
|
*/
|
|
327
|
-
.md-theme-vscode .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
|
|
399
|
+
.md-theme-vscode-github .md-table.md-block-active .md-table-delimiter-row td:last-child>.md-marker-tableDelimiterClose {
|
|
328
400
|
position: absolute;
|
|
329
401
|
right: 0;
|
|
330
|
-
top:
|
|
402
|
+
top: auto;
|
|
331
403
|
}
|
|
@@ -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;
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { DisposableStore } from './commonFacade/deps';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an observable value.
|
|
4
|
-
*
|
|
5
|
-
* @template T The type of the values the observable can hold.
|
|
6
|
-
*/
|
|
7
|
-
export interface IObservable<T> extends IObservableWithChange<T, unknown> {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Represents an observable value.
|
|
11
|
-
*
|
|
12
|
-
* @template T The type of the values the observable can hold.
|
|
13
|
-
* @template TChange The type used to describe value changes
|
|
14
|
-
* (usually `void` and only used in advanced scenarios).
|
|
15
|
-
* While observers can miss temporary values of an observable,
|
|
16
|
-
* they will receive all change values (as long as they are subscribed)!
|
|
17
|
-
*/
|
|
18
|
-
export interface IObservableWithChange<T, TChange = unknown> {
|
|
19
|
-
/**
|
|
20
|
-
* Returns the current value.
|
|
21
|
-
*
|
|
22
|
-
* Calls {@link IObserver.handleChange} if the observable notices that the value changed.
|
|
23
|
-
* Must not be called from {@link IObserver.handleChange}!
|
|
24
|
-
*/
|
|
25
|
-
get(): T;
|
|
26
|
-
/**
|
|
27
|
-
* Forces the observable to check for changes and report them.
|
|
28
|
-
*
|
|
29
|
-
* Has the same effect as calling {@link IObservable.get}, but does not force the observable
|
|
30
|
-
* to actually construct the value, e.g. if change deltas are used.
|
|
31
|
-
* Calls {@link IObserver.handleChange} if the observable notices that the value changed.
|
|
32
|
-
* Must not be called from {@link IObserver.handleChange}!
|
|
33
|
-
*/
|
|
34
|
-
reportChanges(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Adds the observer to the set of subscribed observers.
|
|
37
|
-
* This method is idempotent.
|
|
38
|
-
*/
|
|
39
|
-
addObserver(observer: IObserver): void;
|
|
40
|
-
/**
|
|
41
|
-
* Removes the observer from the set of subscribed observers.
|
|
42
|
-
* This method is idempotent.
|
|
43
|
-
*/
|
|
44
|
-
removeObserver(observer: IObserver): void;
|
|
45
|
-
/**
|
|
46
|
-
* Reads the current value and subscribes the reader to this observable.
|
|
47
|
-
*
|
|
48
|
-
* Calls {@link IReader.readObservable} if a reader is given, otherwise {@link IObservable.get}
|
|
49
|
-
* (see {@link ConvenientObservable.read} for the implementation).
|
|
50
|
-
*/
|
|
51
|
-
read(reader: IReader | undefined): T;
|
|
52
|
-
/**
|
|
53
|
-
* Makes sure this value is computed eagerly.
|
|
54
|
-
*/
|
|
55
|
-
recomputeInitiallyAndOnChange(store: DisposableStore, handleValue?: (value: T) => void): IObservable<T>;
|
|
56
|
-
/**
|
|
57
|
-
* Makes sure this value is cached.
|
|
58
|
-
*/
|
|
59
|
-
keepObserved(store: DisposableStore): IObservable<T>;
|
|
60
|
-
/**
|
|
61
|
-
* Creates a derived observable that depends on this observable.
|
|
62
|
-
* Use the reader to read other observables
|
|
63
|
-
* (see {@link ConvenientObservable.map} for the implementation).
|
|
64
|
-
*/
|
|
65
|
-
map<TNew>(fn: (value: T, reader: IReader) => TNew): IObservable<TNew>;
|
|
66
|
-
map<TNew>(owner: object, fn: (value: T, reader: IReader) => TNew): IObservable<TNew>;
|
|
67
|
-
flatten<TNew>(this: IObservable<IObservable<TNew>>): IObservable<TNew>;
|
|
68
|
-
/**
|
|
69
|
-
* ONLY FOR DEBUGGING!
|
|
70
|
-
* Logs computations of this derived.
|
|
71
|
-
*/
|
|
72
|
-
log(): IObservableWithChange<T, TChange>;
|
|
73
|
-
/**
|
|
74
|
-
* A human-readable name for debugging purposes.
|
|
75
|
-
*/
|
|
76
|
-
readonly debugName: string;
|
|
77
|
-
/**
|
|
78
|
-
* ONLY FOR DEBUGGING!
|
|
79
|
-
*/
|
|
80
|
-
debugGetDependencyGraph(): string;
|
|
81
|
-
/**
|
|
82
|
-
* This property captures the type of the change object. Do not use it at runtime!
|
|
83
|
-
*/
|
|
84
|
-
readonly TChange: TChange;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Represents an observer that can be subscribed to an observable.
|
|
88
|
-
*
|
|
89
|
-
* If an observer is subscribed to an observable and that observable didn't signal
|
|
90
|
-
* a change through one of the observer methods, the observer can assume that the
|
|
91
|
-
* observable didn't change.
|
|
92
|
-
* If an observable reported a possible change, {@link IObservable.reportChanges} forces
|
|
93
|
-
* the observable to report an actual change if there was one.
|
|
94
|
-
*/
|
|
95
|
-
export interface IObserver {
|
|
96
|
-
/**
|
|
97
|
-
* Signals that the given observable might have changed and a transaction potentially modifying that observable started.
|
|
98
|
-
* Before the given observable can call this method again, is must call {@link IObserver.endUpdate}.
|
|
99
|
-
*
|
|
100
|
-
* Implementations must not get/read the value of other observables, as they might not have received this event yet!
|
|
101
|
-
* The method {@link IObservable.reportChanges} can be used to force the observable to report the changes.
|
|
102
|
-
*/
|
|
103
|
-
beginUpdate<T>(observable: IObservable<T>): void;
|
|
104
|
-
/**
|
|
105
|
-
* Signals that the transaction that potentially modified the given observable ended.
|
|
106
|
-
* This is a good place to react to (potential) changes.
|
|
107
|
-
*/
|
|
108
|
-
endUpdate<T>(observable: IObservable<T>): void;
|
|
109
|
-
/**
|
|
110
|
-
* Signals that the given observable might have changed.
|
|
111
|
-
* The method {@link IObservable.reportChanges} can be used to force the observable to report the changes.
|
|
112
|
-
*
|
|
113
|
-
* Implementations must not get/read the value of other observables, as they might not have received this event yet!
|
|
114
|
-
* The change should be processed lazily or in {@link IObserver.endUpdate}.
|
|
115
|
-
*/
|
|
116
|
-
handlePossibleChange<T>(observable: IObservable<T>): void;
|
|
117
|
-
/**
|
|
118
|
-
* Signals that the given {@link observable} changed.
|
|
119
|
-
*
|
|
120
|
-
* Implementations must not get/read the value of other observables, as they might not have received this event yet!
|
|
121
|
-
* The change should be processed lazily or in {@link IObserver.endUpdate}.
|
|
122
|
-
*
|
|
123
|
-
* @param change Indicates how or why the value changed.
|
|
124
|
-
*/
|
|
125
|
-
handleChange<T, TChange>(observable: IObservableWithChange<T, TChange>, change: TChange): void;
|
|
126
|
-
}
|
|
127
|
-
export interface IReader {
|
|
128
|
-
/**
|
|
129
|
-
* Reads the value of an observable and subscribes to it.
|
|
130
|
-
*/
|
|
131
|
-
readObservable<T>(observable: IObservableWithChange<T, any>): T;
|
|
132
|
-
}
|
|
133
|
-
export interface ISettable<T, TChange = void> {
|
|
134
|
-
/**
|
|
135
|
-
* Sets the value of the observable.
|
|
136
|
-
* Use a transaction to batch multiple changes (with a transaction, observers only react at the end of the transaction).
|
|
137
|
-
*
|
|
138
|
-
* @param transaction When given, value changes are handled on demand or when the transaction ends.
|
|
139
|
-
* @param change Describes how or why the value changed.
|
|
140
|
-
*/
|
|
141
|
-
set(value: T, transaction: ITransaction | undefined, change: TChange): void;
|
|
142
|
-
}
|
|
143
|
-
export interface ITransaction {
|
|
144
|
-
/**
|
|
145
|
-
* Calls {@link Observer.beginUpdate} immediately
|
|
146
|
-
* and {@link Observer.endUpdate} when the transaction ends.
|
|
147
|
-
*/
|
|
148
|
-
updateObserver(observer: IObserver, observable: IObservableWithChange<any, any>): void;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* This function is used to indicate that the caller recovered from an error that indicates a bug.
|
|
152
|
-
*/
|
|
153
|
-
export declare function handleBugIndicatingErrorRecovery(message: string): void;
|
|
154
|
-
/**
|
|
155
|
-
* A settable observable.
|
|
156
|
-
*/
|
|
157
|
-
export interface ISettableObservable<T, TChange = void> extends IObservableWithChange<T, TChange>, ISettable<T, TChange> {
|
|
158
|
-
}
|
|
159
|
-
export interface IReaderWithStore extends IReader {
|
|
160
|
-
/**
|
|
161
|
-
* Items in this store get disposed just before the observable recomputes/reruns or when it becomes unobserved.
|
|
162
|
-
*/
|
|
163
|
-
get store(): DisposableStore;
|
|
164
|
-
/**
|
|
165
|
-
* Items in this store get disposed just after the observable recomputes/reruns or when it becomes unobserved.
|
|
166
|
-
* This is important if the current run needs the undisposed result from the last run.
|
|
167
|
-
*
|
|
168
|
-
* Warning: Items in this store might still get disposed before dependents (that read the now disposed value in the past) are recomputed with the new (undisposed) value!
|
|
169
|
-
* A clean solution for this is ref counting.
|
|
170
|
-
*/
|
|
171
|
-
get delayedStore(): DisposableStore;
|
|
172
|
-
}
|