Skip to content

Commit e516bf3

Browse files
committed
updated searches
1 parent 7792c61 commit e516bf3

2 files changed

Lines changed: 79 additions & 124 deletions

File tree

.vscode/searches/TrustedTypes.code-search

Lines changed: 64 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Excluding: *.test.ts
55
# ContextLines: 3
66

7-
57 results - 39 files
7+
52 results - 34 files
88

99
src/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

103103
src/vs/base/browser/ui/tree/abstractTree.ts:
104104
1476
@@ -227,29 +227,29 @@ src/vs/editor/standalone/browser/colorizer.ts:
227227
46 }
228228

229229
src/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

254254
src/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-
289271
src/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-
342306
src/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

360324
src/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

385349
src/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-
421376
src/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

473428
src/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

.vscode/searches/es6.code-search

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
14 results - 4 files
66

77
src/vs/base/browser/dom.ts:
8-
81 };
9-
82
10-
83: /** @deprecated ES6 - use classList*/
11-
84 export const hasClass: (node: HTMLElement | SVGElement, className: string) => boolean = _classList.hasClass.bind(_classList);
8+
83 };
9+
84
1210
85: /** @deprecated ES6 - use classList*/
13-
86 export const addClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.addClass.bind(_classList);
11+
86 export const hasClass: (node: HTMLElement | SVGElement, className: string) => boolean = _classList.hasClass.bind(_classList);
1412
87: /** @deprecated ES6 - use classList*/
15-
88 export const addClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.addClasses.bind(_classList);
13+
88 export const addClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.addClass.bind(_classList);
1614
89: /** @deprecated ES6 - use classList*/
17-
90 export const removeClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.removeClass.bind(_classList);
15+
90 export const addClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.addClasses.bind(_classList);
1816
91: /** @deprecated ES6 - use classList*/
19-
92 export const removeClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.removeClasses.bind(_classList);
17+
92 export const removeClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.removeClass.bind(_classList);
2018
93: /** @deprecated ES6 - use classList*/
21-
94 export const toggleClass: (node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean) => void = _classList.toggleClass.bind(_classList);
22-
95
19+
94 export const removeClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.removeClasses.bind(_classList);
20+
95: /** @deprecated ES6 - use classList*/
21+
96 export const toggleClass: (node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean) => void = _classList.toggleClass.bind(_classList);
22+
97
2323

2424
src/vs/base/common/arrays.ts:
2525
401
@@ -66,8 +66,8 @@ src/vs/base/common/strings.ts:
6666
170 */
6767
171 export function endsWith(haystack: string, needle: string): boolean {
6868

69-
861
70-
862 /**
71-
863: * @deprecated ES6
72-
864 */
73-
865 export function repeat(s: string, count: number): string {
69+
857
70+
858 /**
71+
859: * @deprecated ES6
72+
860 */
73+
861 export function repeat(s: string, count: number): string {

0 commit comments

Comments
 (0)