This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch delivery
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/delivery by this push:
     new c122621  Stop PHP from invoking autocompletion for all keystrokes 
inside embedded HTML.
     new 6f1ac1b  Merge pull request #3094 from 
neilcsmith-net/php-html-completion
c122621 is described below

commit c1226219bed9b104549e56ee257b941564cace09
Author: Neil C Smith <neilcsm...@apache.org>
AuthorDate: Fri Aug 6 17:35:36 2021 +0100

    Stop PHP from invoking autocompletion for all keystrokes inside embedded 
HTML.
    
    Changing from QueryType.ALL_COMPLETION to QueryType.NONE for embedded HTML 
tokens stops the PHP code completion overriding the HTML one.
---
 .../org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java
 
b/php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java
index ec0f079..1c24d79 100644
--- 
a/php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java
+++ 
b/php/php.editor/src/org/netbeans/modules/php/editor/completion/PHPCodeCompletion.java
@@ -2166,7 +2166,7 @@ public class PHPCodeCompletion implements 
CodeCompletionHandler2 {
             Token t = ts.token();
             if (t != null) {
                 if (t.id() == PHPTokenId.T_INLINE_HTML) {
-                    return QueryType.ALL_COMPLETION;
+                    return QueryType.NONE;
                 } else {
                     if 
(AUTOPOPUP_STOP_CHARS.contains(Character.valueOf(lastChar))) {
                         return QueryType.STOP;

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to