Move terminate() to IExtHostExtensionService

This commit is contained in:
Alex Dima
2022-04-07 22:23:18 +02:00
parent ad78a1cdfe
commit e02a7747eb
11 changed files with 57 additions and 41 deletions

View File

@@ -392,6 +392,7 @@ suite('ExtHostDiagnostics', () => {
set(): any {
return null;
}
dispose() { }
assertRegistered(): void {
}
@@ -444,6 +445,7 @@ suite('ExtHostDiagnostics', () => {
set(): any {
return null;
}
dispose() { }
assertRegistered(): void {
}
@@ -484,6 +486,7 @@ suite('ExtHostDiagnostics', () => {
set(): any {
return null;
}
dispose() { }
assertRegistered(): void {
}

View File

@@ -14,6 +14,7 @@ suite('ExtHostFileSystemEventService', () => {
const protocol: IMainContext = {
getProxy: () => { return undefined!; },
set: undefined!,
dispose: undefined!,
assertRegistered: undefined!,
drain: undefined!
};

View File

@@ -290,6 +290,7 @@ suite('ExtHostWorkspace', function () {
const protocol: IMainContext = {
getProxy: () => { return undefined!; },
set: () => { return undefined!; },
dispose: () => { },
assertRegistered: () => { },
drain: () => { return undefined!; },
};

View File

@@ -30,6 +30,7 @@ suite('MainThreadDiagnostics', function () {
new class implements IExtHostContext {
remoteAuthority = '';
extensionHostKind = ExtensionHostKind.LocalProcess;
dispose() { }
assertRegistered() { }
set(v: any): any { return null; }
getProxy(): any {
@@ -71,6 +72,7 @@ suite('MainThreadDiagnostics', function () {
new class implements IExtHostContext {
remoteAuthority = '';
extensionHostKind = ExtensionHostKind.LocalProcess;
dispose() { }
assertRegistered() { }
set(v: any): any { return null; }
getProxy(): any {
@@ -134,6 +136,7 @@ suite('MainThreadDiagnostics', function () {
new class implements IExtHostContext {
remoteAuthority = '';
extensionHostKind = ExtensionHostKind.LocalProcess;
dispose() { }
assertRegistered() { }
set(v: any): any { return null; }
getProxy(): any {

View File

@@ -67,6 +67,7 @@ suite('MainThreadHostTreeView', function () {
new class implements IExtHostContext {
remoteAuthority = '';
extensionHostKind = ExtensionHostKind.LocalProcess;
dispose() { }
assertRegistered() { }
set(v: any): any { return null; }
getProxy(): any {

View File

@@ -21,6 +21,7 @@ export function SingleProxyRPCProtocol(thing: any): IExtHostContext & IExtHostRp
set<T, R extends T>(identifier: ProxyIdentifier<T>, value: R): R {
return value;
},
dispose: undefined!,
assertRegistered: undefined!,
drain: undefined!,
extensionHostKind: ExtensionHostKind.LocalProcess
@@ -135,6 +136,10 @@ export class TestRPCProtocol implements IExtHostContext, IExtHostRpcService {
});
}
public dispose() {
throw new Error('Not implemented!');
}
public assertRegistered(identifiers: ProxyIdentifier<any>[]): void {
throw new Error('Not implemented!');
}