Skip to content

Unable to see code completion after the colon in comments. #447

Done

Description

@CppCXY

LSP4IJ:
completion1

Vscode:

completion2

but I can see completion response:

[Trace - 16:51:13] Received response 'textDocument/completion - (190)' in 0ms.
Result: [
  {
    "label": "unused",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "undefined-global",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "need-import",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "deprecated",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "access-private-member",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "access-protected-member",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "access-package-member",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "missing-parameter",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "no-discard",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "disable-global-define",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "local-const-reassign",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "type-not-found",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "undefined-field",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  },
  {
    "label": "inject-field-fail",
    "kind": 20,
    "detail": "diagnostic code",
    "deprecated": false
  }
]

Activity

  1. fbricon commented on Aug 12, 2024

    @fbricon
    Contributor

    which LS is that, so we can try to reproduce?

  2. added
    bug
    on Aug 12, 2024
  3. CppCXY commented on Aug 12, 2024

    @CppCXY
    ContributorAuthor

    you can direct install EmmyLua2 in intellij idea
    image

  4. angelozerr commented on Aug 12, 2024

    @angelozerr
    Contributor

    @CppCXY if you do Ctrl+Space, do you see completion popup?

  5. CppCXY commented on Aug 12, 2024

    @CppCXY
    ContributorAuthor

    no I can't see

  6. fbricon commented on Aug 12, 2024

    @fbricon
    Contributor

    I can reproduce with the emmylua2 plugin, but without it, by simply defining a LS manually pointing to ~/.vscode/extensions/tangzx.emmylua-0.8.17-darwin-arm64/server/EmmyLua.LanguageServer-darwin-arm64/EmmyLua.LanguageServer, completion works properly, with the exact same completion response as @CppCXY

  7. added a commit that references this issue on Aug 12, 2024
    043d563
  8. angelozerr commented on Aug 12, 2024

    @angelozerr
    Contributor

    I can reproduce with the emmylua2 plugin, but without it, by simply defining a LS manually pointing to ~/.vscode/extensions/tangzx.emmylua-0.8.17-darwin-arm64/server/EmmyLua.LanguageServer-darwin-arm64/EmmyLua.LanguageServer, completion works properly, with the exact same completion response as @CppCXY

    It looks like it is a problem with a custom PsiFile. Perhaps completion is not allowed inside PsiComment?

  9. CppCXY commented on Aug 12, 2024

    @CppCXY
    ContributorAuthor

    It looks like it is a problem with a custom PsiFile. Perhaps completion is not allowed inside PsiComment?

    But the preceding disable also has completion.

  10. angelozerr commented on Aug 12, 2024

    @angelozerr
    Contributor

    It looks like it is a problem with a custom PsiFile. Perhaps completion is not allowed inside PsiComment?

    But the preceding disable also has completion.

    Indeed, I need to debug IJ to understand more the problem.

  11. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    @CppCXY I have installed your plugin, and with LSP4IJ there are empty completion in LSP console:

    Given this lua file:

    ---@diagnostic disable-next-line : 
    • with LSP4IJ:
    [Trace - 11:05:40] Sending request 'textDocument/completion - (9)'.
    Params: {
      "context": {
        "triggerKind": 1
      },
      "textDocument": {
        "uri": "file:///C:/Users/azerr/Downloads/simpleTest/test.lua"
      },
      "position": {
        "line": 0,
        "character": 35
      }
    }
    
    
    [Trace - 11:05:40] Received response 'textDocument/completion - (9)' in 2ms.
    Result: []
    
    • with vscode:
    [Trace - 11:02:31 AM] Sending request 'textDocument/completion - (38)'.
    Params: {
        "textDocument": {
            "uri": "file:///c%3A/Users/azerr/Downloads/simpleTest/test.lua"
        },
        "position": {
            "line": 0,
            "character": 35
        },
        "context": {
            "triggerKind": 1
        }
    }
    
    
    [Trace - 11:02:31 AM] Received response 'textDocument/completion - (38)' in 5ms.
    Result: {
        "isIncomplete": false,
        "items": [
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "action-after-return",
                "sortText": "0001"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "ambiguity-1",
                "sortText": "0002"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "ambiguous-syntax",
                "sortText": "0003"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "args-after-dots",
                "sortText": "0004"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "assign-type-mismatch",
                "sortText": "0005"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "await-in-sync",
                "sortText": "0006"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "block-after-else",
                "sortText": "0007"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "break-outside",
                "sortText": "0008"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "cast-local-type",
                "sortText": "0009"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "cast-type-mismatch",
                "sortText": "0010"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "circle-doc-class",
                "sortText": "0011"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "close-non-object",
                "sortText": "0012"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "code-after-break",
                "sortText": "0013"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "codestyle-check",
                "sortText": "0014"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "count-down-loop",
                "sortText": "0015"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "deprecated",
                "sortText": "0016"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "different-requires",
                "sortText": "0017"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "discard-returns",
                "sortText": "0018"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "doc-field-no-class",
                "sortText": "0019"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "duplicate-doc-alias",
                "sortText": "0020"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "duplicate-doc-field",
                "sortText": "0021"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "duplicate-doc-param",
                "sortText": "0022"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "duplicate-index",
                "sortText": "0023"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "duplicate-set-field",
                "sortText": "0024"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "empty-block",
                "sortText": "0025"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-assign-as-eq",
                "sortText": "0026"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-c-long-comment",
                "sortText": "0027"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-comment-prefix",
                "sortText": "0028"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-do-as-then",
                "sortText": "0029"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-eq-as-assign",
                "sortText": "0030"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-esc",
                "sortText": "0031"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-nonstandard-symbol",
                "sortText": "0032"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "err-then-as-do",
                "sortText": "0033"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "exp-in-action",
                "sortText": "0034"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "global-element",
                "sortText": "0035"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "global-in-nil-env",
                "sortText": "0036"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "incomplete-signature-doc",
                "sortText": "0037"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "index-in-func-name",
                "sortText": "0038"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "inject-field",
                "sortText": "0039"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "invisible",
                "sortText": "0040"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "jump-local-scope",
                "sortText": "0041"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "keyword",
                "sortText": "0042"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "local-limit",
                "sortText": "0043"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "lowercase-global",
                "sortText": "0044"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "lua-doc-miss-sign",
                "sortText": "0045"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-error-diag-mode",
                "sortText": "0046"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-alias-extends",
                "sortText": "0047"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-alias-name",
                "sortText": "0048"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-arg-name",
                "sortText": "0049"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-cate-name",
                "sortText": "0050"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-class-extends-name",
                "sortText": "0051"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-class-name",
                "sortText": "0052"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-diag-mode",
                "sortText": "0053"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-diag-name",
                "sortText": "0054"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-field-extends",
                "sortText": "0055"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-field-name",
                "sortText": "0056"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-fun-after-overload",
                "sortText": "0057"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-generic-name",
                "sortText": "0058"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-local-name",
                "sortText": "0059"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-module-name",
                "sortText": "0060"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-operator-name",
                "sortText": "0061"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-param-extends",
                "sortText": "0062"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-param-name",
                "sortText": "0063"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-see-name",
                "sortText": "0064"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-sign-name",
                "sortText": "0065"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-symbol",
                "sortText": "0066"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-type-name",
                "sortText": "0067"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-vararg-type",
                "sortText": "0068"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "luadoc-miss-version",
                "sortText": "0069"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "malformed-number",
                "sortText": "0070"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-end",
                "sortText": "0071"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-esc-x",
                "sortText": "0072"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-exp",
                "sortText": "0073"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-exponent",
                "sortText": "0074"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-field",
                "sortText": "0075"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-loop-max",
                "sortText": "0076"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-loop-min",
                "sortText": "0077"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-method",
                "sortText": "0078"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-name",
                "sortText": "0079"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-sep-in-table",
                "sortText": "0080"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-space-between",
                "sortText": "0081"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "miss-symbol",
                "sortText": "0082"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "missing-fields",
                "sortText": "0083"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "missing-global-doc",
                "sortText": "0084"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "missing-local-export-doc",
                "sortText": "0085"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "missing-parameter",
                "sortText": "0086"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "missing-return",
                "sortText": "0087"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "missing-return-value",
                "sortText": "0088"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "name-style-check",
                "sortText": "0089"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "need-check-nil",
                "sortText": "0090"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "need-paren",
                "sortText": "0091"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "nesting-long-mark",
                "sortText": "0092"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "newfield-call",
                "sortText": "0093"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "newline-call",
                "sortText": "0094"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "no-unknown",
                "sortText": "0095"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "no-visible-label",
                "sortText": "0096"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "not-yieldable",
                "sortText": "0097"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "param-type-mismatch",
                "sortText": "0098"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "redefined-label",
                "sortText": "0099"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "redefined-local",
                "sortText": "0100"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "redundant-parameter",
                "sortText": "0101"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "redundant-return",
                "sortText": "0102"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "redundant-return-value",
                "sortText": "0103"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "redundant-value",
                "sortText": "0104"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "return-type-mismatch",
                "sortText": "0105"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "set-const",
                "sortText": "0106"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "spell-check",
                "sortText": "0107"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "trailing-space",
                "sortText": "0108"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unbalanced-assignments",
                "sortText": "0109"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "undefined-doc-class",
                "sortText": "0110"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "undefined-doc-name",
                "sortText": "0111"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "undefined-doc-param",
                "sortText": "0112"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "undefined-env-child",
                "sortText": "0113"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "undefined-field",
                "sortText": "0114"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "undefined-global",
                "sortText": "0115"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unexpect-dots",
                "sortText": "0116"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unexpect-efunc-name",
                "sortText": "0117"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unexpect-lfunc-name",
                "sortText": "0118"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unexpect-symbol",
                "sortText": "0119"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unicode-name",
                "sortText": "0120"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unknown-attribute",
                "sortText": "0121"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unknown-cast-variable",
                "sortText": "0122"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unknown-diag-code",
                "sortText": "0123"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unknown-operator",
                "sortText": "0124"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unknown-symbol",
                "sortText": "0125"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unreachable-code",
                "sortText": "0126"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unsupport-symbol",
                "sortText": "0127"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unused-function",
                "sortText": "0128"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unused-label",
                "sortText": "0129"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unused-local",
                "sortText": "0130"
            },
            {
                "insertTextFormat": 2,
                "kind": 12,
                "label": "unused-vararg",
                "sortText": "0131"
            }
        ]
    }
    
    
  12. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    But I have the impression that it is not the same language server (or perhaps not the sameconfig). I have this error

    image

    although with vscode, I have no error.

  13. CppCXY commented on Aug 13, 2024

    @CppCXY
    ContributorAuthor

    But they are two different plugins, and on the VS Code side, it should also use EmmyLua.

  14. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    Could you give me which vscode extension for EmmyLua are you comparing with your EmmyLua2 IJ plugin? It seems that I don't use the same language server than vscode, right?

  15. 9 remaining items

  16. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    My plugin does not provide completion after typing :, but it does provide completion when typing the first letter.

    Yes I have noticed that, but I do Ctr+Space and it is working in vscode but not in IJ, although vscode and LSP4IJ send the same LSP request completion. It is the reason why I suggest that you debug your language server.

  17. CppCXY commented on Aug 13, 2024

    @CppCXY
    ContributorAuthor

    My plugin does not provide completion after typing :, but it does provide completion when typing the first letter.

    Yes I have noticed that, but I do Ctr+Space and it is working in vscode but not in IJ, although vscode and LSP4IJ send the same LSP request completion. It is the reason why I suggest that you debug your language server.

    Indeed, I use LuaLS on IntelliJ, and the result is correct. It might indeed be necessary to compare the differences. Both plugins are made by me.

  18. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    I can reproduce with the emmylua2 plugin, but without it, by simply defining a LS manually pointing to ~/.vscode/extensions/tangzx.emmylua-0.8.17-darwin-arm64/server/EmmyLua.LanguageServer-darwin-arm64/EmmyLua.LanguageServer, completion works properly, with the exact same completion response as @CppCXY

    Same thing for me on Windows OS.

  19. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    @CppCXY I can see the LSP completion response now but the completion is not opened, let me investigate the problem.

  20. angelozerr commented on Aug 13, 2024

    @angelozerr
    Contributor

    @CppCXY after debugging LSP4IJ with your plugin, the problem comes from the completion prefix matcher which is in your case (when plugin is installed)

    disable-next-line : u although it should be just u. Without installing your plugin it is working correctly, so I suspect the problem comes from the custom PsiFile which doesn't parser correctly the disable-next-line : u

    image

  21. CppCXY commented on Aug 16, 2024

    @CppCXY
    ContributorAuthor

    I have to split it into different tokens to achieve this.
    image

  22. angelozerr commented on Aug 16, 2024

    @angelozerr
    Contributor

    Is it working now?

  23. CppCXY commented on Aug 16, 2024

    @CppCXY
    ContributorAuthor

    Is it working now?

    work well, However, using PSI to fully implement the parsing of the doc section is very difficult. Doing so would require maintaining two different language implementations of the parsing method.

  24. angelozerr commented on Aug 16, 2024

    @angelozerr
    Contributor

    I understand. I don't know if it is possible to customize prefix matcher. If it is possible, I think LSP4IJ should provide an LSP API to customize it and you could use it.

  25. added 2 commits that reference this issue on Nov 24, 2026
    115935b
    f9c2c24
  26. added a commit that references this issue on Nov 25, 2026
    63c2509
  27. added this to the 0.30.2 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-customizationbugcompletion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions