mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
update search files
This commit is contained in:
parent
3761ee6575
commit
db78402816
63
.vscode/searches/TrustedTypes.code-search
vendored
63
.vscode/searches/TrustedTypes.code-search
vendored
|
@ -4,24 +4,24 @@
|
||||||
# Excluding: *.test.ts
|
# Excluding: *.test.ts
|
||||||
# ContextLines: 3
|
# ContextLines: 3
|
||||||
|
|
||||||
26 results - 15 files
|
22 results - 14 files
|
||||||
|
|
||||||
src/vs/base/browser/markdownRenderer.ts:
|
src/vs/base/browser/markdownRenderer.ts:
|
||||||
156 const strValue = values[0];
|
161 const strValue = values[0];
|
||||||
157 const span = element.querySelector(`div[data-code="${id}"]`);
|
162 const span = element.querySelector(`div[data-code="${id}"]`);
|
||||||
158 if (span) {
|
163 if (span) {
|
||||||
159: span.innerHTML = strValue;
|
164: span.innerHTML = strValue;
|
||||||
160 }
|
165 }
|
||||||
161 }).catch(err => {
|
166 }).catch(err => {
|
||||||
162 // ignore
|
167 // ignore
|
||||||
|
|
||||||
238 return true;
|
243 return true;
|
||||||
239 }
|
244 }
|
||||||
240
|
245
|
||||||
241: element.innerHTML = insane(renderedMarkdown, {
|
246: element.innerHTML = insane(renderedMarkdown, {
|
||||||
242 allowedSchemes,
|
247 allowedSchemes,
|
||||||
243 // allowedTags should included everything that markdown renders to.
|
248 // 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.
|
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:
|
src/vs/base/browser/ui/contextview/contextview.ts:
|
||||||
157 this.shadowRootHostElement = DOM.$('.shadow-root-host');
|
157 this.shadowRootHostElement = DOM.$('.shadow-root-host');
|
||||||
|
@ -32,31 +32,6 @@ src/vs/base/browser/ui/contextview/contextview.ts:
|
||||||
162 ${SHADOW_ROOT_CSS}
|
162 ${SHADOW_ROOT_CSS}
|
||||||
163 </style>
|
163 </style>
|
||||||
|
|
||||||
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 <div style="position: absolute; width: 100%; left: 0; top: 0; height: ${layoutInfo.titleBarHeight}px; background-color: ${colorInfo.titleBarBackground}; -webkit-app-region: drag;"></div>
|
|
||||||
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>
|
|
||||||
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>
|
|
||||||
|
|
||||||
158 `;
|
|
||||||
159 } else {
|
|
||||||
160 // empty -> speical status bar color, no sidebar
|
|
||||||
161: splash.innerHTML = `
|
|
||||||
162 <div style="position: absolute; width: 100%; left: 0; top: 0; height: ${layoutInfo.titleBarHeight}px; background-color: ${colorInfo.titleBarBackground}; -webkit-app-region: drag;"></div>
|
|
||||||
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>
|
|
||||||
164 <div style="position: absolute; width: 100%; bottom: 0; left: 0; height: ${layoutInfo.statusBarHeight}px; background-color: ${colorInfo.statusBarNoFolderBackground};"></div>
|
|
||||||
|
|
||||||
src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
|
src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
|
||||||
57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
|
57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
|
||||||
58 addClass(document.body, platformClass); // used by our fonts
|
58 addClass(document.body, platformClass); // used by our fonts
|
||||||
|
@ -66,14 +41,6 @@ src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
|
||||||
62 issueReporter.render();
|
62 issueReporter.render();
|
||||||
63 document.body.style.display = 'block';
|
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 }
|
|
||||||
|
|
||||||
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
|
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
|
||||||
320 content.push(`.highest { color: ${styles.highlightForeground}; }`);
|
320 content.push(`.highest { color: ${styles.highlightForeground}; }`);
|
||||||
321 }
|
321 }
|
||||||
|
|
18
.vscode/searches/es6.code-search
vendored
18
.vscode/searches/es6.code-search
vendored
|
@ -2,7 +2,7 @@
|
||||||
# Flags: CaseSensitive WordMatch
|
# Flags: CaseSensitive WordMatch
|
||||||
# ContextLines: 2
|
# ContextLines: 2
|
||||||
|
|
||||||
14 results - 4 files
|
12 results - 4 files
|
||||||
|
|
||||||
src/vs/base/browser/dom.ts:
|
src/vs/base/browser/dom.ts:
|
||||||
83 };
|
83 };
|
||||||
|
@ -24,21 +24,9 @@ src/vs/base/browser/dom.ts:
|
||||||
src/vs/base/common/arrays.ts:
|
src/vs/base/common/arrays.ts:
|
||||||
401
|
401
|
||||||
402 /**
|
402 /**
|
||||||
403: * @deprecated ES6: use `Array.findIndex`
|
403: * @deprecated ES6: use `Array.find`
|
||||||
404 */
|
404 */
|
||||||
405 export function firstIndex<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean): number {
|
405 export function first<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean, notFoundValue: T): T;
|
||||||
|
|
||||||
417
|
|
||||||
418 /**
|
|
||||||
419: * @deprecated ES6: use `Array.find`
|
|
||||||
420 */
|
|
||||||
421 export function first<T>(array: ReadonlyArray<T>, fn: (item: T) => boolean, notFoundValue: T): T;
|
|
||||||
|
|
||||||
568
|
|
||||||
569 /**
|
|
||||||
570: * @deprecated ES6: use `Array.find`
|
|
||||||
571 */
|
|
||||||
572 export function find<T>(arr: ArrayLike<T>, predicate: (value: T, index: number, arr: ArrayLike<T>) => any): T | undefined {
|
|
||||||
|
|
||||||
src/vs/base/common/objects.ts:
|
src/vs/base/common/objects.ts:
|
||||||
115
|
115
|
||||||
|
|
58
.vscode/searches/ts36031.code-search
vendored
58
.vscode/searches/ts36031.code-search
vendored
|
@ -2,18 +2,52 @@
|
||||||
# Flags: RegExp
|
# Flags: RegExp
|
||||||
# ContextLines: 2
|
# ContextLines: 2
|
||||||
|
|
||||||
2 results - 2 files
|
8 results - 4 files
|
||||||
|
|
||||||
src/vs/base/browser/ui/tree/asyncDataTree.ts:
|
src/vs/base/browser/ui/tree/asyncDataTree.ts:
|
||||||
243 } : () => 'treeitem',
|
241 } : () => 'treeitem',
|
||||||
244 isChecked: options.accessibilityProvider!.isChecked ? (e) => {
|
242 isChecked: options.accessibilityProvider!.isChecked ? (e) => {
|
||||||
245: return !!(options.accessibilityProvider?.isChecked!(e.element as T));
|
243: return !!(options.accessibilityProvider?.isChecked!(e.element as T));
|
||||||
246 } : undefined,
|
244 } : undefined,
|
||||||
247 getAriaLabel(e) {
|
245 getAriaLabel(e) {
|
||||||
|
|
||||||
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts:
|
src/vs/platform/list/browser/listService.ts:
|
||||||
254
|
463
|
||||||
255 return debugDynamicExtensions.map(e => {
|
464 if (typeof options?.openOnSingleClick !== 'boolean' && options?.configurationService) {
|
||||||
256: const type = e.contributes?.debuggers![0].type!;
|
465: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick';
|
||||||
257 return {
|
466 this._register(options?.configurationService.onDidChangeConfiguration(() => {
|
||||||
258 label: this.getDebuggerLabel(type)!,
|
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 }
|
||||||
|
|
Loading…
Reference in a new issue