Skip to content

LSP autocomplete/completion not triggering despite hover & diagnostics working (vtsls) #2873

Description

@duck3mk

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I'm using the vtsls language server (also tested with the built-in "TypeScript / JavaScript (vtsls)" server) for a plain JavaScript project. The LSP connection appears to be working correctly — diagnostics (e.g. "File is a CommonJS module" warning) and hover information (showing type info on hover) both work as expected.
However, code completion/autocomplete never appears, even when:
Typing fs. after require('fs')
Manually triggering completion via the toolbar shortcut
Project has a valid package.json and jsconfig.json
@types/node is installed as a dev dependency
Tried both the built-in vtsls server and a custom STDIO server pointing directly to the binary (/data/data/com.termux/files/usr/bin/vtsls)
Tried vtsls versions 0.3.0 and 0.2.9
Project is located inside Termux's home directory (not opened via SAF), as recommended

Steps to reproduce:
Open a .js file in a project inside ~/ (Termux home)
Enable vtsls language server
Write require('fs') then type fs.
No completion popup appears (hover and diagnostics work fine on the same file)
Expected behavior: Completion suggestions (e.g. readFile, writeFile, etc.) should appear.

Environment

Acode latest version
Termux (npm 11.19.1)
Android device

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

Activity

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

    needs info / awaiting responseThe issue needs more information from the user before proceeding.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions