Skip to content

Commit 2af1bdd

Browse files
committed
update search file
1 parent ea3c3a0 commit 2af1bdd

1 file changed

Lines changed: 61 additions & 61 deletions

File tree

.vscode/searches/TrustedTypes.code-search

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ src/vs/base/browser/ui/contextview/contextview.ts:
3333
163 </style>
3434

3535
src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
36-
57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
37-
58 addClass(document.body, platformClass); // used by our fonts
38-
59
39-
60: document.body.innerHTML = BaseHtml();
40-
61 const issueReporter = new IssueReporter(configuration);
41-
62 issueReporter.render();
42-
63 document.body.style.display = 'block';
36+
58 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
37+
59 document.body.classList.add(platformClass); // used by our fonts
38+
60
39+
61: document.body.innerHTML = BaseHtml();
40+
62 const issueReporter = new IssueReporter(configuration);
41+
63 issueReporter.render();
42+
64 document.body.style.display = 'block';
4343

4444
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
45-
320 content.push(`.highest { color: ${styles.highlightForeground}; }`);
46-
321 }
47-
322
48-
323: styleTag.innerHTML = content.join('\n');
49-
324 if (document.head) {
50-
325 document.head.appendChild(styleTag);
51-
326 }
45+
321 content.push(`.highest { color: ${styles.highlightForeground}; }`);
46+
322 }
47+
323
48+
324: styleTag.innerHTML = content.join('\n');
49+
325 if (document.head) {
50+
326 document.head.appendChild(styleTag);
51+
327 }
5252

5353
src/vs/editor/browser/view/domLineBreaksComputer.ts:
5454
107 allCharOffsets[i] = tmp[0];
@@ -100,29 +100,29 @@ src/vs/editor/standalone/browser/colorizer.ts:
100100
46 }
101101

102102
src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts:
103-
212 if (!this._globalStyleElement) {
104-
213 this._globalStyleElement = dom.createStyleSheet();
105-
214 this._globalStyleElement.className = 'monaco-colors';
106-
215: this._globalStyleElement.innerHTML = this._css;
107-
216 this._styleElements.push(this._globalStyleElement);
108-
217 }
109-
218 return Disposable.None;
110-
111-
221 private _registerShadowDomContainer(domNode: HTMLElement): IDisposable {
112-
222 const styleElement = dom.createStyleSheet(domNode);
113-
223 styleElement.className = 'monaco-colors';
114-
224: styleElement.innerHTML = this._css;
115-
225 this._styleElements.push(styleElement);
116-
226 return {
117-
227 dispose: () => {
118-
119-
291 ruleCollector.addRule(generateTokensCSSForColorMap(colorMap));
120-
292
121-
293 this._css = cssRules.join('\n');
122-
294: this._styleElements.forEach(styleElement => styleElement.innerHTML = this._css);
123-
295
124-
296 TokenizationRegistry.setColorMap(colorMap);
125-
297 this._onColorThemeChange.fire(theme);
103+
232 if (!this._globalStyleElement) {
104+
233 this._globalStyleElement = dom.createStyleSheet();
105+
234 this._globalStyleElement.className = 'monaco-colors';
106+
235: this._globalStyleElement.innerHTML = this._allCSS;
107+
236 this._styleElements.push(this._globalStyleElement);
108+
237 }
109+
238 return Disposable.None;
110+
111+
241 private _registerShadowDomContainer(domNode: HTMLElement): IDisposable {
112+
242 const styleElement = dom.createStyleSheet(domNode);
113+
243 styleElement.className = 'monaco-colors';
114+
244: styleElement.innerHTML = this._allCSS;
115+
245 this._styleElements.push(styleElement);
116+
246 return {
117+
247 dispose: () => {
118+
119+
321
120+
322 private _updateCSS(): void {
121+
323 this._allCSS = `${this._codiconCSS}\n${this._themeCSS}`;
122+
324: this._styleElements.forEach(styleElement => styleElement.innerHTML = this._allCSS);
123+
325 }
124+
326
125+
327 public getFileIconTheme(): IFileIconTheme {
126126

127127
src/vs/editor/test/browser/controller/imeTester.ts:
128128
55 let content = this._model.getModelLineContent(i);
@@ -142,21 +142,21 @@ src/vs/editor/test/browser/controller/imeTester.ts:
142142
75 let startBtn = document.createElement('button');
143143

144144
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
145-
454
146-
455 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
147-
456 const dragImageContainer = DOM.$('.cell-drag-image.monaco-list-row.focused.markdown-cell-row');
148-
457: dragImageContainer.innerHTML = templateData.container.outerHTML;
149-
458
150-
459 // Remove all rendered content nodes after the
151-
460 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
152-
153-
611 return null;
154-
612 }
155-
613
156-
614: editorContainer.innerHTML = richEditorText;
157-
615
158-
616 return dragImageContainer;
159-
617 }
145+
455
146+
456 private getMarkdownDragImage(templateData: MarkdownCellRenderTemplate): HTMLElement {
147+
457 const dragImageContainer = DOM.$('.cell-drag-image.monaco-list-row.focused.markdown-cell-row');
148+
458: dragImageContainer.innerHTML = templateData.container.outerHTML;
149+
459
150+
460 // Remove all rendered content nodes after the
151+
461 const markdownContent = dragImageContainer.querySelector('.cell.markdown')!;
152+
153+
641 return null;
154+
642 }
155+
643
156+
644: editorContainer.innerHTML = richEditorText;
157+
645
158+
646 return dragImageContainer;
159+
647 }
160160

161161
src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
162162
375 addMouseoverListeners(outputNode, outputId);
@@ -165,21 +165,21 @@ src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
165165
378: outputNode.innerHTML = content.htmlContent;
166166
379 cellOutputContainer.appendChild(outputNode);
167167
380 domEval(outputNode);
168-
381 } else {
168+
381 } else if (preloadErrs.some(e => !!e)) {
169169

170170
src/vs/workbench/contrib/webview/browser/pre/main.js:
171-
386 // apply default styles
172-
387 const defaultStyles = newDocument.createElement('style');
173-
388 defaultStyles.id = '_defaultStyles';
174-
389: defaultStyles.innerHTML = defaultCssRules;
175-
390 newDocument.head.prepend(defaultStyles);
176-
391
177-
392 applyStyles(newDocument, newDocument.body);
171+
393 // apply default styles
172+
394 const defaultStyles = newDocument.createElement('style');
173+
395 defaultStyles.id = '_defaultStyles';
174+
396: defaultStyles.innerHTML = defaultCssRules;
175+
397 newDocument.head.prepend(defaultStyles);
176+
398
177+
399 applyStyles(newDocument, newDocument.body);
178178

179179
src/vs/workbench/contrib/welcome/walkThrough/browser/walkThroughPart.ts:
180180
281
181181
282 const content = model.main.textEditorModel.getValue(EndOfLinePreference.LF);
182-
283 if (!strings.endsWith(input.resource.path, '.md')) {
182+
283 if (!input.resource.path.endsWith('.md')) {
183183
284: this.content.innerHTML = content;
184184
285 this.updateSizeClasses();
185185
286 this.decorateContent();

0 commit comments

Comments
 (0)