microsoft/language-server-protocol

Feature request: prepare paste request.

開放

#767 建立於 2019年6月1日

 (10 則留言) (0 個反應) (0 位負責人)HTML (956 個分叉)batch import
feature-requesthelp wantedidea

倉庫指標

星標
 (12,810 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南