mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
LSP-370 [analyzer] Java completion sorting
GitOrigin-RevId: ee9fbec91e1af9a9e5d1b49c077ecf03051da010
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f32fa80a8f
commit
c6bf4b505e
@@ -232,6 +232,7 @@ interface CompletionOptions: WorkDoneProgressOptions { /**
|
||||
)
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
@Serializable
|
||||
data class CompletionRegistrationOptionsImpl(
|
||||
override val triggerCharacters: List<String>?,
|
||||
@@ -670,10 +671,18 @@ data class CompletionItem(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun emptyAtPosition(position: Position): Edit {
|
||||
val range = Range(position, position)
|
||||
return InsertReplace(InsertReplaceEdit("", range, range))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// todo: custom serializer needed
|
||||
@Suppress("unused")
|
||||
@Serializable
|
||||
@JvmInline
|
||||
value class TextEditOrInsertReplaceEdit private constructor(val edit: JsonElement) {
|
||||
|
||||
Reference in New Issue
Block a user