microsoft / microsoft/language-server-protocol

Feature request: prepare paste request.

Open
#767 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

For languages having types it would be very useful to get a list of all "symbols" and their respective reference types for a given range.

My use case comes from a Java project where I'm pasting a snippet from one file to another within the same project. When copying the code the editor could make a request to the LS and receive the types. Then upon pasting in a new document the LS could automatically import those types. That is in a Java project add import statements based on any the pasted code.

An even wilder suggestion is to implement a paste request indicating a source and target file and source range for files within the same project.

This kind of types request could be useful in many other situations.

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

No files, tests, or entry points are named. First clarify whether the goal is a typed-symbols request or a source/target paste request, then define the protocol shape and acceptance examples before implementation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.