File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
integration/vscode/ada/src Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -155,19 +155,24 @@ async function activateExtension(context: vscode.ExtensionContext) {
155
155
vscode . workspace . onDidChangeConfiguration ( adaExtState . configChanged )
156
156
) ;
157
157
158
+ /**
159
+ * Register commands first so that commands such as displaying the extension
160
+ * Output become available even if the language servers fail to start.
161
+ */
162
+ registerCommands ( context , adaExtState ) ;
163
+
158
164
await Promise . all ( [ adaExtState . adaClient . onReady ( ) , adaExtState . gprClient . onReady ( ) ] ) ;
159
165
160
166
await vscode . commands . executeCommand ( 'setContext' , ADA_CONTEXT , true ) ;
161
167
162
- await checkSrcDirectories ( adaExtState . adaClient ) ;
163
-
164
168
await initializeTestView ( context , adaExtState ) ;
165
169
166
- await Promise . all ( [ adaExtState . adaClient . onReady ( ) , adaExtState . gprClient . onReady ( ) ] ) ;
167
-
168
170
initializeDebugging ( context ) ;
169
171
170
- registerCommands ( context , adaExtState ) ;
172
+ /**
173
+ * This can display a dialog to the User so don't wait on the result.
174
+ */
175
+ void checkSrcDirectories ( adaExtState . adaClient ) ;
171
176
}
172
177
173
178
function setUpLogging ( context : vscode . ExtensionContext ) {
You can’t perform that action at this time.
0 commit comments