44# Excluding: *.test.ts
55# ContextLines: 3
66
7- 57 results - 39 files
7+ 52 results - 34 files
88
99src/vs/base/browser/markdownRenderer.ts:
1010 156 const strValue = values[0];
@@ -92,13 +92,13 @@ src/vs/base/browser/ui/selectBox/selectBoxCustom.ts:
9292 372 this.applyStyles();
9393 373 }
9494
95- 705 });
96- 706
97- 707
98- 708 : container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
99- 709 elementWidth = dom.getTotalWidth(container);
100- 710 }
101- 711
95+ 680 });
96+ 681
97+ 682
98+ 683 : container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
99+ 684 elementWidth = dom.getTotalWidth(container);
100+ 685 }
101+ 686
102102
103103src/vs/base/browser/ui/tree/abstractTree.ts:
104104 1476
@@ -227,29 +227,29 @@ src/vs/editor/standalone/browser/colorizer.ts:
227227 46 }
228228
229229src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts:
230- 211 if (!this._globalStyleElement) {
231- 212 this._globalStyleElement = dom.createStyleSheet();
232- 213 this._globalStyleElement.className = 'monaco-colors';
233- 214 : this._globalStyleElement.innerHTML = this._css;
234- 215 this._styleElements.push(this._globalStyleElement);
235- 216 }
236- 217 return Disposable.None;
237-
238- 220 private _registerShadowDomContainer(domNode: HTMLElement): IDisposable {
239- 221 const styleElement = dom.createStyleSheet(domNode);
240- 222 styleElement.className = 'monaco-colors';
241- 223 : styleElement.innerHTML = this._css;
242- 224 this._styleElements.push(styleElement);
243- 225 return {
244- 226 dispose: () => {
245-
246- 290 ruleCollector.addRule(generateTokensCSSForColorMap(colorMap));
247- 291
248- 292 this._css = cssRules.join('\n');
249- 293 : this._styleElements.forEach(styleElement => styleElement.innerHTML = this._css);
250- 294
251- 295 TokenizationRegistry.setColorMap(colorMap);
252- 296 this._onColorThemeChange.fire(theme);
230+ 212 if (!this._globalStyleElement) {
231+ 213 this._globalStyleElement = dom.createStyleSheet();
232+ 214 this._globalStyleElement.className = 'monaco-colors';
233+ 215 : this._globalStyleElement.innerHTML = this._css;
234+ 216 this._styleElements.push(this._globalStyleElement);
235+ 217 }
236+ 218 return Disposable.None;
237+
238+ 221 private _registerShadowDomContainer(domNode: HTMLElement): IDisposable {
239+ 222 const styleElement = dom.createStyleSheet(domNode);
240+ 223 styleElement.className = 'monaco-colors';
241+ 224 : styleElement.innerHTML = this._css;
242+ 225 this._styleElements.push(styleElement);
243+ 226 return {
244+ 227 dispose: () => {
245+
246+ 291 ruleCollector.addRule(generateTokensCSSForColorMap(colorMap));
247+ 292
248+ 293 this._css = cssRules.join('\n');
249+ 294 : this._styleElements.forEach(styleElement => styleElement.innerHTML = this._css);
250+ 295
251+ 296 TokenizationRegistry.setColorMap(colorMap);
252+ 297 this._onColorThemeChange.fire(theme);
253253
254254src/vs/editor/test/browser/controller/imeTester.ts:
255255 55 let content = this._model.getModelLineContent(i);
@@ -268,24 +268,6 @@ src/vs/editor/test/browser/controller/imeTester.ts:
268268 74
269269 75 let startBtn = document.createElement('button');
270270
271- src/vs/workbench/browser/parts/compositePart.ts:
272- 414 const $this = this;
273- 415 return {
274- 416 updateTitle: (id, title, keybinding) => {
275- 417: titleLabel.innerHTML = strings.escape(title);
276- 418 titleLabel.title = keybinding ? nls.localize('titleTooltip', "{0} ({1})", title, keybinding) : title;
277- 419 },
278- 420
279-
280- src/vs/workbench/browser/parts/statusbar/statusbarPart.ts:
281- 672 this.styleElement = createStyleSheet(container);
282- 673 }
283- 674
284- 675: this.styleElement.innerHTML = `.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before { border-bottom-color: ${backgroundColor}; }`;
285- 676 }
286- 677
287- 678 private doCreateStatusItem(id: string, alignment: StatusbarAlignment, ...extraClasses: string[]): HTMLElement {
288-
289271src/vs/workbench/contrib/comments/browser/commentsView.ts:
290272 109 content.push(`.comments-panel .comments-panel-container .text code { color: ${codeTextForegroundColor}; }`);
291273 110 }
@@ -321,24 +303,6 @@ src/vs/workbench/contrib/debug/browser/repl.ts:
321303 311 font-size: ${fontSize}px;
322304 312 font-family: ${fontFamily};
323305
324- src/vs/workbench/contrib/debug/browser/statusbarColorProvider.ts:
325- 84 this.styleElement = createStyleSheet(container);
326- 85 }
327- 86
328- 87: this.styleElement.innerHTML = `.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before { border-bottom-color: ${backgroundColor} !important; }`;
329- 88 }
330- 89
331- 90 private getColorKey(noFolderColor: string, debuggingColor: string, normalColor: string): string {
332-
333- src/vs/workbench/contrib/files/browser/views/explorerView.ts:
334- 812
335- 813 const newStyles = content.join('\n');
336- 814 if (newStyles !== this.styleElement.innerHTML) {
337- 815: this.styleElement.innerHTML = newStyles;
338- 816 }
339- 817 }
340- 818
341-
342306src/vs/workbench/contrib/notebook/browser/diff/notebookTextDiffList.ts:
343307 222
344308 223 const newStyles = content.join('\n');
@@ -358,29 +322,29 @@ src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts:
358322 1039
359323
360324src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
361- 443
362- 444 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
363- 445 const dragImageContainer = DOM.$('.cell-drag-image.monaco-list-row.focused.markdown-cell-row');
364- 446 : dragImageContainer.innerHTML = templateData.container.outerHTML;
365- 447
366- 448 // Remove all rendered content nodes after the
367- 449 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
368-
369- 587
370- 588 private getDragImageImpl(templateData: BaseCellRenderTemplate, editor: ICodeEditor, type: 'code' | 'markdown'): HTMLElement | null {
371- 589 const dragImageContainer = DOM.$(`.cell-drag-image.monaco-list-row.focused.${type}-cell-row`);
372- 590 : dragImageContainer.innerHTML = templateData.container.innerHTML;
373- 591
374- 592 const editorContainer = dragImageContainer.querySelector('.cell-editor-container');
375- 593 if (!editorContainer) {
376-
377- 599 return null;
378- 600 }
379- 601
380- 602 : editorContainer.innerHTML = richEditorText;
381- 603
382- 604 return dragImageContainer;
383- 605 }
325+ 454
326+ 455 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
327+ 456 const dragImageContainer = DOM.$('.cell-drag-image.monaco-list-row.focused.markdown-cell-row');
328+ 457 : dragImageContainer.innerHTML = templateData.container.outerHTML;
329+ 458
330+ 459 // Remove all rendered content nodes after the
331+ 460 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
332+
333+ 598
334+ 599 private getDragImageImpl(templateData: BaseCellRenderTemplate, editor: ICodeEditor, type: 'code' | 'markdown'): HTMLElement | null {
335+ 600 const dragImageContainer = DOM.$(`.cell-drag-image.monaco-list-row.focused.${type}-cell-row`);
336+ 601 : dragImageContainer.innerHTML = templateData.container.innerHTML;
337+ 602
338+ 603 const editorContainer = dragImageContainer.querySelector('.cell-editor-container');
339+ 604 if (!editorContainer) {
340+
341+ 610 return null;
342+ 611 }
343+ 612
344+ 613 : editorContainer.innerHTML = richEditorText;
345+ 614
346+ 615 return dragImageContainer;
347+ 616 }
384348
385349src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
386350 375 addMouseoverListeners(outputNode, outputId);
@@ -409,15 +373,6 @@ src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts:
409373 1306 .monaco-editor .dirty-diff-modified, .monaco-editor .dirty-diff-added, .monaco-editor .dirty-diff-deleted {
410374 1307 opacity: ${state.visibility === 'always' ? 1 : 0};
411375
412- src/vs/workbench/contrib/watermark/browser/watermark.ts:
413- 141 const dd = dom.append(dl, $('dd'));
414- 142 const keybinding = new KeybindingLabel(dd, OS, { renderUnboundKeybindings: true });
415- 143 keybinding.set(this.keybindingService.lookupKeybinding(entry.id));
416- 144: dd.innerHTML = keybinding.element.outerHTML;
417- 145 });
418- 146 };
419- 147
420-
421376src/vs/workbench/contrib/webview/browser/webviewIconManager.ts:
422377 61 }
423378 62 }
@@ -471,13 +426,13 @@ src/vs/workbench/services/textMate/browser/abstractTextMateService.ts:
471426 318
472427
473428src/vs/workbench/services/themes/browser/workbenchThemeService.ts:
474- 692 const elStyle = document.createElement('style');
475- 693 elStyle.type = 'text/css';
476- 694 elStyle.className = rulesClassName;
477- 695 : elStyle.innerHTML = styleSheetContent;
478- 696 document.head.appendChild(elStyle);
479- 697 } else {
480- 698 : (<HTMLStyleElement>themeStyles[0]).innerHTML = styleSheetContent;
481- 699 }
482- 700 }
483- 701
429+ 685 const elStyle = document.createElement('style');
430+ 686 elStyle.type = 'text/css';
431+ 687 elStyle.className = rulesClassName;
432+ 688 : elStyle.innerHTML = styleSheetContent;
433+ 689 document.head.appendChild(elStyle);
434+ 690 } else {
435+ 691 : (<HTMLStyleElement>themeStyles[0]).innerHTML = styleSheetContent;
436+ 692 }
437+ 693 }
438+ 694
0 commit comments