microsoft / microsoft/language-server-protocol

Specify read-only locations

Open
#1,150 7 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be nice to provide a hint that locations (Location, LocationLink) could be read-only. For instance: if performing a find usages or a go to definition on a symbol that ends up in a third party library (crates, npm packages, disassembled .NET DLLs) you may not want that source to be editable at that location and could open up a document in read-only mode.

https://github.com/rust-analyzer/rust-analyzer/issues/6623

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 by reading the linked rust-analyzer issue 6623 and the protocol definitions for Location and LocationLink. Determine how a read-only hint should be represented and how it would affect clients opening third-party or disassembled sources. Done means the protocol change is specified clearly enough for language servers and clients to implement consistently.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.