Skip to content

Tide-complete yields incomplete prefix for private methods #455

@jackschu

Description

@jackschu

Checklist

  • I have searched both open and closed issues and cannot find a duplicate.
  • I can reproduce the problem with the latest version of the relevant packages.
    I'm on tide-/ and Company 0.9.13
  • The problem still occurs after I issued M-x tide-restart-server in the buffer where I had the problem.
  • I verified that the version and the configuration file path reported by M-x tide-verify-setup are correct.
  • If tide is reporting an error or warning I think should not be reported, I can run tsc (and tslint, if applicable) without the error or warning I'm seeing in tide.
  • If tide is not reporting an error or warning I think should be reported, tsc (or tslint, if applicable) reports the error or warning I was expecting to see.
  • I am positive the problem does not belong to typescript-mode or tsserver.

Relevant Version Numbers

  • Tide: 20220514.614
  • Company: 0.9.13
  • TypeScript:
  • tsserver version: 4.7.4
  • Emacs: 27.2 (x86_64-pc-linux-gnu)

(The list above is minimal. Make sure to include any other version numbers relevant to your report.)

Steps to Reproduce the Bug

run M-x company-diag using the company-tide backend for the string this.# inside of a class

Expected Behavior

observe "#" as the prefix
be suggested private methods from that class as completions
selecting one such method #foo results in this.#foo

Actual Behavior

observe "" as the prefix
be suggested all methods from that class as completions
selecting one such method #foo results in this.##foo

Thanks for taking a look at this and your work on this project :) I tried to dig in myself but my elisp skills lacking, looking forward to learning from how this is resolved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions