Skip to content

Commit db78402

Browse files
committed
update search files
1 parent 3761ee6 commit db78402

File tree

3 files changed

+73
-84
lines changed

3 files changed

+73
-84
lines changed

.vscode/searches/TrustedTypes.code-search

Lines changed: 23 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
# Excluding: *.test.ts
55
# ContextLines: 3
66

7-
26 results - 15 files
7+
22 results - 14 files
88

99
src/vs/base/browser/markdownRenderer.ts:
10-
156 const strValue = values[0];
11-
157 const span = element.querySelector(`div[data-code="${id}"]`);
12-
158 if (span) {
13-
159: span.innerHTML = strValue;
14-
160 }
15-
161 }).catch(err => {
16-
162 // ignore
17-
18-
238 return true;
19-
239 }
20-
240
21-
241: element.innerHTML = insane(renderedMarkdown, {
22-
242 allowedSchemes,
23-
243 // allowedTags should included everything that markdown renders to.
24-
244 // Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure.
10+
161 const strValue = values[0];
11+
162 const span = element.querySelector(`div[data-code="${id}"]`);
12+
163 if (span) {
13+
164: span.innerHTML = strValue;
14+
165 }
15+
166 }).catch(err => {
16+
167 // ignore
17+
18+
243 return true;
19+
244 }
20+
245
21+
246: element.innerHTML = insane(renderedMarkdown, {
22+
247 allowedSchemes,
23+
248 // allowedTags should included everything that markdown renders to.
24+
249 // Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure.
2525

2626
src/vs/base/browser/ui/contextview/contextview.ts:
2727
157 this.shadowRootHostElement = DOM.$('.shadow-root-host');
@@ -32,47 +32,14 @@ src/vs/base/browser/ui/contextview/contextview.ts:
3232
162 ${SHADOW_ROOT_CSS}
3333
163 </style>
3434

35-
src/vs/code/electron-browser/workbench/workbench.js:
36-
124 const style = document.createElement('style');
37-
125 style.className = 'initialShellColors';
38-
126 document.head.appendChild(style);
39-
127: style.innerHTML = `body { background-color: ${shellBackground}; color: ${shellForeground}; margin: 0; padding: 0; }`;
40-
128
41-
129 if (data && data.layoutInfo) {
42-
130 // restore parts if possible (we might not always store layout info)
43-
44-
150
45-
151 if (configuration.folderUri || configuration.workspace) {
46-
152 // folder or workspace -> status bar color, sidebar
47-
153: splash.innerHTML = `
48-
154 <div style="position: absolute; width: 100%; left: 0; top: 0; height: ${layoutInfo.titleBarHeight}px; background-color: ${colorInfo.titleBarBackground}; -webkit-app-region: drag;"></div>
49-
155 <div style="position: absolute; height: calc(100% - ${layoutInfo.titleBarHeight}px); top: ${layoutInfo.titleBarHeight}px; ${layoutInfo.sideBarSide}: 0; width: ${layoutInfo.activityBarWidth}px; background-color: ${colorInfo.activityBarBackground};"></div>
50-
156 <div style="position: absolute; height: calc(100% - ${layoutInfo.titleBarHeight}px); top: ${layoutInfo.titleBarHeight}px; ${layoutInfo.sideBarSide}: ${layoutInfo.activityBarWidth}px; width: ${layoutInfo.sideBarWidth}px; background-color: ${colorInfo.sideBarBackground};"></div>
51-
52-
158 `;
53-
159 } else {
54-
160 // empty -> speical status bar color, no sidebar
55-
161: splash.innerHTML = `
56-
162 <div style="position: absolute; width: 100%; left: 0; top: 0; height: ${layoutInfo.titleBarHeight}px; background-color: ${colorInfo.titleBarBackground}; -webkit-app-region: drag;"></div>
57-
163 <div style="position: absolute; height: calc(100% - ${layoutInfo.titleBarHeight}px); top: ${layoutInfo.titleBarHeight}px; ${layoutInfo.sideBarSide}: 0; width: ${layoutInfo.activityBarWidth}px; background-color: ${colorInfo.activityBarBackground};"></div>
58-
164 <div style="position: absolute; width: 100%; bottom: 0; left: 0; height: ${layoutInfo.statusBarHeight}px; background-color: ${colorInfo.statusBarNoFolderBackground};"></div>
59-
6035
src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
61-
57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
62-
58 addClass(document.body, platformClass); // used by our fonts
63-
59
64-
60: document.body.innerHTML = BaseHtml();
65-
61 const issueReporter = new IssueReporter(configuration);
66-
62 issueReporter.render();
67-
63 document.body.style.display = 'block';
68-
69-
244 content.push(`.monaco-text-button:not(.disabled):hover, .monaco-text-button:focus { background-color: ${styles.buttonHoverBackground} !important; }`);
70-
245 }
71-
246
72-
247: styleTag.innerHTML = content.join('\n');
73-
248 document.head.appendChild(styleTag);
74-
249 document.body.style.color = styles.color || '';
75-
250 }
36+
57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
37+
58 addClass(document.body, platformClass); // used by our fonts
38+
59
39+
60: document.body.innerHTML = BaseHtml();
40+
61 const issueReporter = new IssueReporter(configuration);
41+
62 issueReporter.render();
42+
63 document.body.style.display = 'block';
7643

7744
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
7845
320 content.push(`.highest { color: ${styles.highlightForeground}; }`);

.vscode/searches/es6.code-search

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Flags: CaseSensitive WordMatch
33
# ContextLines: 2
44

5-
14 results - 4 files
5+
12 results - 4 files
66

77
src/vs/base/browser/dom.ts:
88
83 };
@@ -24,21 +24,9 @@ src/vs/base/browser/dom.ts:
2424
src/vs/base/common/arrays.ts:
2525
401
2626
402 /**
27-
403: * @deprecated ES6: use `Array.findIndex`
27+
403: * @deprecated ES6: use `Array.find`
2828
404 */
29-
405 export function firstIndex<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean): number {
30-
31-
417
32-
418 /**
33-
419: * @deprecated ES6: use `Array.find`
34-
420 */
35-
421 export function first<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean, notFoundValue: T): T;
36-
37-
568
38-
569 /**
39-
570: * @deprecated ES6: use `Array.find`
40-
571 */
41-
572 export function find<T>(arr: ArrayLike<T>, predicate: (value: T, index: number, arr: ArrayLike<T>) => any): T | undefined {
29+
405 export function first<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean, notFoundValue: T): T;
4230

4331
src/vs/base/common/objects.ts:
4432
115

.vscode/searches/ts36031.code-search

Lines changed: 47 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,52 @@
22
# Flags: RegExp
33
# ContextLines: 2
44

5-
2 results - 2 files
5+
8 results - 4 files
66

77
src/vs/base/browser/ui/tree/asyncDataTree.ts:
8-
243 } : () => 'treeitem',
9-
244 isChecked: options.accessibilityProvider!.isChecked ? (e) => {
10-
245: return !!(options.accessibilityProvider?.isChecked!(e.element as T));
11-
246 } : undefined,
12-
247 getAriaLabel(e) {
13-
14-
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts:
15-
254
16-
255 return debugDynamicExtensions.map(e => {
17-
256: const type = e.contributes?.debuggers![0].type!;
18-
257 return {
19-
258 label: this.getDebuggerLabel(type)!,
8+
241 } : () => 'treeitem',
9+
242 isChecked: options.accessibilityProvider!.isChecked ? (e) => {
10+
243: return !!(options.accessibilityProvider?.isChecked!(e.element as T));
11+
244 } : undefined,
12+
245 getAriaLabel(e) {
13+
14+
src/vs/platform/list/browser/listService.ts:
15+
463
16+
464 if (typeof options?.openOnSingleClick !== 'boolean' && options?.configurationService) {
17+
465: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick';
18+
466 this._register(options?.configurationService.onDidChangeConfiguration(() => {
19+
467: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick';
20+
468 }));
21+
469 } else {
22+
23+
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts:
24+
1526
25+
1527 await this._ensureActiveKernel();
26+
1528: await this._activeKernel?.cancelNotebookCell!(this._notebookViewModel!.uri, undefined);
27+
1529 }
28+
1530
29+
30+
1535
31+
1536 await this._ensureActiveKernel();
32+
1537: await this._activeKernel?.executeNotebookCell!(this._notebookViewModel!.uri, undefined);
33+
1538 }
34+
1539
35+
36+
1553
37+
1554 await this._ensureActiveKernel();
38+
1555: await this._activeKernel?.cancelNotebookCell!(this._notebookViewModel!.uri, cell.handle);
39+
1556 }
40+
1557
41+
42+
1567
43+
1568 await this._ensureActiveKernel();
44+
1569: await this._activeKernel?.executeNotebookCell!(this._notebookViewModel!.uri, cell.handle);
45+
1570 }
46+
1571
47+
48+
src/vs/workbench/contrib/webview/electron-browser/iframeWebviewElement.ts:
49+
89 .then(() => this._resourceRequestManager.ensureReady())
50+
90 .then(() => {
51+
91: this.element?.contentWindow!.postMessage({ channel, args: data }, '*');
52+
92 });
53+
93 }

0 commit comments

Comments
 (0)