mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
fix tests
This commit is contained in:
parent
20b37627f2
commit
178a0064fb
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ suite('QuickFixAddon', () => {
|
|||
rows: 30
|
||||
});
|
||||
instantiationService.stub(IStorageService, new TestStorageService());
|
||||
instantiationService.stub(ITerminalContributionService, { quickFixes: Promise.resolve([]) } as Partial<ITerminalContributionService>);
|
||||
instantiationService.stub(ITerminalContributionService, { quickFixes: new Promise((r) => { r([]); }) } as Partial<ITerminalContributionService>);
|
||||
instantiationService.stub(ITerminalQuickFixService, { onDidRegisterProvider: new Emitter().event, onDidUnregisterProvider: new Emitter().event, onDidRegisterCommandSelector: new Emitter().event } as Partial<ITerminalQuickFixService>);
|
||||
instantiationService.stub(IConfigurationService, new TestConfigurationService());
|
||||
instantiationService.stub(ILabelService, {} as Partial<ILabelService>);
|
||||
|
|
|
@ -90,7 +90,7 @@ class TestTerminalExtensionService extends TestExtensionService {
|
|||
class TestTerminalContributionService implements ITerminalContributionService {
|
||||
_serviceBrand: undefined;
|
||||
terminalProfiles: readonly IExtensionTerminalProfile[] = [];
|
||||
quickFixes: Promise<ITerminalCommandSelector[]> = new Promise();
|
||||
quickFixes: Promise<ITerminalCommandSelector[]> = new Promise((r) => { r([]); });
|
||||
setProfiles(profiles: IExtensionTerminalProfile[]): void {
|
||||
this.terminalProfiles = profiles;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue