Skip to content
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

fix #648 & replace deprecated methods #652

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Wujiaxuan007
Copy link

  1. NPE occurs when multiple new projects are opened and leetcode tool windows is switched. It's better to do NAVIGATOR_TABS_PANEL_DISPOSABLE_MAP.put(id, this); before getUser()?
image
  1. 'getIcon(java.lang.@org.jetbrains.annotations.NonNls @org.jetbrains.annotations.NotNull String)' is deprecated and marked for removal. Use com.intellij.openapi.util.IconLoader#getIcon(java.lang.String, java.lang.Class<?>) instead.
image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compatible with the historical version of IDE, do not change this API for now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pluginSinceBuild: 203.0

com.intellij.openapi.util.IconLoader#getIcon(java.lang.String, java.lang.Class<?>) already exists in version 202.8194.7 and it is not marked @ deprecated in version 223.

Of course, you can also use IntelliJ Plugin Verifier to verify compatibility. (I have verified its compatibility in my plugin (V) (°,,,,°) (V))

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have modified this API in a certain version, but the display effect is not as expected. I am not sure which version of the IDE has been fixed. 😟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants