Skip to content

Commit cf7e643

Browse files
committed
Update dialog to use workbench instead of client
1 parent 1d0b235 commit cf7e643

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/vscode/src/dialog.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
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";
41
import * as fs from "fs";
52
import * as path from "path";
3+
import { Emitter, Event } from "@coder/events";
4+
import { client as ideClient } from "@coder/ide/src/fill/client";
65
import { $, addClass, append } from "vs/base/browser/dom";
76
import { HighlightedLabel } from "vs/base/browser/ui/highlightedlabel/highlightedLabel";
87
import { ObjectTree } from "vs/base/browser/ui/tree/objectTree";
@@ -13,8 +12,9 @@ import { getIconClasses } from "vs/editor/common/services/getIconClasses";
1312
import { IModelService } from "vs/editor/common/services/modelService";
1413
import { IModeService } from "vs/editor/common/services/modeService";
1514
import { FileKind } from "vs/platform/files/common/files";
16-
import "./dialog.scss";
1715
import { IThemeService } from "vs/platform/theme/common/themeService";
16+
import { workbench } from "./workbench";
17+
import "./dialog.scss";
1818

1919
declare 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

Comments
 (0)