|
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information.
|
4 | 4 | *--------------------------------------------------------------------------------------------*/
|
5 | 5 |
|
| 6 | +import { coalesce } from 'vs/base/common/arrays'; |
| 7 | +import { DisposableStore } from 'vs/base/common/lifecycle'; |
| 8 | +import { EDITOR_FONT_DEFAULTS, IEditorOptions } from 'vs/editor/common/config/editorOptions'; |
6 | 9 | import * as languages from 'vs/editor/common/languages';
|
| 10 | +import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; |
7 | 11 | import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
8 | 12 | import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
|
| 13 | +import { IThemeService } from 'vs/platform/theme/common/themeService'; |
| 14 | +import { ICommentService } from 'vs/workbench/contrib/comments/browser/commentService'; |
| 15 | +import { CommentThreadWidget } from 'vs/workbench/contrib/comments/browser/commentThreadWidget'; |
9 | 16 | import { ICellViewModel, INotebookEditorDelegate } from 'vs/workbench/contrib/notebook/browser/notebookBrowser';
|
10 | 17 | import { CellPart } from 'vs/workbench/contrib/notebook/browser/view/cellPart';
|
11 |
| -import { CellKind } from 'vs/workbench/contrib/notebook/common/notebookCommon'; |
12 | 18 | import { CodeCellViewModel } from 'vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
13 |
| -import { CommentThreadWidget } from 'vs/workbench/contrib/comments/browser/commentThreadWidget'; |
14 |
| -import { DisposableStore } from 'vs/base/common/lifecycle'; |
15 |
| -import { IThemeService, registerThemingParticipant } from 'vs/platform/theme/common/themeService'; |
| 19 | +import { CellKind } from 'vs/workbench/contrib/notebook/common/notebookCommon'; |
16 | 20 | import { ICellRange } from 'vs/workbench/contrib/notebook/common/notebookRange';
|
17 |
| -import { ICommentService } from 'vs/workbench/contrib/comments/browser/commentService'; |
18 |
| -import { coalesce } from 'vs/base/common/arrays'; |
19 |
| -import { peekViewBorder, peekViewResultsBackground } from 'vs/editor/contrib/peekView/browser/peekView'; |
20 |
| -import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; |
21 |
| -import { EDITOR_FONT_DEFAULTS, IEditorOptions } from 'vs/editor/common/config/editorOptions'; |
22 | 21 |
|
23 | 22 | export class CellComments extends CellPart {
|
24 | 23 | private _initialized: boolean = false;
|
@@ -176,20 +175,3 @@ export class CellComments extends CellPart {
|
176 | 175 | }
|
177 | 176 | }
|
178 | 177 |
|
179 |
| -registerThemingParticipant((theme, collector) => { |
180 |
| - const borderColor = theme.getColor(peekViewBorder); |
181 |
| - |
182 |
| - if (borderColor) { |
183 |
| - collector.addRule(`.cell-comment-container.review-widget { border-left: 1px solid ${borderColor}; border-right: 1px solid ${borderColor}; }`); |
184 |
| - collector.addRule(`.cell-comment-container.review-widget > .head { border-top: 1px solid ${borderColor}; }`); |
185 |
| - collector.addRule(`.cell-comment-container.review-widget > .body { border-bottom: 1px solid ${borderColor}; }`); |
186 |
| - } |
187 |
| - |
188 |
| - const peekViewBackground = theme.getColor(peekViewResultsBackground); |
189 |
| - if (peekViewBackground) { |
190 |
| - collector.addRule( |
191 |
| - `.cell-comment-container.review-widget {` + |
192 |
| - ` background-color: ${peekViewBackground};` + |
193 |
| - `}`); |
194 |
| - } |
195 |
| -}); |
0 commit comments