-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove deprecations and update them to current API #484
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f642ca3
refactor: first batch of deprecations
bastiandoetsch ee6ebc2
fix: update LS settings when token is received
bastiandoetsch eed0e13
chore: update deps
bastiandoetsch 4de8983
chore: update gradle plugins
bastiandoetsch b667df8
Merge branch 'master' into fix/IDE-152_deprecations
bastiandoetsch 3d985a4
Merge branch 'chore/update-retrofit-deps' into fix/IDE-152_deprecations
bastiandoetsch ba28ada
fix: merge error
bastiandoetsch 1e15d31
fix: deprecations in IssueViewOptionsPanel
bastiandoetsch 5cebc64
Merge branch 'master' into fix/IDE-152_deprecations
bastiandoetsch b8e6e91
fix: substitute deprecated tree search
bastiandoetsch a5fd703
fix: warnings regarding disposing snyk tool window, deprecated tree s…
bastiandoetsch 7b012b9
fix: substitue link labels and insets with action link and jbinsets
bastiandoetsch 6f61c2e
fix: RetrofitAuthenticatorTest
bastiandoetsch dcbd889
fix: snyk code quality finding
bastiandoetsch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/kotlin/io/snyk/plugin/ui/toolwindow/SnykPluginDisposable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.snyk.plugin.ui.toolwindow | ||
|
||
import com.intellij.openapi.Disposable | ||
import com.intellij.openapi.application.ApplicationManager | ||
import com.intellij.openapi.components.Service | ||
import com.intellij.openapi.project.Project | ||
import org.jetbrains.annotations.NotNull | ||
|
||
|
||
/** | ||
* Top-Level disposable for the Snyk plugin. | ||
*/ | ||
@Service(Service.Level.APP, Service.Level.PROJECT) | ||
class SnykPluginDisposable : Disposable { | ||
companion object { | ||
@NotNull | ||
fun getInstance(): Disposable { | ||
return ApplicationManager.getApplication().getService(SnykPluginDisposable::class.java) | ||
} | ||
|
||
@NotNull | ||
fun getInstance(@NotNull project: Project): Disposable { | ||
return project.getService(SnykPluginDisposable::class.java) | ||
} | ||
} | ||
|
||
override fun dispose() = Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Was this something we should have added before and you just noticed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I noticed, that the token was not updated in Language Server after authentication. So I added it.