microsoft / microsoft/language-server-protocol

Is the any form of autocompletion/insertion in the LSP?

Open
#715 36 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

completion feature-request
Dominant language
TypeScript
Stars
13k
Forks
1k
Avg merge
6d 1h
Merged PRs (30d)
10

Description

Im working on the XML Language Server and we've implemented a custom service to auto insert the end tag of an element.

Start with:

    <a

Type the '>' character:

    <a>

Without any user interaction '</a>' is automatically inserted:

    <a> </a>

Does something currently exist/is being considered in the protocol that would provide the same functionality?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the XML end-tag insertion example and review the protocol's completion and text-edit entry points. The issue names no files or tests, so first determine whether existing capabilities cover this behavior. Done means establishing whether the protocol already supports it or defining what protocol change would be needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, xml
Domain
api, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.