File tree 1 file changed +10
-10
lines changed 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<Api |
82
82
83
83
context . subscriptions . push ( ...commands . registerToolchainCommands ( toolchain ) ) ;
84
84
85
- if ( ! toolchain ) {
86
- showToolchainError ( ) ;
87
- return ;
88
- }
89
-
90
- const workspaceContext = await WorkspaceContext . create ( outputChannel , toolchain ) ;
91
- context . subscriptions . push ( ...commands . register ( workspaceContext ) ) ;
92
- context . subscriptions . push ( workspaceContext ) ;
93
- context . subscriptions . push ( registerDebugger ( workspaceContext ) ) ;
94
-
95
85
context . subscriptions . push (
96
86
vscode . workspace . onDidChangeConfiguration ( event => {
97
87
// on toolchain config change, reload window
@@ -114,6 +104,16 @@ export async function activate(context: vscode.ExtensionContext): Promise<Api |
114
104
} )
115
105
) ;
116
106
107
+ if ( ! toolchain ) {
108
+ showToolchainError ( ) ;
109
+ return ;
110
+ }
111
+
112
+ const workspaceContext = await WorkspaceContext . create ( outputChannel , toolchain ) ;
113
+ context . subscriptions . push ( ...commands . register ( workspaceContext ) ) ;
114
+ context . subscriptions . push ( workspaceContext ) ;
115
+ context . subscriptions . push ( registerDebugger ( workspaceContext ) ) ;
116
+
117
117
// listen for workspace folder changes and active text editor changes
118
118
workspaceContext . setupEventListeners ( ) ;
119
119
You can’t perform that action at this time.
0 commit comments