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" ;
41import * as fs from "fs" ;
52import * as path from "path" ;
3+ import { Emitter , Event } from "@coder/events" ;
4+ import { client as ideClient } from "@coder/ide/src/fill/client" ;
65import { $ , addClass , append } from "vs/base/browser/dom" ;
76import { HighlightedLabel } from "vs/base/browser/ui/highlightedlabel/highlightedLabel" ;
87import { ObjectTree } from "vs/base/browser/ui/tree/objectTree" ;
@@ -13,8 +12,9 @@ import { getIconClasses } from "vs/editor/common/services/getIconClasses";
1312import { IModelService } from "vs/editor/common/services/modelService" ;
1413import { IModeService } from "vs/editor/common/services/modeService" ;
1514import { FileKind } from "vs/platform/files/common/files" ;
16- import "./dialog.scss" ;
1715import { IThemeService } from "vs/platform/theme/common/themeService" ;
16+ import { workbench } from "./workbench" ;
17+ import "./dialog.scss" ;
1818
1919declare var __non_webpack_require__ : typeof require ;
2020
@@ -115,7 +115,7 @@ class Dialog {
115115
116116 const setProperty = ( vari : string , id : string ) : void => {
117117 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 ;
119119 const c = ts . getTheme ( ) . getColor ( id ) ;
120120 if ( ! c ) {
121121 return ;
@@ -444,8 +444,8 @@ class DialogEntryRenderer implements ITreeRenderer<DialogEntry, string, DialogEn
444444 public renderElement ( node : ITreeNode < DialogEntry , string > , index : number , templateData : DialogEntryData ) : void {
445445 templateData . icon . className = "dialog-entry-icon monaco-icon-label" ;
446446 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 ,
449449 URI . file ( node . element . name ) ,
450450 node . element . isDirectory ? FileKind . FOLDER : FileKind . FILE ,
451451 ) ;
0 commit comments