mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
Move terminate() to IExtHostExtensionService
This commit is contained in:
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ suite('ExtHostFileSystemEventService', () => {
|
||||
const protocol: IMainContext = {
|
||||
getProxy: () => { return undefined!; },
|
||||
set: undefined!,
|
||||
dispose: undefined!,
|
||||
assertRegistered: undefined!,
|
||||
drain: undefined!
|
||||
};
|
||||
|
||||
@@ -290,6 +290,7 @@ suite('ExtHostWorkspace', function () {
|
||||
const protocol: IMainContext = {
|
||||
getProxy: () => { return undefined!; },
|
||||
set: () => { return undefined!; },
|
||||
dispose: () => { },
|
||||
assertRegistered: () => { },
|
||||
drain: () => { return undefined!; },
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user