@@ -9,8 +9,8 @@ export function promptMagentoProjectSelection(config: vscode.WorkspaceConfigurat
99 vscode . window . showInformationMessage ( 'Is this a Magento project?' , 'Yes' , 'No' ) . then ( selection => {
1010 if ( selection === 'Yes' ) {
1111 selectMagentoRootFolder ( config , context ) ;
12- } else {
13- updateConfig ( config , 'magentoLogViewer. isMagentoProject' , selection ) ;
12+ } else if ( selection === 'No' ) {
13+ updateConfig ( config , 'isMagentoProject' , selection ) ;
1414 }
1515 } ) ;
1616 }
@@ -25,9 +25,9 @@ export function selectMagentoRootFolder(config: vscode.WorkspaceConfiguration, c
2525 vscode . window . showOpenDialog ( { defaultUri, canSelectFolders : true , canSelectMany : false , openLabel : 'Select Magento Root Folder' } ) . then ( folderUri => {
2626 if ( folderUri ?. [ 0 ] ) {
2727 const newConfig = vscode . workspace . getConfiguration ( 'magentoLogViewer' , folderUri [ 0 ] ) ;
28- updateConfig ( newConfig , 'magentoLogViewer. magentoRoot' , folderUri [ 0 ] . fsPath ) . then ( ( ) => {
28+ updateConfig ( newConfig , 'magentoRoot' , folderUri [ 0 ] . fsPath ) . then ( ( ) => {
2929 showInformationMessage ( 'Magento root folder successfully saved!' ) ;
30- updateConfig ( newConfig , 'magentoLogViewer. isMagentoProject' , 'Yes' ) ;
30+ updateConfig ( newConfig , 'isMagentoProject' , 'Yes' ) ;
3131 activateExtension ( context , folderUri [ 0 ] . fsPath , new ReportViewerProvider ( folderUri [ 0 ] . fsPath ) ) ;
3232 } ) ;
3333 }
0 commit comments