mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
chore: fix property init order in ipc.mp.ts (#243066)
This commit is contained in:
@@ -57,7 +57,6 @@ const ignored = new Set([
|
||||
'vs/base/common/arrays.ts',
|
||||
'vs/platform/workspace/common/workspace.ts',
|
||||
'vs/platform/files/node/watcher/nodejs/nodejsWatcherLib.ts',
|
||||
'vs/base/parts/ipc/common/ipc.mp.ts',
|
||||
'vs/platform/storage/common/storage.ts',
|
||||
'vs/platform/state/node/stateService.ts',
|
||||
'vs/platform/workspaces/electron-main/workspacesManagementMainService.ts',
|
||||
@@ -89,7 +88,6 @@ const ignored = new Set([
|
||||
'vs/workbench/contrib/debug/common/debugModel.ts',
|
||||
'vs/workbench/api/common/extHostCommands.ts',
|
||||
'vs/server/node/remoteExtensionHostAgentServer.ts',
|
||||
'vs/base/parts/ipc/node/ipc.mp.ts',
|
||||
'vs/editor/browser/view/viewLayer.ts',
|
||||
'vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.ts',
|
||||
'vs/editor/browser/widget/codeEditor/codeEditorWidget.ts',
|
||||
|
||||
@@ -26,7 +26,6 @@ const ignored = new Set([
|
||||
'vs/base/common/arrays.ts',
|
||||
'vs/platform/workspace/common/workspace.ts',
|
||||
'vs/platform/files/node/watcher/nodejs/nodejsWatcherLib.ts',
|
||||
'vs/base/parts/ipc/common/ipc.mp.ts',
|
||||
'vs/platform/storage/common/storage.ts',
|
||||
'vs/platform/state/node/stateService.ts',
|
||||
'vs/platform/workspaces/electron-main/workspacesManagementMainService.ts',
|
||||
@@ -58,7 +57,6 @@ const ignored = new Set([
|
||||
'vs/workbench/contrib/debug/common/debugModel.ts',
|
||||
'vs/workbench/api/common/extHostCommands.ts',
|
||||
'vs/server/node/remoteExtensionHostAgentServer.ts',
|
||||
'vs/base/parts/ipc/node/ipc.mp.ts',
|
||||
'vs/editor/browser/view/viewLayer.ts',
|
||||
'vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.ts',
|
||||
'vs/editor/browser/widget/codeEditor/codeEditorWidget.ts',
|
||||
|
||||
@@ -41,15 +41,15 @@ export interface MessagePort {
|
||||
*/
|
||||
export class Protocol implements IMessagePassingProtocol {
|
||||
|
||||
readonly onMessage = Event.fromDOMEventEmitter<VSBuffer>(this.port, 'message', (e: MessageEvent) => {
|
||||
if (e.data) {
|
||||
return VSBuffer.wrap(e.data);
|
||||
}
|
||||
return VSBuffer.alloc(0);
|
||||
});
|
||||
readonly onMessage;
|
||||
|
||||
constructor(private port: MessagePort) {
|
||||
|
||||
this.onMessage = Event.fromDOMEventEmitter<VSBuffer>(this.port, 'message', (e: MessageEvent) => {
|
||||
if (e.data) {
|
||||
return VSBuffer.wrap(e.data);
|
||||
}
|
||||
return VSBuffer.alloc(0);
|
||||
});
|
||||
// we must call start() to ensure messages are flowing
|
||||
port.start();
|
||||
}
|
||||
|
||||
@@ -15,15 +15,15 @@ import { assertType } from '../../../common/types.js';
|
||||
*/
|
||||
class Protocol implements IMessagePassingProtocol {
|
||||
|
||||
readonly onMessage = Event.fromNodeEventEmitter<VSBuffer>(this.port, 'message', (e: MessageEvent) => {
|
||||
if (e.data) {
|
||||
return VSBuffer.wrap(e.data);
|
||||
}
|
||||
return VSBuffer.alloc(0);
|
||||
});
|
||||
readonly onMessage;
|
||||
|
||||
constructor(private port: MessagePortMain) {
|
||||
|
||||
this.onMessage = Event.fromNodeEventEmitter<VSBuffer>(this.port, 'message', (e: MessageEvent) => {
|
||||
if (e.data) {
|
||||
return VSBuffer.wrap(e.data);
|
||||
}
|
||||
return VSBuffer.alloc(0);
|
||||
});
|
||||
// we must call start() to ensure messages are flowing
|
||||
port.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user