Skip to content

Commit

Permalink
Fix handling project (#137)
Browse files Browse the repository at this point in the history
* fix handling project

* update history
  • Loading branch information
koxudaxi authored May 18, 2020
1 parent c8c1ab7 commit 2d5a3f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
</ul>
<p>BugFixes</p>
<ul>
<li>fix invalid cache for pydantic version [#132] </li>
<li>Fix handling project [#137] </li>
<li>Fix invalid cache for pydantic version [#132] </li>
<li>Fix invalid completion in callable expression [#130] </li>
</ul>
<h2>version 0.1.6</h2>
Expand Down
8 changes: 7 additions & 1 deletion src/com/koxudaxi/pydantic/PydanticInitializer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ class PydanticInitializer : StartupActivity {
.filter {
it is VFileContentChangeEvent || it is VFileMoveEvent || it is VFileCopyEvent || it is VFileCreateEvent || it is VFileDeleteEvent
}.mapNotNull { it.file }
.filter { ProjectFileIndex.getInstance(project).isInContent(it) }
.filter {
try {
ProjectFileIndex.getInstance(project).isInContent(it)
} catch (e: AlreadyDisposedException) {
false
}
}
if (projectFiles.count() == 0) return
val pyprojectToml = configService.pyprojectToml ?: defaultPyProjectToml
val mypyIni = configService.mypyIni ?: defaultMypyIni
Expand Down

0 comments on commit 2d5a3f1

Please sign in to comment.