1
- import { Emitter , Event } from "@coder/events" ;
2
- import { client as ideClient } from "@coder/ide/src/fill/client" ;
3
- import { client } from "@coder/vscode/src/client" ;
4
1
import * as fs from "fs" ;
5
2
import * as path from "path" ;
3
+ import { Emitter , Event } from "@coder/events" ;
4
+ import { client as ideClient } from "@coder/ide/src/fill/client" ;
6
5
import { $ , addClass , append } from "vs/base/browser/dom" ;
7
6
import { HighlightedLabel } from "vs/base/browser/ui/highlightedlabel/highlightedLabel" ;
8
7
import { ObjectTree } from "vs/base/browser/ui/tree/objectTree" ;
@@ -13,8 +12,9 @@ import { getIconClasses } from "vs/editor/common/services/getIconClasses";
13
12
import { IModelService } from "vs/editor/common/services/modelService" ;
14
13
import { IModeService } from "vs/editor/common/services/modeService" ;
15
14
import { FileKind } from "vs/platform/files/common/files" ;
16
- import "./dialog.scss" ;
17
15
import { IThemeService } from "vs/platform/theme/common/themeService" ;
16
+ import { workbench } from "./workbench" ;
17
+ import "./dialog.scss" ;
18
18
19
19
declare var __non_webpack_require__ : typeof require ;
20
20
@@ -115,7 +115,7 @@ class Dialog {
115
115
116
116
const setProperty = ( vari : string , id : string ) : void => {
117
117
const getColor = ( id : string ) : string | undefined => {
118
- const ts = client . serviceCollection . get < IThemeService > ( IThemeService ) as IThemeService ;
118
+ const ts = workbench . serviceCollection . get < IThemeService > ( IThemeService ) as IThemeService ;
119
119
const c = ts . getTheme ( ) . getColor ( id ) ;
120
120
if ( ! c ) {
121
121
return ;
@@ -444,8 +444,8 @@ class DialogEntryRenderer implements ITreeRenderer<DialogEntry, string, DialogEn
444
444
public renderElement ( node : ITreeNode < DialogEntry , string > , index : number , templateData : DialogEntryData ) : void {
445
445
templateData . icon . className = "dialog-entry-icon monaco-icon-label" ;
446
446
const classes = getIconClasses (
447
- client . serviceCollection . get < IModelService > ( IModelService ) as IModelService ,
448
- client . serviceCollection . get < IModeService > ( IModeService ) as IModeService ,
447
+ workbench . serviceCollection . get < IModelService > ( IModelService ) as IModelService ,
448
+ workbench . serviceCollection . get < IModeService > ( IModeService ) as IModeService ,
449
449
URI . file ( node . element . name ) ,
450
450
node . element . isDirectory ? FileKind . FOLDER : FileKind . FILE ,
451
451
) ;
0 commit comments