Skip to content

Commit 587af90

Browse files
committed
Minor fixes
1 parent 2aa84a2 commit 587af90

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/main/kotlin/com/sourcegraph/cody/autocomplete/CodyInlineCompletionProvider.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ class CodyInlineCompletionProvider : InlineCompletionProvider {
7171
if (System.getProperty("cody.autocomplete.enableFormatting") == "false") {
7272
it.insertText
7373
} else {
74-
WriteCommandAction.runWriteCommandAction<String>(
75-
editor.project,
76-
{
77-
CodyFormatter.formatStringBasedOnDocument(
78-
it.insertText, project, editor.document, range, offset)
79-
})
74+
WriteCommandAction.runWriteCommandAction<String>(editor.project) {
75+
CodyFormatter.formatStringBasedOnDocument(
76+
it.insertText, project, editor.document, range, offset)
77+
}
8078
}
8179

8280
// ...
@@ -132,10 +130,6 @@ class CodyInlineCompletionProvider : InlineCompletionProvider {
132130
project?.let { resetApplication(it) }
133131
}
134132

135-
// fun restartOn(event: InlineCompletionEvent): Boolean {
136-
// return event is InlineCompletionEvent.InlineLookupEvent
137-
// }
138-
139133
fun isEnabled(event: InlineCompletionEvent): Boolean {
140134
return isEnabled()
141135
}

0 commit comments

Comments
 (0)