@@ -81,7 +81,6 @@ interface ConfigStateReceived {
8181
8282let displayedSelectCompiler : boolean = false ;
8383let secondPromptCounter : number = 0 ;
84- let scanForCompilersDone : boolean = false ;
8584
8685let workspaceDisposables : vscode . Disposable [ ] = [ ] ;
8786export let workspaceReferences : refs . ReferencesManager ;
@@ -1057,33 +1056,17 @@ export class DefaultClient implements Client {
10571056 }
10581057 if ( index === paths . length - 2 ) {
10591058 action = "help" ;
1060- // Because we need to conditionally enable/disable steps to alter their contents,
1061- // we need to determine which step is actually visible. If the steps change, this
1062- // logic will need to change to reflect them.
1063- let step : string = "ms-vscode.cpptools#" ;
1064- if ( ! scanForCompilersDone ) {
1065- step = step + "awaiting.activation." ;
1066- } else if ( compilerDefaults . knownCompilers === undefined || ! compilerDefaults . knownCompilers . length ) {
1067- step = step + "no.compilers.found." ;
1068- } else {
1069- step = step + "verify.compiler." ;
1070- }
10711059 switch ( os . platform ( ) ) {
10721060 case 'win32' :
1073- step = step + "windows" ;
1074- break ;
1061+ vscode . commands . executeCommand ( 'vscode.open' , "https://go.microsoft.com/fwlink/?linkid=2217614" ) ;
1062+ return ;
10751063 case 'darwin' :
1076- step = step + "mac" ;
1077- break ;
1064+ vscode . commands . executeCommand ( 'vscode.open' , "https://go.microsoft.com/fwlink/?linkid=2217706" ) ;
1065+ return ;
10781066 default : // Linux
1079- step = step + "linux" ;
1080- break ;
1067+ vscode . commands . executeCommand ( 'vscode.open' , "https://go.microsoft.com/fwlink/?linkid=2217615" ) ;
1068+ return ;
10811069 }
1082- vscode . commands . executeCommand (
1083- "workbench.action.openWalkthrough" ,
1084- { category : 'ms-vscode.cpptools#cppWelcome' , step } ,
1085- true ) ;
1086- return ;
10871070 }
10881071 if ( index === paths . length - 3 ) {
10891072 const result : vscode . Uri [ ] | undefined = await vscode . window . showOpenDialog ( ) ;
@@ -2796,7 +2779,6 @@ export class DefaultClient implements Client {
27962779 trustedCompilerPaths : compilerPath
27972780 } ;
27982781 const results : configs . CompilerDefaults = await this . languageClient . sendRequest ( QueryCompilerDefaultsRequest , params ) ;
2799- scanForCompilersDone = true ;
28002782 vscode . commands . executeCommand ( 'setContext' , 'cpptools.scanForCompilersDone' , true ) ;
28012783 vscode . commands . executeCommand ( 'setContext' , 'cpptools.scanForCompilersEmpty' , results . knownCompilers === undefined || ! results . knownCompilers . length ) ;
28022784 vscode . commands . executeCommand ( 'setContext' , 'cpptools.trustedCompilerFound' , results . trustedCompilerFound ) ;
0 commit comments