microsoft / microsoft/language-server-protocol

Question regarding ordering for rename requests

オープン
#1,663 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

clarification rename
主要言語
TypeScript
スター
13k
フォーク
1k
平均マージ
6日 1時間
マージ済み PR(30日)
10

説明

I am developing a new language server and I'm having issues understanding how multiple rename requests should be handled and in which order.

Suppose the client sends a rename request and the server starts computing the results, while it's computing, the client sends another rename request, in this case, what should do the server do?

  • Should it try to fullfill the first rename request and then process the second request such that the requests are queued at the server?
  • Should the request be cancelled? In tha case: Who should cancel the request? and which of the two request should be cancelled?

Note that the same questions can be asked about all requests that send a WorkspaceEdit as a result.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

issue では、ファイル、テスト、エントリーポイントのいずれも指定されていません。まず Language Server Protocol の request-cancellation と WorkspaceEdit に関するガイダンスを確認し、次に、重複する Rename リクエストに対して期待される順序またはキャンセル動作と、同じルールが WorkspaceEdit を生成する他のリクエストにも適用されるかどうかを明確にしてください。

索引モデルが issue の本文から書いたものです。

評価

領域
api
issue の種類
ドキュメント
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。