@@ -7,12 +7,15 @@ import * as paths from "./fill/paths";
77import product from "./fill/product" ;
88import "./vscode.scss" ;
99import { MenuId , MenuRegistry } from "vs/platform/actions/common/actions" ;
10+ import { Registry } from 'vs/platform/registry/common/platform' ;
11+ import { IWorkbenchActionRegistry , Extensions } from 'vs/workbench/common/actions' ;
1012import { CommandsRegistry } from "vs/platform/commands/common/commands" ;
1113import { IFileService , FileOperation } from "vs/platform/files/common/files" ;
1214import { ITextFileService } from "vs/workbench/services/textfile/common/textfiles" ;
1315import { IModelService } from "vs/editor/common/services/modelService" ;
1416import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal" ;
1517import { IStorageService } from "vs/platform/storage/common/storage" ;
18+
1619// NOTE: shouldn't import anything from VS Code here or anything that will
1720// depend on a synchronous fill like `os`.
1821
@@ -34,10 +37,9 @@ class VSClient extends IdeClient {
3437 client : ideClientInstance ,
3538 workbench : {
3639 commandRegistry : CommandsRegistry ,
37- // tslint:disable-next-line:no-any
38- menuRegistry : MenuRegistry as any ,
39- // tslint:disable-next-line:no-any
40- statusbarService : getService < IStatusbarService > ( IStatusbarService ) as any ,
40+ actionsRegistry : Registry . as < IWorkbenchActionRegistry > ( Extensions . WorkbenchActions ) ,
41+ menuRegistry : MenuRegistry ,
42+ statusbarService : getService < IStatusbarService > ( IStatusbarService ) ,
4143 notificationService : getService < INotificationService > ( INotificationService ) ,
4244 terminalService : getService < ITerminalService > ( ITerminalService ) ,
4345 storageService : {
0 commit comments