Skip to content

Commit f1ce7f5

Browse files
livaiosfda-odoo
authored andcommitted
[FIX] vscode: fix addons detection failing
1 parent e6c5b3b commit f1ce7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vscode/client/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@ async function checkAddons(context: ExtensionContext, odooOutputChannel: OutputC
329329
let currentConfig = getCurrentConfig(context)
330330
if (currentConfig) {
331331
let missingFiles = files.filter(file => {
332-
return (
333-
!currentConfig.addons.some((addon) => file.fsPath.startsWith(addon)) ||
334-
!file.fsPath.startsWith(currentConfig.odooPath)
332+
return !(
333+
currentConfig.addons.some((addon) => file.fsPath.startsWith(addon)) ||
334+
file.fsPath.startsWith(currentConfig.odooPath)
335335
)
336336
})
337337
let missingPaths = [...new Set(missingFiles.map(file => {

0 commit comments

Comments
 (0)