mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
updated searches
This commit is contained in:
parent
7792c61393
commit
e516bf3251
165
.vscode/searches/TrustedTypes.code-search
vendored
165
.vscode/searches/TrustedTypes.code-search
vendored
|
@ -4,7 +4,7 @@
|
||||||
# Excluding: *.test.ts
|
# Excluding: *.test.ts
|
||||||
# ContextLines: 3
|
# ContextLines: 3
|
||||||
|
|
||||||
57 results - 39 files
|
52 results - 34 files
|
||||||
|
|
||||||
src/vs/base/browser/markdownRenderer.ts:
|
src/vs/base/browser/markdownRenderer.ts:
|
||||||
156 const strValue = values[0];
|
156 const strValue = values[0];
|
||||||
|
@ -92,13 +92,13 @@ src/vs/base/browser/ui/selectBox/selectBoxCustom.ts:
|
||||||
372 this.applyStyles();
|
372 this.applyStyles();
|
||||||
373 }
|
373 }
|
||||||
|
|
||||||
705 });
|
680 });
|
||||||
706
|
681
|
||||||
707
|
682
|
||||||
708: container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
|
683: container.innerHTML = this.options[longest].text + (!!this.options[longest].decoratorRight ? (this.options[longest].decoratorRight + ' ') : '');
|
||||||
709 elementWidth = dom.getTotalWidth(container);
|
684 elementWidth = dom.getTotalWidth(container);
|
||||||
710 }
|
685 }
|
||||||
711
|
686
|
||||||
|
|
||||||
src/vs/base/browser/ui/tree/abstractTree.ts:
|
src/vs/base/browser/ui/tree/abstractTree.ts:
|
||||||
1476
|
1476
|
||||||
|
@ -227,29 +227,29 @@ src/vs/editor/standalone/browser/colorizer.ts:
|
||||||
46 }
|
46 }
|
||||||
|
|
||||||
src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts:
|
src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts:
|
||||||
211 if (!this._globalStyleElement) {
|
212 if (!this._globalStyleElement) {
|
||||||
212 this._globalStyleElement = dom.createStyleSheet();
|
213 this._globalStyleElement = dom.createStyleSheet();
|
||||||
213 this._globalStyleElement.className = 'monaco-colors';
|
214 this._globalStyleElement.className = 'monaco-colors';
|
||||||
214: this._globalStyleElement.innerHTML = this._css;
|
215: this._globalStyleElement.innerHTML = this._css;
|
||||||
215 this._styleElements.push(this._globalStyleElement);
|
216 this._styleElements.push(this._globalStyleElement);
|
||||||
216 }
|
217 }
|
||||||
217 return Disposable.None;
|
218 return Disposable.None;
|
||||||
|
|
||||||
220 private _registerShadowDomContainer(domNode: HTMLElement): IDisposable {
|
221 private _registerShadowDomContainer(domNode: HTMLElement): IDisposable {
|
||||||
221 const styleElement = dom.createStyleSheet(domNode);
|
222 const styleElement = dom.createStyleSheet(domNode);
|
||||||
222 styleElement.className = 'monaco-colors';
|
223 styleElement.className = 'monaco-colors';
|
||||||
223: styleElement.innerHTML = this._css;
|
224: styleElement.innerHTML = this._css;
|
||||||
224 this._styleElements.push(styleElement);
|
225 this._styleElements.push(styleElement);
|
||||||
225 return {
|
226 return {
|
||||||
226 dispose: () => {
|
227 dispose: () => {
|
||||||
|
|
||||||
290 ruleCollector.addRule(generateTokensCSSForColorMap(colorMap));
|
291 ruleCollector.addRule(generateTokensCSSForColorMap(colorMap));
|
||||||
291
|
292
|
||||||
292 this._css = cssRules.join('\n');
|
293 this._css = cssRules.join('\n');
|
||||||
293: this._styleElements.forEach(styleElement => styleElement.innerHTML = this._css);
|
294: this._styleElements.forEach(styleElement => styleElement.innerHTML = this._css);
|
||||||
294
|
295
|
||||||
295 TokenizationRegistry.setColorMap(colorMap);
|
296 TokenizationRegistry.setColorMap(colorMap);
|
||||||
296 this._onColorThemeChange.fire(theme);
|
297 this._onColorThemeChange.fire(theme);
|
||||||
|
|
||||||
src/vs/editor/test/browser/controller/imeTester.ts:
|
src/vs/editor/test/browser/controller/imeTester.ts:
|
||||||
55 let content = this._model.getModelLineContent(i);
|
55 let content = this._model.getModelLineContent(i);
|
||||||
|
@ -268,24 +268,6 @@ src/vs/editor/test/browser/controller/imeTester.ts:
|
||||||
74
|
74
|
||||||
75 let startBtn = document.createElement('button');
|
75 let startBtn = document.createElement('button');
|
||||||
|
|
||||||
src/vs/workbench/browser/parts/compositePart.ts:
|
|
||||||
414 const $this = this;
|
|
||||||
415 return {
|
|
||||||
416 updateTitle: (id, title, keybinding) => {
|
|
||||||
417: titleLabel.innerHTML = strings.escape(title);
|
|
||||||
418 titleLabel.title = keybinding ? nls.localize('titleTooltip', "{0} ({1})", title, keybinding) : title;
|
|
||||||
419 },
|
|
||||||
420
|
|
||||||
|
|
||||||
src/vs/workbench/browser/parts/statusbar/statusbarPart.ts:
|
|
||||||
672 this.styleElement = createStyleSheet(container);
|
|
||||||
673 }
|
|
||||||
674
|
|
||||||
675: this.styleElement.innerHTML = `.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before { border-bottom-color: ${backgroundColor}; }`;
|
|
||||||
676 }
|
|
||||||
677
|
|
||||||
678 private doCreateStatusItem(id: string, alignment: StatusbarAlignment, ...extraClasses: string[]): HTMLElement {
|
|
||||||
|
|
||||||
src/vs/workbench/contrib/comments/browser/commentsView.ts:
|
src/vs/workbench/contrib/comments/browser/commentsView.ts:
|
||||||
109 content.push(`.comments-panel .comments-panel-container .text code { color: ${codeTextForegroundColor}; }`);
|
109 content.push(`.comments-panel .comments-panel-container .text code { color: ${codeTextForegroundColor}; }`);
|
||||||
110 }
|
110 }
|
||||||
|
@ -321,24 +303,6 @@ src/vs/workbench/contrib/debug/browser/repl.ts:
|
||||||
311 font-size: ${fontSize}px;
|
311 font-size: ${fontSize}px;
|
||||||
312 font-family: ${fontFamily};
|
312 font-family: ${fontFamily};
|
||||||
|
|
||||||
src/vs/workbench/contrib/debug/browser/statusbarColorProvider.ts:
|
|
||||||
84 this.styleElement = createStyleSheet(container);
|
|
||||||
85 }
|
|
||||||
86
|
|
||||||
87: this.styleElement.innerHTML = `.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before { border-bottom-color: ${backgroundColor} !important; }`;
|
|
||||||
88 }
|
|
||||||
89
|
|
||||||
90 private getColorKey(noFolderColor: string, debuggingColor: string, normalColor: string): string {
|
|
||||||
|
|
||||||
src/vs/workbench/contrib/files/browser/views/explorerView.ts:
|
|
||||||
812
|
|
||||||
813 const newStyles = content.join('\n');
|
|
||||||
814 if (newStyles !== this.styleElement.innerHTML) {
|
|
||||||
815: this.styleElement.innerHTML = newStyles;
|
|
||||||
816 }
|
|
||||||
817 }
|
|
||||||
818
|
|
||||||
|
|
||||||
src/vs/workbench/contrib/notebook/browser/diff/notebookTextDiffList.ts:
|
src/vs/workbench/contrib/notebook/browser/diff/notebookTextDiffList.ts:
|
||||||
222
|
222
|
||||||
223 const newStyles = content.join('\n');
|
223 const newStyles = content.join('\n');
|
||||||
|
@ -358,29 +322,29 @@ src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts:
|
||||||
1039
|
1039
|
||||||
|
|
||||||
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
|
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
|
||||||
443
|
454
|
||||||
444 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
|
455 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
|
||||||
445 const dragImageContainer = DOM.$('.cell-drag-image.monaco-list-row.focused.markdown-cell-row');
|
456 const dragImageContainer = DOM.$('.cell-drag-image.monaco-list-row.focused.markdown-cell-row');
|
||||||
446: dragImageContainer.innerHTML = templateData.container.outerHTML;
|
457: dragImageContainer.innerHTML = templateData.container.outerHTML;
|
||||||
447
|
458
|
||||||
448 // Remove all rendered content nodes after the
|
459 // Remove all rendered content nodes after the
|
||||||
449 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
|
460 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
|
||||||
|
|
||||||
587
|
598
|
||||||
588 private getDragImageImpl(templateData: BaseCellRenderTemplate, editor: ICodeEditor, type: 'code' | 'markdown'): HTMLElement | null {
|
599 private getDragImageImpl(templateData: BaseCellRenderTemplate, editor: ICodeEditor, type: 'code' | 'markdown'): HTMLElement | null {
|
||||||
589 const dragImageContainer = DOM.$(`.cell-drag-image.monaco-list-row.focused.${type}-cell-row`);
|
600 const dragImageContainer = DOM.$(`.cell-drag-image.monaco-list-row.focused.${type}-cell-row`);
|
||||||
590: dragImageContainer.innerHTML = templateData.container.innerHTML;
|
601: dragImageContainer.innerHTML = templateData.container.innerHTML;
|
||||||
591
|
602
|
||||||
592 const editorContainer = dragImageContainer.querySelector('.cell-editor-container');
|
603 const editorContainer = dragImageContainer.querySelector('.cell-editor-container');
|
||||||
593 if (!editorContainer) {
|
604 if (!editorContainer) {
|
||||||
|
|
||||||
599 return null;
|
610 return null;
|
||||||
600 }
|
611 }
|
||||||
601
|
612
|
||||||
602: editorContainer.innerHTML = richEditorText;
|
613: editorContainer.innerHTML = richEditorText;
|
||||||
603
|
614
|
||||||
604 return dragImageContainer;
|
615 return dragImageContainer;
|
||||||
605 }
|
616 }
|
||||||
|
|
||||||
src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
|
src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
|
||||||
375 addMouseoverListeners(outputNode, outputId);
|
375 addMouseoverListeners(outputNode, outputId);
|
||||||
|
@ -409,15 +373,6 @@ src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts:
|
||||||
1306 .monaco-editor .dirty-diff-modified, .monaco-editor .dirty-diff-added, .monaco-editor .dirty-diff-deleted {
|
1306 .monaco-editor .dirty-diff-modified, .monaco-editor .dirty-diff-added, .monaco-editor .dirty-diff-deleted {
|
||||||
1307 opacity: ${state.visibility === 'always' ? 1 : 0};
|
1307 opacity: ${state.visibility === 'always' ? 1 : 0};
|
||||||
|
|
||||||
src/vs/workbench/contrib/watermark/browser/watermark.ts:
|
|
||||||
141 const dd = dom.append(dl, $('dd'));
|
|
||||||
142 const keybinding = new KeybindingLabel(dd, OS, { renderUnboundKeybindings: true });
|
|
||||||
143 keybinding.set(this.keybindingService.lookupKeybinding(entry.id));
|
|
||||||
144: dd.innerHTML = keybinding.element.outerHTML;
|
|
||||||
145 });
|
|
||||||
146 };
|
|
||||||
147
|
|
||||||
|
|
||||||
src/vs/workbench/contrib/webview/browser/webviewIconManager.ts:
|
src/vs/workbench/contrib/webview/browser/webviewIconManager.ts:
|
||||||
61 }
|
61 }
|
||||||
62 }
|
62 }
|
||||||
|
@ -471,13 +426,13 @@ src/vs/workbench/services/textMate/browser/abstractTextMateService.ts:
|
||||||
318
|
318
|
||||||
|
|
||||||
src/vs/workbench/services/themes/browser/workbenchThemeService.ts:
|
src/vs/workbench/services/themes/browser/workbenchThemeService.ts:
|
||||||
692 const elStyle = document.createElement('style');
|
685 const elStyle = document.createElement('style');
|
||||||
693 elStyle.type = 'text/css';
|
686 elStyle.type = 'text/css';
|
||||||
694 elStyle.className = rulesClassName;
|
687 elStyle.className = rulesClassName;
|
||||||
695: elStyle.innerHTML = styleSheetContent;
|
688: elStyle.innerHTML = styleSheetContent;
|
||||||
696 document.head.appendChild(elStyle);
|
689 document.head.appendChild(elStyle);
|
||||||
697 } else {
|
690 } else {
|
||||||
698: (<HTMLStyleElement>themeStyles[0]).innerHTML = styleSheetContent;
|
691: (<HTMLStyleElement>themeStyles[0]).innerHTML = styleSheetContent;
|
||||||
699 }
|
692 }
|
||||||
700 }
|
693 }
|
||||||
701
|
694
|
||||||
|
|
30
.vscode/searches/es6.code-search
vendored
30
.vscode/searches/es6.code-search
vendored
|
@ -5,21 +5,21 @@
|
||||||
14 results - 4 files
|
14 results - 4 files
|
||||||
|
|
||||||
src/vs/base/browser/dom.ts:
|
src/vs/base/browser/dom.ts:
|
||||||
81 };
|
83 };
|
||||||
82
|
84
|
||||||
83: /** @deprecated ES6 - use classList*/
|
|
||||||
84 export const hasClass: (node: HTMLElement | SVGElement, className: string) => boolean = _classList.hasClass.bind(_classList);
|
|
||||||
85: /** @deprecated ES6 - use classList*/
|
85: /** @deprecated ES6 - use classList*/
|
||||||
86 export const addClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.addClass.bind(_classList);
|
86 export const hasClass: (node: HTMLElement | SVGElement, className: string) => boolean = _classList.hasClass.bind(_classList);
|
||||||
87: /** @deprecated ES6 - use classList*/
|
87: /** @deprecated ES6 - use classList*/
|
||||||
88 export const addClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.addClasses.bind(_classList);
|
88 export const addClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.addClass.bind(_classList);
|
||||||
89: /** @deprecated ES6 - use classList*/
|
89: /** @deprecated ES6 - use classList*/
|
||||||
90 export const removeClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.removeClass.bind(_classList);
|
90 export const addClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.addClasses.bind(_classList);
|
||||||
91: /** @deprecated ES6 - use classList*/
|
91: /** @deprecated ES6 - use classList*/
|
||||||
92 export const removeClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.removeClasses.bind(_classList);
|
92 export const removeClass: (node: HTMLElement | SVGElement, className: string) => void = _classList.removeClass.bind(_classList);
|
||||||
93: /** @deprecated ES6 - use classList*/
|
93: /** @deprecated ES6 - use classList*/
|
||||||
94 export const toggleClass: (node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean) => void = _classList.toggleClass.bind(_classList);
|
94 export const removeClasses: (node: HTMLElement | SVGElement, ...classNames: string[]) => void = _classList.removeClasses.bind(_classList);
|
||||||
95
|
95: /** @deprecated ES6 - use classList*/
|
||||||
|
96 export const toggleClass: (node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean) => void = _classList.toggleClass.bind(_classList);
|
||||||
|
97
|
||||||
|
|
||||||
src/vs/base/common/arrays.ts:
|
src/vs/base/common/arrays.ts:
|
||||||
401
|
401
|
||||||
|
@ -66,8 +66,8 @@ src/vs/base/common/strings.ts:
|
||||||
170 */
|
170 */
|
||||||
171 export function endsWith(haystack: string, needle: string): boolean {
|
171 export function endsWith(haystack: string, needle: string): boolean {
|
||||||
|
|
||||||
861
|
857
|
||||||
862 /**
|
858 /**
|
||||||
863: * @deprecated ES6
|
859: * @deprecated ES6
|
||||||
864 */
|
860 */
|
||||||
865 export function repeat(s: string, count: number): string {
|
861 export function repeat(s: string, count: number): string {
|
||||||
|
|
Loading…
Reference in a new issue