Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
09559064
Commit
09559064
authored
6 years ago
by
Alexander Lobas
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-205534 Typing lags in plugins search UI
parent
282fcb92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/ide/plugins/PluginManagerConfigurableNew.java
+21
-1
...om/intellij/ide/plugins/PluginManagerConfigurableNew.java
with
21 additions
and
1 deletion
+21
-1
platform/platform-impl/src/com/intellij/ide/plugins/PluginManagerConfigurableNew.java
+
21
-
1
View file @
09559064
...
...
@@ -136,6 +136,7 @@ public class PluginManagerConfigurableNew
private
Map
<
String
,
List
<
IdeaPluginDescriptor
>>
myCustomRepositoriesMap
;
private
final
Object
myRepositoriesLock
=
new
Object
();
private
List
<
String
>
myAllTagSorted
;
private
Map
<
String
,
List
<
IdeaPluginDescriptor
>>
mySuggestCache
;
private
boolean
myIgnoreFocusFromBackButton
;
...
...
@@ -1033,7 +1034,7 @@ public class PluginManagerConfigurableNew
return
;
}
List
<
IdeaPluginDescriptor
>
result
=
load
SuggestPlugins
(
query
);
List
<
IdeaPluginDescriptor
>
result
=
get
SuggestPlugins
(
query
);
if
(
result
.
isEmpty
())
{
hidePopup
();
return
;
...
...
@@ -1087,6 +1088,23 @@ public class PluginManagerConfigurableNew
myPopup
.
createAndShow
(
callback
,
renderer
,
async
);
}
@NotNull
private
List
<
IdeaPluginDescriptor
>
getSuggestPlugins
(
@NotNull
String
query
)
{
if
(
mySuggestCache
==
null
)
{
mySuggestCache
=
new
HashMap
<>();
}
List
<
IdeaPluginDescriptor
>
result
=
mySuggestCache
.
get
(
query
);
if
(
result
==
null
)
{
result
=
loadSuggestPlugins
(
query
);
if
(!
query
.
isEmpty
()
&&
!
result
.
isEmpty
())
{
mySuggestCache
.
put
(
query
,
result
);
}
}
return
result
;
}
@NotNull
private
List
<
IdeaPluginDescriptor
>
loadSuggestPlugins
(
@NotNull
String
query
)
{
Set
<
IdeaPluginDescriptor
>
result
=
new
LinkedHashSet
<>();
...
...
@@ -1314,6 +1332,8 @@ public class PluginManagerConfigurableNew
myCustomRepositoriesMap
=
null
;
}
mySuggestCache
=
null
;
myPluginUpdatesService
.
recalculateUpdates
();
if
(
myTrendingPanel
==
null
&&
myUpdatesPanel
==
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help