From db784028161e7ffde7fcf586abc618015a115932 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 14 Sep 2020 15:38:31 +0200 Subject: [PATCH] update search files --- .vscode/searches/TrustedTypes.code-search | 77 +++++++---------------- .vscode/searches/es6.code-search | 18 +----- .vscode/searches/ts36031.code-search | 58 +++++++++++++---- 3 files changed, 71 insertions(+), 82 deletions(-) diff --git a/.vscode/searches/TrustedTypes.code-search b/.vscode/searches/TrustedTypes.code-search index 87510473f03..4b61b3e0585 100644 --- a/.vscode/searches/TrustedTypes.code-search +++ b/.vscode/searches/TrustedTypes.code-search @@ -4,24 +4,24 @@ # Excluding: *.test.ts # ContextLines: 3 -26 results - 15 files +22 results - 14 files src/vs/base/browser/markdownRenderer.ts: - 156 const strValue = values[0]; - 157 const span = element.querySelector(`div[data-code="${id}"]`); - 158 if (span) { - 159: span.innerHTML = strValue; - 160 } - 161 }).catch(err => { - 162 // ignore + 161 const strValue = values[0]; + 162 const span = element.querySelector(`div[data-code="${id}"]`); + 163 if (span) { + 164: span.innerHTML = strValue; + 165 } + 166 }).catch(err => { + 167 // ignore - 238 return true; - 239 } - 240 - 241: element.innerHTML = insane(renderedMarkdown, { - 242 allowedSchemes, - 243 // allowedTags should included everything that markdown renders to. - 244 // Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure. + 243 return true; + 244 } + 245 + 246: element.innerHTML = insane(renderedMarkdown, { + 247 allowedSchemes, + 248 // allowedTags should included everything that markdown renders to. + 249 // Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure. src/vs/base/browser/ui/contextview/contextview.ts: 157 this.shadowRootHostElement = DOM.$('.shadow-root-host'); @@ -32,47 +32,14 @@ src/vs/base/browser/ui/contextview/contextview.ts: 162 ${SHADOW_ROOT_CSS} 163 -src/vs/code/electron-browser/workbench/workbench.js: - 124 const style = document.createElement('style'); - 125 style.className = 'initialShellColors'; - 126 document.head.appendChild(style); - 127: style.innerHTML = `body { background-color: ${shellBackground}; color: ${shellForeground}; margin: 0; padding: 0; }`; - 128 - 129 if (data && data.layoutInfo) { - 130 // restore parts if possible (we might not always store layout info) - - 150 - 151 if (configuration.folderUri || configuration.workspace) { - 152 // folder or workspace -> status bar color, sidebar - 153: splash.innerHTML = ` - 154
- 155
- 156
- - 158 `; - 159 } else { - 160 // empty -> speical status bar color, no sidebar - 161: splash.innerHTML = ` - 162
- 163
- 164
- src/vs/code/electron-sandbox/issue/issueReporterMain.ts: - 57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac'; - 58 addClass(document.body, platformClass); // used by our fonts - 59 - 60: document.body.innerHTML = BaseHtml(); - 61 const issueReporter = new IssueReporter(configuration); - 62 issueReporter.render(); - 63 document.body.style.display = 'block'; - - 244 content.push(`.monaco-text-button:not(.disabled):hover, .monaco-text-button:focus { background-color: ${styles.buttonHoverBackground} !important; }`); - 245 } - 246 - 247: styleTag.innerHTML = content.join('\n'); - 248 document.head.appendChild(styleTag); - 249 document.body.style.color = styles.color || ''; - 250 } + 57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac'; + 58 addClass(document.body, platformClass); // used by our fonts + 59 + 60: document.body.innerHTML = BaseHtml(); + 61 const issueReporter = new IssueReporter(configuration); + 62 issueReporter.render(); + 63 document.body.style.display = 'block'; src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts: 320 content.push(`.highest { color: ${styles.highlightForeground}; }`); diff --git a/.vscode/searches/es6.code-search b/.vscode/searches/es6.code-search index 54d4f0ea795..1e1bdd94188 100644 --- a/.vscode/searches/es6.code-search +++ b/.vscode/searches/es6.code-search @@ -2,7 +2,7 @@ # Flags: CaseSensitive WordMatch # ContextLines: 2 -14 results - 4 files +12 results - 4 files src/vs/base/browser/dom.ts: 83 }; @@ -24,21 +24,9 @@ src/vs/base/browser/dom.ts: src/vs/base/common/arrays.ts: 401 402 /** - 403: * @deprecated ES6: use `Array.findIndex` + 403: * @deprecated ES6: use `Array.find` 404 */ - 405 export function firstIndex(array: ReadonlyArray, fn: (item: T) => boolean): number { - - 417 - 418 /** - 419: * @deprecated ES6: use `Array.find` - 420 */ - 421 export function first(array: ReadonlyArray, fn: (item: T) => boolean, notFoundValue: T): T; - - 568 - 569 /** - 570: * @deprecated ES6: use `Array.find` - 571 */ - 572 export function find(arr: ArrayLike, predicate: (value: T, index: number, arr: ArrayLike) => any): T | undefined { + 405 export function first(array: ReadonlyArray, fn: (item: T) => boolean, notFoundValue: T): T; src/vs/base/common/objects.ts: 115 diff --git a/.vscode/searches/ts36031.code-search b/.vscode/searches/ts36031.code-search index 8a74db2a9ae..51071b8840a 100644 --- a/.vscode/searches/ts36031.code-search +++ b/.vscode/searches/ts36031.code-search @@ -2,18 +2,52 @@ # Flags: RegExp # ContextLines: 2 -2 results - 2 files +8 results - 4 files src/vs/base/browser/ui/tree/asyncDataTree.ts: - 243 } : () => 'treeitem', - 244 isChecked: options.accessibilityProvider!.isChecked ? (e) => { - 245: return !!(options.accessibilityProvider?.isChecked!(e.element as T)); - 246 } : undefined, - 247 getAriaLabel(e) { + 241 } : () => 'treeitem', + 242 isChecked: options.accessibilityProvider!.isChecked ? (e) => { + 243: return !!(options.accessibilityProvider?.isChecked!(e.element as T)); + 244 } : undefined, + 245 getAriaLabel(e) { -src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts: - 254 - 255 return debugDynamicExtensions.map(e => { - 256: const type = e.contributes?.debuggers![0].type!; - 257 return { - 258 label: this.getDebuggerLabel(type)!, +src/vs/platform/list/browser/listService.ts: + 463 + 464 if (typeof options?.openOnSingleClick !== 'boolean' && options?.configurationService) { + 465: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick'; + 466 this._register(options?.configurationService.onDidChangeConfiguration(() => { + 467: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick'; + 468 })); + 469 } else { + +src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts: + 1526 + 1527 await this._ensureActiveKernel(); + 1528: await this._activeKernel?.cancelNotebookCell!(this._notebookViewModel!.uri, undefined); + 1529 } + 1530 + + 1535 + 1536 await this._ensureActiveKernel(); + 1537: await this._activeKernel?.executeNotebookCell!(this._notebookViewModel!.uri, undefined); + 1538 } + 1539 + + 1553 + 1554 await this._ensureActiveKernel(); + 1555: await this._activeKernel?.cancelNotebookCell!(this._notebookViewModel!.uri, cell.handle); + 1556 } + 1557 + + 1567 + 1568 await this._ensureActiveKernel(); + 1569: await this._activeKernel?.executeNotebookCell!(this._notebookViewModel!.uri, cell.handle); + 1570 } + 1571 + +src/vs/workbench/contrib/webview/electron-browser/iframeWebviewElement.ts: + 89 .then(() => this._resourceRequestManager.ensureReady()) + 90 .then(() => { + 91: this.element?.contentWindow!.postMessage({ channel, args: data }, '*'); + 92 }); + 93 }