Skip to content

Commit

Permalink
替换package新版本重新索引文件 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdddj committed Oct 24, 2024
1 parent 2bdef6c commit b1dc956
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 38 deletions.
49 changes: 13 additions & 36 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

## Unreleased

## [5.0.0] - 2024-10-22
## [5.0.1] - 2024-10-24

- Fix: Analyze the issue of inaccurate location after file changes (
`pubspec.yaml`) [(#59)](https://github.com/mdddj/dd_flutter_idea_plugin/issues/59)
- New: Do not analyze files other than `pubspec.yaml`
- Other details updated

### [5.0.0] - 2024-10-22

- Fix: dio api copy data to image action if null will null exception
- Fix: If the flutter command does not exist, an error pop-up will
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.stdlib.default.dependency=false
pluginVersion=5.0.0.
pluginVersion=5.0.1.
dartVersion=242.22855.32
sinceBuildVersion=242
untilBuildVersion=242.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import shop.itbug.fluttercheckversionx.icons.MyIcons
import shop.itbug.fluttercheckversionx.model.getLastVersionText
import shop.itbug.fluttercheckversionx.services.DartPackageCheckService
import shop.itbug.fluttercheckversionx.services.PubPackage
import shop.itbug.fluttercheckversionx.util.MyFileUtil
import shop.itbug.fluttercheckversionx.util.MyYamlPsiElementFactory
import shop.itbug.fluttercheckversionx.util.restartAnalyzer
import javax.swing.Icon

/**
Expand Down Expand Up @@ -73,6 +75,8 @@ class DartPluginVersionCheck :
if (newElement != null) {
newElement = first.versionElement.replace(newElement) as YAMLPlainTextImpl
first.replaced(lastVersion, newElement)
project.restartAnalyzer()
MyFileUtil.reIndexFile(project, file.virtualFile)
}
}

Expand Down

0 comments on commit b1dc956

Please sign in to comment.