11import { lstat , copy , pathExists , createFile } from "fs-extra" ;
22import { basename } from "path" ;
3- import { Uri , TextDocumentShowOptions , commands , window } from "vscode" ;
3+ import { Uri , TextDocumentShowOptions , window } from "vscode" ;
44import {
55 TestHub ,
66 TestController ,
@@ -16,6 +16,7 @@ import { TestTreeNode } from "./test-tree-node";
1616import { DisposableObject } from "./pure/disposable-object" ;
1717import { QLTestAdapter , getExpectedFile , getActualFile } from "./test-adapter" ;
1818import { TestUICommands } from "./common/commands" ;
19+ import { App } from "./common/app" ;
1920
2021type VSCodeTestEvent =
2122 | TestRunStartedEvent
@@ -44,7 +45,7 @@ class QLTestListener extends DisposableObject {
4445export class TestUIService extends DisposableObject implements TestController {
4546 private readonly listeners : Map < TestAdapter , QLTestListener > = new Map ( ) ;
4647
47- constructor ( private readonly testHub : TestHub ) {
48+ constructor ( private readonly app : App , private readonly testHub : TestHub ) {
4849 super ( ) ;
4950
5051 testHub . registerTestController ( this ) ;
@@ -105,7 +106,7 @@ export class TestUIService extends DisposableObject implements TestController {
105106
106107 if ( await pathExists ( actualPath ) ) {
107108 const actualUri = Uri . file ( actualPath ) ;
108- await commands . executeCommand < void > (
109+ await this . app . commands . execute (
109110 "vscode.diff" ,
110111 expectedUri ,
111112 actualUri ,
0 commit comments