mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
Update AGP version; Do not use cached completions if the cached result is incomplete
This commit is contained in:
Binary file not shown.
@@ -28,7 +28,7 @@
|
||||
style="@style/AppTheme.TextInputLayout.Outlined"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/replacement"
|
||||
android:hint="@string/msg_replacement"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
||||
@@ -368,6 +368,7 @@
|
||||
<string name="msg_project_initialization_failed">Project initialization failed</string>
|
||||
<string name="msg_project_not_initialized">Project is not initialized</string>
|
||||
<string name="msg_running_task">Running task: \'%1$s\'</string>
|
||||
<string name="msg_replacement">Replacement</string>
|
||||
</resources>
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -32,7 +32,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.1.3'
|
||||
classpath 'com.android.tools.build:gradle:7.2.0'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath 'com.google.googlejavaformat:google-java-format:1.15.0'
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ ext {
|
||||
]
|
||||
|
||||
common = [
|
||||
editor: 'io.github.Rosemoe.sora-editor:editor:0.11.2',
|
||||
editor: 'io.github.Rosemoe.sora-editor:editor:0.11.1',
|
||||
utilcode: 'com.blankj:utilcodex:1.30.6',
|
||||
file_picker: 'com.github.abhishekti7:UnicornFilePicker:1.0.2',
|
||||
glide: 'com.github.bumptech.glide:glide:4.12.0',
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -96,7 +96,7 @@ private constructor(val params: CompletionParams, val result: CompletionResult)
|
||||
log.info("...incompatible partial identifier")
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public class CompletionProvider extends AbstractServiceProvider implements IComp
|
||||
|
||||
result.markCached();
|
||||
|
||||
if (!result.getItems().isEmpty()) {
|
||||
if (!result.isIncomplete() && result.getItems().size() > 10) {
|
||||
LOG.info("...using cached completion");
|
||||
logCompletionDuration(started, result);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user