@@ -7,12 +7,15 @@ import * as paths from "./fill/paths";
7
7
import product from "./fill/product" ;
8
8
import "./vscode.scss" ;
9
9
import { 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' ;
10
12
import { CommandsRegistry } from "vs/platform/commands/common/commands" ;
11
13
import { IFileService , FileOperation } from "vs/platform/files/common/files" ;
12
14
import { ITextFileService } from "vs/workbench/services/textfile/common/textfiles" ;
13
15
import { IModelService } from "vs/editor/common/services/modelService" ;
14
16
import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal" ;
15
17
import { IStorageService } from "vs/platform/storage/common/storage" ;
18
+
16
19
// NOTE: shouldn't import anything from VS Code here or anything that will
17
20
// depend on a synchronous fill like `os`.
18
21
@@ -34,10 +37,9 @@ class VSClient extends IdeClient {
34
37
client : ideClientInstance ,
35
38
workbench : {
36
39
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 ) ,
41
43
notificationService : getService < INotificationService > ( INotificationService ) ,
42
44
terminalService : getService < ITerminalService > ( ITerminalService ) ,
43
45
storageService : {
0 commit comments