microsoft / microsoft/language-server-protocol
Question regarding ordering for rename requests
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 13k
- Forks
- 1k
- Ø Merge
- 6 T. 1 Std.
- Gemergte PRs (30 T.)
- 10
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
In der Issue wird keine Datei, kein Test und kein Einstiegspunkt genannt. Beginne mit der Prüfung der Leitlinien des Language Server Protocol zu request-cancellation und WorkspaceEdit. Kläre anschließend die erwartete Reihenfolge oder das Abbruchverhalten bei sich überschneidenden Rename-Anfragen und ob dieselbe Regel auch für andere Anfragen gilt, die WorkspaceEdit erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- api
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100