@@ -9,8 +9,8 @@ export function promptMagentoProjectSelection(config: vscode.WorkspaceConfigurat
9
9
vscode . window . showInformationMessage ( 'Is this a Magento project?' , 'Yes' , 'No' ) . then ( selection => {
10
10
if ( selection === 'Yes' ) {
11
11
selectMagentoRootFolder ( config , context ) ;
12
- } else {
13
- updateConfig ( config , 'magentoLogViewer. isMagentoProject' , selection ) ;
12
+ } else if ( selection === 'No' ) {
13
+ updateConfig ( config , 'isMagentoProject' , selection ) ;
14
14
}
15
15
} ) ;
16
16
}
@@ -25,9 +25,9 @@ export function selectMagentoRootFolder(config: vscode.WorkspaceConfiguration, c
25
25
vscode . window . showOpenDialog ( { defaultUri, canSelectFolders : true , canSelectMany : false , openLabel : 'Select Magento Root Folder' } ) . then ( folderUri => {
26
26
if ( folderUri ?. [ 0 ] ) {
27
27
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 ( ( ) => {
29
29
showInformationMessage ( 'Magento root folder successfully saved!' ) ;
30
- updateConfig ( newConfig , 'magentoLogViewer. isMagentoProject' , 'Yes' ) ;
30
+ updateConfig ( newConfig , 'isMagentoProject' , 'Yes' ) ;
31
31
activateExtension ( context , folderUri [ 0 ] . fsPath , new ReportViewerProvider ( folderUri [ 0 ] . fsPath ) ) ;
32
32
} ) ;
33
33
}
0 commit comments