Skip to content

Completion not considering context [JavaScript] #408

@sQVe

Description

@sQVe

I'll like to first give a huge thank you for this awesome plugin. I've been using it extensively and it's awesome! 🤗

Summary

This is more a question than an issue. When using javascript-typescript-langserver together with LanguageClient-neovim there's seem to be some slight quirks regarding context. A fresh file with the content:

class Dummy {}

const array = [1,2,3];
array.<cursor>

In the above code the completion will actually suggest Dummy, which seems a bit off.

Is this a bug or in some way wanted behaviour?

Reproduction

NVIM v0.2.2
languageclient 0.1.73
javascript-typescript-langserver 2.8.0

LanguageClient.log
LanguageServer.log

Current Behavior

screenfetch-2018-04-29_22-38-22

Expected Behavior

The completion should consider cursor placement and in this case only suggest things that make sense on a array after .. Like map, includes and etc.

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