File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/unit-tests/toolchain Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1414import * as path from "path" ;
1515import * as vscode from "vscode" ;
1616
17+ import configuration from "../configuration" ;
1718import { SwiftLogger } from "../logging/SwiftLogger" ;
1819import { Swiftly } from "../toolchain/swiftly" ;
1920import { Workbench } from "../utilities/commands" ;
@@ -124,6 +125,11 @@ export async function handleMissingSwiftly(
124125 extensionRoot : string ,
125126 logger ?: SwiftLogger
126127) : Promise < boolean > {
128+ if ( configuration . folder ( undefined ) . disableSwiftlyInstallPrompt ) {
129+ logger ?. debug ( "Swiftly installation prompt is suppressed" ) ;
130+ return false ;
131+ }
132+
127133 // Prompt user for installation
128134 if ( ! ( await promptForSwiftlyInstallation ( logger ) ) ) {
129135 return false ;
Original file line number Diff line number Diff line change @@ -1619,7 +1619,6 @@ apt-get -y install libncurses5-dev
16191619 const result = await handleMissingSwiftly ( [ ] , "" ) ;
16201620
16211621 expect ( result ) . to . be . false ;
1622- console . log ( ">>> PROMPT RETURN ARGS" , mockWindow . showWarningMessage . args ) ;
16231622 expect ( mockWindow . showWarningMessage ) . to . not . have . been . called ;
16241623 } ) ;
16251624
You can’t perform that action at this time.
0 commit comments