mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-13 13:52:33 +01:00
voice - some cleanup and 💄
This commit is contained in:
@@ -35,6 +35,7 @@ export class VoiceTranscriber extends Disposable {
|
||||
this._register(toDisposable(() => port.off('message', portHandler)));
|
||||
|
||||
port.start();
|
||||
this._register(toDisposable(() => port.close()));
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ import { NativeEnvironmentService } from 'vs/platform/environment/node/environme
|
||||
import { IVoiceRecognitionService } from 'vs/platform/voiceRecognition/common/voiceRecognitionService';
|
||||
import { VoiceRecognitionService } from 'vs/platform/voiceRecognition/node/voiceRecognitionService';
|
||||
import { VoiceTranscriber } from 'vs/code/node/sharedProcess/contrib/voiceTranscriber';
|
||||
import { RawSharedProcessConnection, SharedProcessLifecycle } from 'vs/platform/sharedProcess/common/sharedProcess';
|
||||
import { SharedProcessRawConnection, SharedProcessLifecycle } from 'vs/platform/sharedProcess/common/sharedProcess';
|
||||
|
||||
class SharedProcessMain extends Disposable implements IClientConnectionFilter {
|
||||
|
||||
@@ -439,14 +439,14 @@ class SharedProcessMain extends Disposable implements IClientConnectionFilter {
|
||||
});
|
||||
}
|
||||
|
||||
handled(e: MessageEvent): boolean {
|
||||
handledClientConnection(e: MessageEvent): boolean {
|
||||
|
||||
// This filter on message port messages will look for
|
||||
// attempts of a window to connect raw to the shared
|
||||
// process to handle these connections separate from
|
||||
// our IPC based protocol.
|
||||
|
||||
if (e.data !== RawSharedProcessConnection.response) {
|
||||
if (e.data !== SharedProcessRawConnection.response) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user