generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(completion): improve performance by using ReadAction and runBlock…
…ingCancellable #101 Previously, the completion provider was using a background task to load git commits, which could slow down the completion process. This commit optimizes the performance by using ReadAction to perform the commit loading operation in a non-blocking way, and runBlockingCancellable to ensure that the operation can be cancelled if necessary. This change should result in faster and more responsive completion suggestions.
- Loading branch information
Showing
2 changed files
with
21 additions
and
18 deletions.
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
5 changes: 5 additions & 0 deletions
5
exts/devin-lang/src/test/testData/parser/CommandAndSymbol.devin
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,5 @@ | ||
/explain @symbol:cc.unitmesh.devti#RevProvider.constructor | ||
|
||
/refactor @symbol:cc.unitmesh.devti#RevProvider.completions | ||
|
||
/edit @file:Users/phodal/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2023.3/eeff824a71d4b240b75e77296f74869ab1690c48/ideaIC-2023.3-sources.jar!/com/intellij/ide/presentation/VirtualFilePresentation.java #line:L1-L12 |