mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
IJPL-156810 <idea-plugin> "package": resolve in module dependencies
GitOrigin-RevId: 6db3859fb555b6cba508195866292ce56c08601d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
522f2ab43e
commit
56773a418e
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.idea.devkit.dom.impl;
|
||||
|
||||
import com.intellij.codeInsight.daemon.quickFix.CreateClassOrPackageFix;
|
||||
@@ -21,8 +21,8 @@ import org.jetbrains.idea.devkit.dom.IdeaPlugin;
|
||||
/**
|
||||
* Resolve {@code idea-plugin@package} attribute using:
|
||||
* <ol>
|
||||
* <li>with plugin ID/name: project production scope, as main module may not contain any sources itself</li>
|
||||
* <li>no plugin ID: module production scope</li>
|
||||
* <li>with plugin ID/name: project production scope, as main module may not contain any sources itself and have no dependencies defined</li>
|
||||
* <li>no plugin ID: module + dependencies production scope</li>
|
||||
* </ol>
|
||||
*/
|
||||
public class IdeaPluginPackageConverter extends PsiPackageConverter {
|
||||
@@ -65,7 +65,7 @@ public class IdeaPluginPackageConverter extends PsiPackageConverter {
|
||||
return GlobalSearchScopesCore.projectProductionScope(module.getProject());
|
||||
}
|
||||
|
||||
return module.getModuleScope(false);
|
||||
return module.getModuleWithDependenciesAndLibrariesScope(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user