Skip to content

Commit 6354ab2

Browse files
committed
Replace autoPopupMemberLookup with scheduleAutoPopup.
1 parent ec6816c commit 6354ab2

3 files changed

Lines changed: 6 additions & 48 deletions

File tree

src/lang-xpath/main/uk/co/reecedunn/intellij/plugin/xpath/completion/XPathTypedHandler.kt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
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
162
package uk.co.reecedunn.intellij.plugin.xpath.completion
173

184
import 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

src/lang-xpath/main/uk/co/reecedunn/intellij/plugin/xpath/completion/lookup/XPathLookupElement.kt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
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
162
package uk.co.reecedunn.intellij.plugin.xpath.completion.lookup
173

184
import 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

src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/completion/XQueryTypedHandler.kt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
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
162
package uk.co.reecedunn.intellij.plugin.xquery.completion
173

184
import 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

0 commit comments

Comments
 (0)