File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { toolExecutionEnvironment } from './goEnv';
16
16
import { promptForMissingTool } from './goInstallTools' ;
17
17
import { GoDocumentSymbolProvider } from './goDocumentSymbols' ;
18
18
import { outputChannel } from './goStatus' ;
19
- import { getBinPath } from './util' ;
19
+ import { getBinPath , resolvePath } from './util' ;
20
20
import { CommandFactory } from './commands' ;
21
21
import { GoExtensionContext } from './context' ;
22
22
@@ -178,6 +178,12 @@ function generateTests(
178
178
i ++ ;
179
179
continue ;
180
180
}
181
+ if ( i + 1 < goGenerateTestsFlags . length && ( flag === '-template_dir' || flag === '-template_params_file' ) ) {
182
+ const configFilePath = resolvePath ( goGenerateTestsFlags [ i + 1 ] ) ;
183
+ args . push ( flag , configFilePath ) ;
184
+ i ++ ;
185
+ continue ;
186
+ }
181
187
args . push ( flag ) ;
182
188
}
183
189
You can’t perform that action at this time.
0 commit comments