44# Excluding: *.test.ts
55# ContextLines: 3
66
7- 39 results - 23 files
7+ 26 results - 15 files
88
99src/vs/base/browser/markdownRenderer.ts:
1010 156 const strValue = values[0];
@@ -32,45 +32,6 @@ src/vs/base/browser/ui/contextview/contextview.ts:
3232 162 ${SHADOW_ROOT_CSS}
3333 163 </style>
3434
35- src/vs/base/browser/ui/menu/menu.ts:
36- 229 private initializeStyleSheet(container: HTMLElement): void {
37- 230 if (isInShadowDOM(container)) {
38- 231 this.styleSheet = createStyleSheet(container);
39- 232: this.styleSheet.innerHTML = MENU_WIDGET_CSS;
40- 233 } else {
41- 234 if (!Menu.globalStyleSheet) {
42- 235 Menu.globalStyleSheet = createStyleSheet();
43- 236: Menu.globalStyleSheet.innerHTML = MENU_WIDGET_CSS;
44- 237 }
45- 238
46- 239 this.styleSheet = Menu.globalStyleSheet;
47-
48- src/vs/base/browser/ui/selectBox/selectBoxCustom.ts:
49- 367 content.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }`);
50- 368 }
51- 369
52- 370: this.styleElement.innerHTML = content.join('\n');
53- 371
54- 372 this.applyStyles();
55- 373 }
56-
57- 680 });
58- 681
59- 682
60- 683: container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
61- 684 elementWidth = dom.getTotalWidth(container);
62- 685 }
63- 686
64-
65- src/vs/base/parts/quickinput/browser/quickInput.ts:
66- 1693 }
67- 1694 const newStyles = content.join('\n');
68- 1695 if (newStyles !== this.ui.styleSheet.innerHTML) {
69- 1696: this.ui.styleSheet.innerHTML = newStyles;
70- 1697 }
71- 1698 }
72- 1699 }
73-
7435src/vs/code/electron-browser/workbench/workbench.js:
7536 124 const style = document.createElement('style');
7637 125 style.className = 'initialShellColors';
@@ -114,21 +75,13 @@ src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
11475 250 }
11576
11677src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
117- 282 this.listeners.clear();
118- 283
119- 284 const tableHead = document.createElement('thead');
120- 285: tableHead.innerHTML = `<tr>
121- 286 <th scope="col" class="cpu">${localize('cpu', "CPU %")}</th>
122- 287 <th scope="col" class="memory">${localize('memory', "Memory (MB)")}</th>
123- 288 <th scope="col" class="pid">${localize('pid', "PID")}</th>
124-
125- 319 content.push(`.highest { color: ${styles.highlightForeground}; }`);
126- 320 }
127- 321
128- 322: styleTag.innerHTML = content.join('\n');
129- 323 if (document.head) {
130- 324 document.head.appendChild(styleTag);
131- 325 }
78+ 320 content.push(`.highest { color: ${styles.highlightForeground}; }`);
79+ 321 }
80+ 322
81+ 323: styleTag.innerHTML = content.join('\n');
82+ 324 if (document.head) {
83+ 325 document.head.appendChild(styleTag);
84+ 326 }
13285
13386src/vs/editor/browser/view/domLineBreaksComputer.ts:
13487 107 allCharOffsets[i] = tmp[0];
@@ -221,41 +174,6 @@ src/vs/editor/test/browser/controller/imeTester.ts:
221174 74
222175 75 let startBtn = document.createElement('button');
223176
224- src/vs/workbench/contrib/comments/browser/commentsView.ts:
225- 109 content.push(`.comments-panel .comments-panel-container .text code { color: ${codeTextForegroundColor}; }`);
226- 110 }
227- 111
228- 112: styleElement.innerHTML = content.join('\n');
229- 113 }
230- 114
231- 115 private async renderComments(): Promise<void> {
232-
233- src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts:
234- 692 }
235- 693
236- 694 if (label) {
237- 695: this._headingLabel.innerHTML = strings.escape(label);
238- 696 this._headingLabel.setAttribute('aria-label', label);
239- 697 }
240- 698 }
241-
242- 916 font-weight: ${fontInfo.fontWeight};
243- 917 }`);
244- 918
245- 919: this._styleElement.innerHTML = content.join('\n');
246- 920
247- 921 // Editor decorations should also be responsive to theme changes
248- 922 this.setCommentEditorDecorations();
249-
250- src/vs/workbench/contrib/debug/browser/repl.ts:
251- 306 const replInputLineHeight = this.replInput.getOption(EditorOption.lineHeight);
252- 307
253- 308 // Set the font size, font family, line height and align the twistie to be centered, and input theme color
254- 309: this.styleElement.innerHTML = `
255- 310 .repl .repl-tree .expression {
256- 311 font-size: ${fontSize}px;
257- 312 font-family: ${fontFamily};
258-
259177src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
260178 454
261179 455 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
@@ -265,21 +183,13 @@ src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
265183 459 // Remove all rendered content nodes after the
266184 460 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
267185
268- 598
269- 599 private getDragImageImpl(templateData: BaseCellRenderTemplate, editor: ICodeEditor, type: 'code' | 'markdown'): HTMLElement | null {
270- 600 const dragImageContainer = DOM.$(`.cell-drag-image.monaco-list-row.focused.${type}-cell-row`);
271- 601: dragImageContainer.innerHTML = templateData.container.innerHTML;
272- 602
273- 603 const editorContainer = dragImageContainer.querySelector('.cell-editor-container');
274- 604 if (!editorContainer) {
275-
276- 610 return null;
277- 611 }
278- 612
279- 613: editorContainer.innerHTML = richEditorText;
280- 614
281- 615 return dragImageContainer;
282- 616 }
186+ 611 return null;
187+ 612 }
188+ 613
189+ 614: editorContainer.innerHTML = richEditorText;
190+ 615
191+ 616 return dragImageContainer;
192+ 617 }
283193
284194src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
285195 375 addMouseoverListeners(outputNode, outputId);
@@ -290,14 +200,6 @@ src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
290200 380 domEval(outputNode);
291201 381 } else {
292202
293- src/vs/workbench/contrib/webview/browser/webviewIconManager.ts:
294- 61 }
295- 62 }
296- 63 }
297- 64: this._styleElement.innerHTML = cssRules.join('\n');
298- 65 }
299- 66 }
300-
301203src/vs/workbench/contrib/webview/browser/pre/main.js:
302204 386 // apply default styles
303205 387 const defaultStyles = newDocument.createElement('style');
@@ -307,15 +209,6 @@ src/vs/workbench/contrib/webview/browser/pre/main.js:
307209 391
308210 392 applyStyles(newDocument, newDocument.body);
309211
310- src/vs/workbench/contrib/welcome/page/browser/welcomePage.ts:
311- 328
312- 329 const prodName = container.querySelector('.welcomePage .title .caption') as HTMLElement;
313- 330 if (prodName) {
314- 331: prodName.innerHTML = this.productService.nameLong;
315- 332 }
316- 333
317- 334 recentlyOpened.then(({ workspaces }) => {
318-
319212src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts:
320213 281
321214 282 const content = model.main.textEditorModel.getValue(EndOfLinePreference.LF);
0 commit comments