File tree Expand file tree Collapse file tree 4 files changed +280
-151
lines changed
Expand file tree Collapse file tree 4 files changed +280
-151
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { initializeTesting } from './gnattest';
88import { GprTaskProvider } from './gprTaskProvider' ;
99import { TERMINAL_ENV_SETTING_NAME } from './helpers' ;
1010import { registerTaskProviders } from './taskProviders' ;
11+ import { initializeTesting } from './gnattest' ;
1112
1213/**
1314 * This class encapsulates all state that should be maintained throughout the
@@ -32,6 +33,8 @@ export class ExtensionState {
3233 private registeredTaskProviders : Disposable [ ] ;
3334
3435 public readonly codelensProvider = new AdaCodeLensProvider ( ) ;
36+ public readonly testController : vscode . TestController ;
37+ public readonly testData : Map < vscode . TestItem , object > = new Map ( ) ;
3538
3639 /**
3740 * The following fields are caches for ALS requests
@@ -68,6 +71,7 @@ export class ExtensionState {
6871 const result = initializeDebugging ( this . context ) ;
6972 this . initialDebugConfigProvider = result . providerInitial ;
7073 this . dynamicDebugConfigProvider = result . providerDynamic ;
74+ this . testController = initializeTesting ( context ) ;
7175 }
7276
7377 public start = async ( ) => {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import { ExtensionState } from './ExtensionState';
2626import { ALSClientFeatures } from './alsClientFeatures' ;
2727import { alsCommandExecutor } from './alsExecuteCommand' ;
2828import { registerCommands } from './commands' ;
29- import { initializeTestView } from './gnattest' ;
3029import {
3130 TERMINAL_ENV_SETTING_NAME ,
3231 assertSupportedEnvironments ,
@@ -161,8 +160,6 @@ async function activateExtension(context: vscode.ExtensionContext) {
161160
162161 await vscode . commands . executeCommand ( 'setContext' , ADA_CONTEXT , true ) ;
163162
164- await initializeTestView ( context , adaExtState ) ;
165-
166163 /**
167164 * This can display a dialog to the User so don't wait on the result.
168165 */
You can’t perform that action at this time.
0 commit comments