Skip to content

Commit bb2bdcc

Browse files
committed
Fix WindowsService fill
1 parent 6c63436 commit bb2bdcc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/vscode/src/fill/windowsService.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as electron from "electron";
22
import { Emitter } from "@coder/events";
3-
import * as windowsIpc from "vs/platform/windows/node/windowsIpc";
43
import { IWindowsService, INativeOpenDialogOptions, MessageBoxOptions, SaveDialogOptions, OpenDialogOptions, IMessageBoxResult, IDevToolsOptions, IEnterWorkspaceResult, CrashReporterStartOptions, INewWindowOptions, IOpenFileRequest, IAddFoldersRequest } from "vs/platform/windows/common/windows";
54
import { ParsedArgs } from "vs/platform/environment/common/environment";
65
import { IWorkspaceIdentifier, IWorkspaceFolderCreationData, ISingleFolderWorkspaceIdentifier } from "vs/platform/workspaces/common/workspaces";
@@ -15,7 +14,7 @@ import { workbench } from "../workbench";
1514
* Instead of going to the shared process, we'll directly run these methods on
1615
* the client. This setup means we can only control the current window.
1716
*/
18-
class WindowsService implements IWindowsService {
17+
export class WindowsService implements IWindowsService {
1918
// tslint:disable-next-line no-any
2019
public _serviceBrand: any;
2120

@@ -343,7 +342,3 @@ class WindowsService implements IWindowsService {
343342
return this.window;
344343
}
345344
}
346-
347-
const target = windowsIpc as typeof windowsIpc;
348-
// @ts-ignore TODO: don't ignore it.
349-
target.WindowsChannelClient = WindowsService;

packages/web/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ module.exports = merge(
7070
// This seems to be in the wrong place?
7171
"vs/workbench/contrib/codeEditor/electron-browser/media/WordWrap_16x.svg": "vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/WordWrap_16x.svg",
7272

73+
"vs/platform/windows/electron-browser/windowsService": path.join(vsFills, "windowsService.ts"),
7374
"vs/base/node/paths": path.join(vsFills, "paths.ts"),
7475
"vs/base/common/amd": path.join(vsFills, "amd.ts"),
7576
"vs/platform/product/node/package": path.resolve(vsFills, "package.ts"),

0 commit comments

Comments
 (0)