Skip to content

Commit

Permalink
Prefer using [start, end] offset instead of sub string (#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer authored Dec 18, 2023
1 parent 692e892 commit 3f725d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2595,6 +2595,10 @@ export interface ParameterInformation {
* signature label. (see SignatureInformation.label). The offsets are based on a UTF-16
* string representation as `Position` and `Range` does.
*
* To avoid ambiguities a server should use the [start, end] offset value instead of using
* a substring. Whether a client support this is controlled via `labelOffsetSupport` client
* capability.
*
* *Note*: a label of type string should be a substring of its containing signature label.
* Its intended use case is to highlight the parameter label part in the `SignatureInformation.label`.
*/
Expand Down

0 comments on commit 3f725d8

Please sign in to comment.