File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
core/src/main/kotlin/cc/unitmesh/devti/util Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ import com.intellij.psi.search.ProjectScope
16
16
17
17
// https://github.com/JetBrains/intellij-community/blob/master/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ProjectFileIndexImpl.java#L32
18
18
fun isInProject (virtualFile : VirtualFile , project : Project ): Boolean {
19
- if (ProjectFileIndex .getInstance(project).isInContent(virtualFile)) {
20
- return true
21
- }
22
- return false
19
+ return ProjectFileIndex .getInstance(project).isInContent(virtualFile)
23
20
}
24
21
25
22
fun Project.isInProject (virtualFile : VirtualFile ): Boolean {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pluginGroup = com.phodal.autodev
7
7
pluginName = AutoDev
8
8
pluginRepositoryUrl = https://github.com/unit-mesh/auto-dev
9
9
# SemVer format -> https://semver.org
10
- pluginVersion = 2.0.0-alpha.9
10
+ pluginVersion = 2.0.0-alpha.10
11
11
12
12
# Supported IDEs: idea, pycharm
13
13
baseIDE =idea
You can’t perform that action at this time.
0 commit comments