Skip to content

Commit 0d30e66

Browse files
committed
Refactor SqlParameterCompletionProvider to remove unnecessary project parameter in DirectiveCompletion
1 parent 163f930 commit 0d30e66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/org/domaframework/doma/intellij/contributor/sql/provider/SqlParameterCompletionProvider.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@ class SqlParameterCompletionProvider : CompletionProvider<CompletionParameters>(
8080
var isDirective = false
8181
try {
8282
val originalFile = parameters.originalFile
83-
val project = originalFile.project
8483
val pos = parameters.originalPosition ?: return
8584
val bindText =
8685
cleanString(pos.text)
8786
.substringAfter("/*")
8887
.substringBefore("*/")
8988

90-
val handler = DirectiveCompletion(originalFile, bindText, pos, project, result)
89+
val handler = DirectiveCompletion(originalFile, bindText, pos, result)
9190
val directiveSymbols = listOf("%", "#", "^", "@")
9291
directiveSymbols.forEach {
9392
if (!isDirective) {

0 commit comments

Comments
 (0)