Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP Client: Use full complete item to complete, not just the missing suffix #4728

Merged
merged 1 commit into from Nov 25, 2022

Conversation

matthiasblaesing
Copy link
Contributor

This is the test case (typescript):

export class test {
    demo() {
        this.runstranget|
    }

    runStrangeThings(): void {
    }
}

The codecompletion at the | mark will offer "runStrangeThings", but completion will yield "this.runstrangethings". The reason is, that the CC is invoced case-insensitive, so the original string needs to be replaced with the full result.

…suffix

This is the test case (typescript):

export class test {
    demo() {
        this.runstranget|
    }

    runStrangeThings(): void {
    }
}


The codecompletion at the | mark will offer "runStrangeThings", but
completion will yield "this.runstrangethings". The reason is, that
the CC is invoced case-insensitive, so the original string needs to be
replaced with the full result.
@matthiasblaesing matthiasblaesing added LSP [ci] enable Language Server Protocol tests TypeScript [ci] enable web job labels Oct 3, 2022
@matthiasblaesing matthiasblaesing added this to the NB16 milestone Oct 3, 2022
@neilcsmith-net neilcsmith-net modified the milestones: NB16, NB17 Oct 19, 2022
@matthiasblaesing
Copy link
Contributor Author

Hearing no objects, having run with this the last few weeks, travis and github action being happy. I'll merge this.

@matthiasblaesing matthiasblaesing merged commit e2468f0 into apache:master Nov 25, 2022
@matthiasblaesing matthiasblaesing deleted the lsp_insert branch November 27, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP [ci] enable Language Server Protocol tests TypeScript [ci] enable web job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants