Skip to content

Commit

Permalink
Stub log service in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed May 11, 2023
1 parent 3853550 commit a9d434a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { TerminalLinkResolver } from 'vs/workbench/contrib/terminalContrib/links
import { IFileService } from 'vs/platform/files/common/files';
import { createFileStat } from 'vs/workbench/test/common/workbenchTestServices';
import { URI } from 'vs/base/common/uri';
import { ILogService, NullLogService } from 'vs/platform/log/common/log';

const unixLinks: (string | { link: string; resource: URI })[] = [
// Absolute
Expand Down Expand Up @@ -181,6 +182,7 @@ suite('Workbench - TerminalLocalLinkDetector', () => {
return createFileStat(resource);
}
});
instantiationService.stub(ILogService, new NullLogService());
resolver = instantiationService.createInstance(TerminalLinkResolver);
validResources = [];

Expand Down

0 comments on commit a9d434a

Please sign in to comment.