Skip to content

Commit ed36538

Browse files
committed
ConvertprepareSupportDefaultBehavior to enum
1 parent 575c23a commit ed36538

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

_specifications/specification-3-16.md

+23-6
Original file line numberDiff line numberDiff line change
@@ -5924,8 +5924,12 @@ _Client Capability_:
59245924
export interface CodeLensWorkspaceClientCapabilities {
59255925
/**
59265926
* Whether the client implementation supports a refresh request sent from the
5927-
* server to the client. This is useful if a server detects a change which
5928-
* requires a re-calculation of all code lenses.
5927+
* server to the client.
5928+
*
5929+
* Note that this event is global and will force the client to refresh all
5930+
* code lenses currently shown. It should be used with absolute care and is
5931+
* useful for situation where a server for example detect a project wide
5932+
* change that requires such a calculation.
59295933
*/
59305934
refreshSupport?: boolean;
59315935
}
@@ -6446,6 +6450,13 @@ _Client Capability_:
64466450
* property type: `RenameClientCapabilities` defined as follows:
64476451

64486452
```typescript
6453+
export namespace PrepareSupportDefaultBehavior {
6454+
/**
6455+
* The client's default behavior is to select the identifier
6456+
* according the to language's syntax rule.
6457+
*/
6458+
export const Identifier: 1 = 1;
6459+
}
64496460
export interface RenameClientCapabilities {
64506461
/**
64516462
* Whether rename supports dynamic registration.
@@ -6464,9 +6475,12 @@ export interface RenameClientCapabilities {
64646475
* Client supports the default behavior result
64656476
* (`{ defaultBehavior: boolean }`).
64666477
*
6478+
* The value indicates the default behavior used by the
6479+
* client.
6480+
*
64676481
* @since version 3.16.0
64686482
*/
6469-
prepareSupportDefaultBehavior?: boolean;
6483+
prepareSupportDefaultBehavior?: PrepareSupportDefaultBehavior;
64706484

64716485
/**
64726486
* Whether th client honors the change annotations in
@@ -7376,9 +7390,12 @@ _Client Capability_:
73767390
export interface SemanticTokensWorkspaceClientCapabilities {
73777391
/**
73787392
* Whether the client implementation supports a refresh request sent from
7379-
* the server to the client. This is useful if a server detects a project
7380-
* wide configuration change which requires a re-calculation of all semantic
7381-
* tokens provided by the server issuing the request.
7393+
* the server to the client.
7394+
*
7395+
* Note that this event is global and will force the client to refresh all
7396+
* semantic tokens currently shown. It should be used with absolute care
7397+
* and is useful for situation where a server for example detect a project
7398+
* wide change that requires such a calculation.
73827399
*/
73837400
refreshSupport?: boolean;
73847401
}

0 commit comments

Comments
 (0)