@@ -50,9 +50,8 @@ import { IOpenerService } from 'vs/platform/opener/common/opener';
5050import { IProgressService } from 'vs/platform/progress/common/progress' ;
5151import { Registry } from 'vs/platform/registry/common/platform' ;
5252import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
53- import { focusBorder , listFilterMatchHighlight , listFilterMatchHighlightBorder , textCodeBlockBackground , textLinkForeground } from 'vs/platform/theme/common/colorRegistry' ;
5453import { ColorScheme } from 'vs/platform/theme/common/theme' ;
55- import { FileThemeIcon , FolderThemeIcon , IThemeService , registerThemingParticipant , ThemeIcon } from 'vs/platform/theme/common/themeService' ;
54+ import { FileThemeIcon , FolderThemeIcon , IThemeService , ThemeIcon } from 'vs/platform/theme/common/themeService' ;
5655import { DraggedTreeItemsIdentifier , fillEditorsDragData , LocalSelectionTransfer } from 'vs/workbench/browser/dnd' ;
5756import { IResourceLabel , ResourceLabels } from 'vs/workbench/browser/labels' ;
5857import { API_OPEN_DIFF_EDITOR_COMMAND_ID , API_OPEN_EDITOR_COMMAND_ID } from 'vs/workbench/browser/parts/editor/editorCommands' ;
@@ -1005,33 +1004,6 @@ class TreeDataSource implements IAsyncDataSource<ITreeItem, ITreeItem> {
10051004 }
10061005}
10071006
1008- // todo@jrieken ,sandy make this proper and contributable from extensions
1009- registerThemingParticipant ( ( theme , collector ) => {
1010-
1011- const matchBackgroundColor = theme . getColor ( listFilterMatchHighlight ) ;
1012- if ( matchBackgroundColor ) {
1013- collector . addRule ( `.file-icon-themable-tree .monaco-list-row .content .monaco-highlighted-label .highlight { color: unset !important; background-color: ${ matchBackgroundColor } ; }` ) ;
1014- collector . addRule ( `.monaco-tl-contents .monaco-highlighted-label .highlight { color: unset !important; background-color: ${ matchBackgroundColor } ; }` ) ;
1015- }
1016- const matchBorderColor = theme . getColor ( listFilterMatchHighlightBorder ) ;
1017- if ( matchBorderColor ) {
1018- collector . addRule ( `.file-icon-themable-tree .monaco-list-row .content .monaco-highlighted-label .highlight { color: unset !important; border: 1px dotted ${ matchBorderColor } ; box-sizing: border-box; }` ) ;
1019- collector . addRule ( `.monaco-tl-contents .monaco-highlighted-label .highlight { color: unset !important; border: 1px dotted ${ matchBorderColor } ; box-sizing: border-box; }` ) ;
1020- }
1021- const link = theme . getColor ( textLinkForeground ) ;
1022- if ( link ) {
1023- collector . addRule ( `.tree-explorer-viewlet-tree-view > .message a { color: ${ link } ; }` ) ;
1024- }
1025- const focusBorderColor = theme . getColor ( focusBorder ) ;
1026- if ( focusBorderColor ) {
1027- collector . addRule ( `.tree-explorer-viewlet-tree-view > .message a:focus { outline: 1px solid ${ focusBorderColor } ; outline-offset: -1px; }` ) ;
1028- }
1029- const codeBackground = theme . getColor ( textCodeBlockBackground ) ;
1030- if ( codeBackground ) {
1031- collector . addRule ( `.tree-explorer-viewlet-tree-view > .message code { background-color: ${ codeBackground } ; }` ) ;
1032- }
1033- } ) ;
1034-
10351007interface ITreeExplorerTemplateData {
10361008 readonly elementDisposable : DisposableStore ;
10371009 readonly container : HTMLElement ;
0 commit comments