Skip to content

Commit

Permalink
update search file, #106395
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 11, 2020
1 parent 8784732 commit 55a7f0a
Showing 1 changed file with 15 additions and 122 deletions.
137 changes: 15 additions & 122 deletions .vscode/searches/TrustedTypes.code-search
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Excluding: *.test.ts
# ContextLines: 3

39 results - 23 files
26 results - 15 files

src/vs/base/browser/markdownRenderer.ts:
156 const strValue = values[0];
Expand Down Expand Up @@ -32,45 +32,6 @@ src/vs/base/browser/ui/contextview/contextview.ts:
162 ${SHADOW_ROOT_CSS}
163 </style>

src/vs/base/browser/ui/menu/menu.ts:
229 private initializeStyleSheet(container: HTMLElement): void {
230 if (isInShadowDOM(container)) {
231 this.styleSheet = createStyleSheet(container);
232: this.styleSheet.innerHTML = MENU_WIDGET_CSS;
233 } else {
234 if (!Menu.globalStyleSheet) {
235 Menu.globalStyleSheet = createStyleSheet();
236: Menu.globalStyleSheet.innerHTML = MENU_WIDGET_CSS;
237 }
238
239 this.styleSheet = Menu.globalStyleSheet;

src/vs/base/browser/ui/selectBox/selectBoxCustom.ts:
367 content.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }`);
368 }
369
370: this.styleElement.innerHTML = content.join('\n');
371
372 this.applyStyles();
373 }

680 });
681
682
683: container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
684 elementWidth = dom.getTotalWidth(container);
685 }
686

src/vs/base/parts/quickinput/browser/quickInput.ts:
1693 }
1694 const newStyles = content.join('\n');
1695 if (newStyles !== this.ui.styleSheet.innerHTML) {
1696: this.ui.styleSheet.innerHTML = newStyles;
1697 }
1698 }
1699 }

src/vs/code/electron-browser/workbench/workbench.js:
124 const style = document.createElement('style');
125 style.className = 'initialShellColors';
Expand Down Expand Up @@ -114,21 +75,13 @@ src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
250 }

src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
282 this.listeners.clear();
283
284 const tableHead = document.createElement('thead');
285: tableHead.innerHTML = `<tr>
286 <th scope="col" class="cpu">${localize('cpu', "CPU %")}</th>
287 <th scope="col" class="memory">${localize('memory', "Memory (MB)")}</th>
288 <th scope="col" class="pid">${localize('pid', "PID")}</th>

319 content.push(`.highest { color: ${styles.highlightForeground}; }`);
320 }
321
322: styleTag.innerHTML = content.join('\n');
323 if (document.head) {
324 document.head.appendChild(styleTag);
325 }
320 content.push(`.highest { color: ${styles.highlightForeground}; }`);
321 }
322
323: styleTag.innerHTML = content.join('\n');
324 if (document.head) {
325 document.head.appendChild(styleTag);
326 }

src/vs/editor/browser/view/domLineBreaksComputer.ts:
107 allCharOffsets[i] = tmp[0];
Expand Down Expand Up @@ -221,41 +174,6 @@ src/vs/editor/test/browser/controller/imeTester.ts:
74
75 let startBtn = document.createElement('button');

src/vs/workbench/contrib/comments/browser/commentsView.ts:
109 content.push(`.comments-panel .comments-panel-container .text code { color: ${codeTextForegroundColor}; }`);
110 }
111
112: styleElement.innerHTML = content.join('\n');
113 }
114
115 private async renderComments(): Promise<void> {

src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts:
692 }
693
694 if (label) {
695: this._headingLabel.innerHTML = strings.escape(label);
696 this._headingLabel.setAttribute('aria-label', label);
697 }
698 }

916 font-weight: ${fontInfo.fontWeight};
917 }`);
918
919: this._styleElement.innerHTML = content.join('\n');
920
921 // Editor decorations should also be responsive to theme changes
922 this.setCommentEditorDecorations();

src/vs/workbench/contrib/debug/browser/repl.ts:
306 const replInputLineHeight = this.replInput.getOption(EditorOption.lineHeight);
307
308 // Set the font size, font family, line height and align the twistie to be centered, and input theme color
309: this.styleElement.innerHTML = `
310 .repl .repl-tree .expression {
311 font-size: ${fontSize}px;
312 font-family: ${fontFamily};

src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
454
455 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
Expand All @@ -265,21 +183,13 @@ src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
459 // Remove all rendered content nodes after the
460 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;

598
599 private getDragImageImpl(templateData: BaseCellRenderTemplate, editor: ICodeEditor, type: 'code' | 'markdown'): HTMLElement | null {
600 const dragImageContainer = DOM.$(`.cell-drag-image.monaco-list-row.focused.${type}-cell-row`);
601: dragImageContainer.innerHTML = templateData.container.innerHTML;
602
603 const editorContainer = dragImageContainer.querySelector('.cell-editor-container');
604 if (!editorContainer) {

610 return null;
611 }
612
613: editorContainer.innerHTML = richEditorText;
614
615 return dragImageContainer;
616 }
611 return null;
612 }
613
614: editorContainer.innerHTML = richEditorText;
615
616 return dragImageContainer;
617 }

src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
375 addMouseoverListeners(outputNode, outputId);
Expand All @@ -290,14 +200,6 @@ src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
380 domEval(outputNode);
381 } else {

src/vs/workbench/contrib/webview/browser/webviewIconManager.ts:
61 }
62 }
63 }
64: this._styleElement.innerHTML = cssRules.join('\n');
65 }
66 }

src/vs/workbench/contrib/webview/browser/pre/main.js:
386 // apply default styles
387 const defaultStyles = newDocument.createElement('style');
Expand All @@ -307,15 +209,6 @@ src/vs/workbench/contrib/webview/browser/pre/main.js:
391
392 applyStyles(newDocument, newDocument.body);

src/vs/workbench/contrib/welcome/page/browser/welcomePage.ts:
328
329 const prodName = container.querySelector('.welcomePage .title .caption') as HTMLElement;
330 if (prodName) {
331: prodName.innerHTML = this.productService.nameLong;
332 }
333
334 recentlyOpened.then(({ workspaces }) => {

src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts:
281
282 const content = model.main.textEditorModel.getValue(EndOfLinePreference.LF);
Expand Down

0 comments on commit 55a7f0a

Please sign in to comment.