Dieser Commit ist enthalten in:
Ursprung
cfd9b4107c
Commit
6bd95ad84c
@ -35,7 +35,7 @@ public class TabCompletionCache {
|
|||||||
TabCompletions tabCompletions = tabCompletionCache.computeIfAbsent(key, ignore -> {
|
TabCompletions tabCompletions = tabCompletionCache.computeIfAbsent(key, ignore -> {
|
||||||
return new TabCompletions(command, System.currentTimeMillis(), tabCompleteSupplier.get());
|
return new TabCompletions(command, System.currentTimeMillis(), tabCompleteSupplier.get());
|
||||||
});
|
});
|
||||||
if (tabCompletions.command != command) {
|
if (tabCompletions.command != command || System.currentTimeMillis() - tabCompletions.timestamp > cacheDuration.get(typeMapper)) {
|
||||||
tabCompletions = new TabCompletions(command, System.currentTimeMillis(), tabCompleteSupplier.get());
|
tabCompletions = new TabCompletions(command, System.currentTimeMillis(), tabCompleteSupplier.get());
|
||||||
tabCompletionCache.put(key, tabCompletions);
|
tabCompletionCache.put(key, tabCompletions);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren