You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially I left it out because the additions were directly in protocol.md - now that the extension is in an explicit "extension" file it makes more sense to spec it with an x prefix for implementors.
We can omit it when we do the official proposal in protocol.md
/* ... all fields from the base ClientCapabilities ... */
25
25
26
26
/**
27
-
* The client provides support for workspace/files.
27
+
* The client provides support for workspace/xfiles.
28
28
*/
29
-
filesProvider?:boolean;
29
+
xfilesProvider?:boolean;
30
30
/**
31
-
* The client provides support for textDocument/content.
31
+
* The client provides support for textDocument/xcontent.
32
32
*/
33
-
contentProvider?:boolean;
33
+
xcontentProvider?:boolean;
34
34
}
35
35
```
36
36
@@ -39,7 +39,7 @@ interface ClientCapabilities {
39
39
The content request is sent from the server to the client to request the current content of any text document. This allows language servers to operate without accessing the file system directly.
40
40
41
41
_Request_:
42
-
* method: 'textDocument/content'
42
+
* method: 'textDocument/xcontent'
43
43
* params: `ContentParams` defined as follows:
44
44
45
45
```typescript
@@ -62,7 +62,7 @@ The files request is sent from the server to the client to request a list of all
62
62
A language server can use the result to index files by filtering and doing a content request for each text document of interest.
63
63
64
64
_Request_:
65
-
* method: 'workspace/files'
65
+
* method: 'workspace/xfiles'
66
66
* params: `FilesParams` defined as follows:
67
67
68
68
```typescript
@@ -88,7 +88,7 @@ Relative (`rootPath` is `file:///some/project`):
88
88
{
89
89
"jsonrpc": "2.0",
90
90
"id": 1,
91
-
"method": "workspace/files"
91
+
"method": "workspace/xfiles"
92
92
}
93
93
```
94
94
@@ -111,7 +111,7 @@ Absolute:
111
111
{
112
112
"jsonrpc": "2.0",
113
113
"id": 1,
114
-
"method": "workspace/files",
114
+
"method": "workspace/xfiles",
115
115
"params": {
116
116
"base": "file:///usr/local/go"
117
117
}
@@ -136,7 +136,7 @@ Absolute:
136
136
137
137
* The protocol uses URIs, not file paths, to be consistent with the rest of LSP.
138
138
* Matching the `base` parameter relative to the `rootPath` permits the server to request files outside the workspace even if the workspace is on a remote host and/or uses an arbitrary protocol.
139
-
* Usage of `TextDocumentIdentifier` in `workspace/files` allows to easily extend the result with more properties in the future without breaking backward compatibility.
139
+
* Usage of `TextDocumentIdentifier` in `workspace/xfiles` allows to easily extend the result with more properties in the future without breaking backward compatibility.
0 commit comments