4
4
# Excluding: *.test.ts
5
5
# ContextLines: 3
6
6
7
- 26 results - 15 files
7
+ 22 results - 14 files
8
8
9
9
src/vs/base/browser/markdownRenderer.ts:
10
- 156 const strValue = values[0];
11
- 157 const span = element.querySelector(`div[data-code="${id}"]`);
12
- 158 if (span) {
13
- 159 : span.innerHTML = strValue;
14
- 160 }
15
- 161 }).catch(err => {
16
- 162 // ignore
17
-
18
- 238 return true;
19
- 239 }
20
- 240
21
- 241 : element.innerHTML = insane(renderedMarkdown, {
22
- 242 allowedSchemes,
23
- 243 // allowedTags should included everything that markdown renders to.
24
- 244 // Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure.
10
+ 161 const strValue = values[0];
11
+ 162 const span = element.querySelector(`div[data-code="${id}"]`);
12
+ 163 if (span) {
13
+ 164 : span.innerHTML = strValue;
14
+ 165 }
15
+ 166 }).catch(err => {
16
+ 167 // ignore
17
+
18
+ 243 return true;
19
+ 244 }
20
+ 245
21
+ 246 : element.innerHTML = insane(renderedMarkdown, {
22
+ 247 allowedSchemes,
23
+ 248 // allowedTags should included everything that markdown renders to.
24
+ 249 // Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure.
25
25
26
26
src/vs/base/browser/ui/contextview/contextview.ts:
27
27
157 this.shadowRootHostElement = DOM.$('.shadow-root-host');
@@ -32,47 +32,14 @@ src/vs/base/browser/ui/contextview/contextview.ts:
32
32
162 ${SHADOW_ROOT_CSS}
33
33
163 </style>
34
34
35
- src/vs/code/electron-browser/workbench/workbench.js:
36
- 124 const style = document.createElement('style');
37
- 125 style.className = 'initialShellColors';
38
- 126 document.head.appendChild(style);
39
- 127: style.innerHTML = `body { background-color: ${shellBackground}; color: ${shellForeground}; margin: 0; padding: 0; }`;
40
- 128
41
- 129 if (data && data.layoutInfo) {
42
- 130 // restore parts if possible (we might not always store layout info)
43
-
44
- 150
45
- 151 if (configuration.folderUri || configuration.workspace) {
46
- 152 // folder or workspace -> status bar color, sidebar
47
- 153: splash.innerHTML = `
48
- 154 <div style="position: absolute; width: 100%; left: 0; top: 0; height: ${layoutInfo.titleBarHeight}px; background-color: ${colorInfo.titleBarBackground}; -webkit-app-region: drag;"></div>
49
- 155 <div style="position: absolute; height: calc(100% - ${layoutInfo.titleBarHeight}px); top: ${layoutInfo.titleBarHeight}px; ${layoutInfo.sideBarSide}: 0; width: ${layoutInfo.activityBarWidth}px; background-color: ${colorInfo.activityBarBackground};"></div>
50
- 156 <div style="position: absolute; height: calc(100% - ${layoutInfo.titleBarHeight}px); top: ${layoutInfo.titleBarHeight}px; ${layoutInfo.sideBarSide}: ${layoutInfo.activityBarWidth}px; width: ${layoutInfo.sideBarWidth}px; background-color: ${colorInfo.sideBarBackground};"></div>
51
-
52
- 158 `;
53
- 159 } else {
54
- 160 // empty -> speical status bar color, no sidebar
55
- 161: splash.innerHTML = `
56
- 162 <div style="position: absolute; width: 100%; left: 0; top: 0; height: ${layoutInfo.titleBarHeight}px; background-color: ${colorInfo.titleBarBackground}; -webkit-app-region: drag;"></div>
57
- 163 <div style="position: absolute; height: calc(100% - ${layoutInfo.titleBarHeight}px); top: ${layoutInfo.titleBarHeight}px; ${layoutInfo.sideBarSide}: 0; width: ${layoutInfo.activityBarWidth}px; background-color: ${colorInfo.activityBarBackground};"></div>
58
- 164 <div style="position: absolute; width: 100%; bottom: 0; left: 0; height: ${layoutInfo.statusBarHeight}px; background-color: ${colorInfo.statusBarNoFolderBackground};"></div>
59
-
60
35
src/vs/code/electron-sandbox/issue/issueReporterMain.ts:
61
- 57 const platformClass = platform.isWindows ? 'windows' : platform.isLinux ? 'linux' : 'mac';
62
- 58 addClass(document.body, platformClass); // used by our fonts
63
- 59
64
- 60: document.body.innerHTML = BaseHtml();
65
- 61 const issueReporter = new IssueReporter(configuration);
66
- 62 issueReporter.render();
67
- 63 document.body.style.display = 'block';
68
-
69
- 244 content.push(`.monaco-text-button:not(.disabled):hover, .monaco-text-button:focus { background-color: ${styles.buttonHoverBackground} !important; }`);
70
- 245 }
71
- 246
72
- 247: styleTag.innerHTML = content.join('\n');
73
- 248 document.head.appendChild(styleTag);
74
- 249 document.body.style.color = styles.color || '';
75
- 250 }
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';
76
43
77
44
src/vs/code/electron-sandbox/processExplorer/processExplorerMain.ts:
78
45
320 content.push(`.highest { color: ${styles.highlightForeground}; }`);
0 commit comments