File tree Expand file tree Collapse file tree
lang-xpath/main/uk/co/reecedunn/intellij/plugin/xpath/completion
lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/completion Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /*
2- * Copyright (C) 2019 Reece H. Dunn
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- */
1+ // Copyright (C) 2019, 2025 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
162package uk.co.reecedunn.intellij.plugin.xpath.completion
173
184import com.intellij.codeInsight.AutoPopupController
@@ -27,7 +13,7 @@ class XPathTypedHandler : TypedHandlerDelegate() {
2713 if (file !is XPath ) return Result .CONTINUE
2814
2915 if (charTyped == ' $' || charTyped == ' :' ) {
30- AutoPopupController .getInstance(project).autoPopupMemberLookup (editor, null )
16+ AutoPopupController .getInstance(project).scheduleAutoPopup (editor)
3117 return Result .CONTINUE
3218 }
3319 return Result .CONTINUE
Original file line number Diff line number Diff line change 1- /*
2- * Copyright (C) 2019 Reece H. Dunn
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- */
1+ // Copyright (C) 2019, 2025 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
162package uk.co.reecedunn.intellij.plugin.xpath.completion.lookup
173
184import com.intellij.codeInsight.AutoPopupController
@@ -49,7 +35,7 @@ open class XPathLookupElement(lookupString: String) : LookupElement() {
4935 if (insert == = XPathInsertText .QNAME_PREFIX ) {
5036 // Keep the auto-complete popup visible, so namespaced variables
5137 // and functions can be auto-completed.
52- AutoPopupController .getInstance(context.project).autoPopupMemberLookup (context.editor, null )
38+ AutoPopupController .getInstance(context.project).scheduleAutoPopup (context.editor)
5339 }
5440 }
5541
Original file line number Diff line number Diff line change 1- /*
2- * Copyright (C) 2019 Reece H. Dunn
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- */
1+ // Copyright (C) 2019, 2025 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
162package uk.co.reecedunn.intellij.plugin.xquery.completion
173
184import com.intellij.codeInsight.AutoPopupController
@@ -27,7 +13,7 @@ class XQueryTypedHandler : TypedHandlerDelegate() {
2713 if (file !is XQueryModule ) return Result .CONTINUE
2814
2915 if (charTyped == ' $' || charTyped == ' :' ) {
30- AutoPopupController .getInstance(project).autoPopupMemberLookup (editor, null )
16+ AutoPopupController .getInstance(project).scheduleAutoPopup (editor)
3117 return Result .CONTINUE
3218 }
3319 return Result .CONTINUE
You can’t perform that action at this time.
0 commit comments