@@ -87,9 +87,9 @@ export class TestExplorer {
8787 this . testFileEdited = false ;
8888
8989 // only run discover tests if the library has tests
90- this . folderContext . swiftPackage . getTargets ( TargetType . test ) . then ( targets => {
90+ void this . folderContext . swiftPackage . getTargets ( TargetType . test ) . then ( targets => {
9191 if ( targets . length > 0 ) {
92- this . discoverTestsInWorkspace ( this . tokenSource . token ) ;
92+ void this . discoverTestsInWorkspace ( this . tokenSource . token ) ;
9393 }
9494 } ) ;
9595 }
@@ -98,7 +98,7 @@ export class TestExplorer {
9898 // add file watcher to catch changes to swift test files
9999 const fileWatcher = this . folderContext . workspaceContext . onDidChangeSwiftFiles ( ( { uri } ) => {
100100 if ( this . testFileEdited === false ) {
101- this . folderContext . getTestTarget ( uri ) . then ( target => {
101+ void this . folderContext . getTestTarget ( uri ) . then ( target => {
102102 if ( target ) {
103103 this . testFileEdited = true ;
104104 }
@@ -138,7 +138,7 @@ export class TestExplorer {
138138 switch ( operation ) {
139139 case FolderOperation . add :
140140 if ( folder ) {
141- folder . swiftPackage . getTargets ( TargetType . test ) . then ( targets => {
141+ void folder . swiftPackage . getTargets ( TargetType . test ) . then ( targets => {
142142 if ( targets . length === 0 ) {
143143 return ;
144144 }
@@ -149,7 +149,7 @@ export class TestExplorer {
149149 if (
150150 ! configuration . folder ( folder . workspaceFolder ) . disableAutoResolve
151151 ) {
152- folder . testExplorer ?. discoverTestsInWorkspace (
152+ void folder . testExplorer ?. discoverTestsInWorkspace (
153153 tokenSource . token
154154 ) ;
155155 }
@@ -158,7 +158,7 @@ export class TestExplorer {
158158 break ;
159159 case FolderOperation . packageUpdated :
160160 if ( folder ) {
161- folder . swiftPackage . getTargets ( TargetType . test ) . then ( targets => {
161+ void folder . swiftPackage . getTargets ( TargetType . test ) . then ( targets => {
162162 const hasTestTargets = targets . length > 0 ;
163163 if ( hasTestTargets && ! folder . hasTestExplorer ( ) ) {
164164 folder . addTestExplorer ( ) ;
@@ -168,7 +168,7 @@ export class TestExplorer {
168168 ! configuration . folder ( folder . workspaceFolder )
169169 . disableAutoResolve
170170 ) {
171- folder . testExplorer ?. discoverTestsInWorkspace (
171+ void folder . testExplorer ?. discoverTestsInWorkspace (
172172 tokenSource . token
173173 ) ;
174174 }
@@ -219,7 +219,7 @@ export class TestExplorer {
219219 const testExplorer = folder ?. testExplorer ;
220220 if ( testExplorer && symbols && uri && uri . scheme === "file" ) {
221221 if ( isPathInsidePath ( uri . fsPath , folder . folder . fsPath ) ) {
222- folder . swiftPackage . getTarget ( uri . fsPath ) . then ( target => {
222+ void folder . swiftPackage . getTarget ( uri . fsPath ) . then ( target => {
223223 if ( target && target . type === "test" ) {
224224 testExplorer . lspTestDiscovery
225225 . getDocumentTests ( folder . swiftPackage , uri )
0 commit comments