From 60c8142c17c709751c5a0a60b274b847964e25bb Mon Sep 17 00:00:00 2001 From: Paulina Szklarska Date: Sat, 7 May 2022 18:24:13 +1000 Subject: [PATCH] Add quick fix to go to the package on pub.dev --- CHANGELOG.md | 3 +- .../annotator/PubPackagesAnnotator.kt | 3 ++ .../quickfix/GoToPubDevQuickFix.kt | 34 +++++++++++++++++++ .../quickfix/UpdateDependencyQuickFix.kt | 2 +- .../pubversionchecker/resources/Strings.kt | 5 +-- 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 src/main/kotlin/pl/pszklarska/pubversionchecker/quickfix/GoToPubDevQuickFix.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index f01065b..862e8d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ ## [Unreleased] ### Added -- Support for preview and prerelease plugins ([#38](https://github.com/pszklarska/FlutterPubVersionChecker/issues/38)) +- Support for preview and prerelease packages ([#38](https://github.com/pszklarska/FlutterPubVersionChecker/issues/38)) +- Go to pub.dev from the quick-fix menu ([#54](https://github.com/pszklarska/FlutterPubVersionChecker/issues/54)) ### Fixed - Errors not being reported to crash tracker diff --git a/src/main/kotlin/pl/pszklarska/pubversionchecker/annotator/PubPackagesAnnotator.kt b/src/main/kotlin/pl/pszklarska/pubversionchecker/annotator/PubPackagesAnnotator.kt index b8303d4..594522c 100644 --- a/src/main/kotlin/pl/pszklarska/pubversionchecker/annotator/PubPackagesAnnotator.kt +++ b/src/main/kotlin/pl/pszklarska/pubversionchecker/annotator/PubPackagesAnnotator.kt @@ -7,6 +7,7 @@ import com.intellij.openapi.application.runReadAction import com.intellij.psi.PsiFile import pl.pszklarska.pubversionchecker.dto.DependencyDescription import pl.pszklarska.pubversionchecker.parsing.YamlParser +import pl.pszklarska.pubversionchecker.quickfix.GoToPubDevQuickFix import pl.pszklarska.pubversionchecker.quickfix.UpdateAllDependenciesQuickFix import pl.pszklarska.pubversionchecker.quickfix.UpdateDependencyQuickFix import pl.pszklarska.pubversionchecker.resources.Strings @@ -44,6 +45,8 @@ class PubPackagesAnnotator : ExternalAnnotator