Skip to content

Commit 2c60285

Browse files
committed
Updates made according to sourcekit-lsp
1 parent 50ffdcd commit 2c60285

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sourcekit-lsp/LanguageClientManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export class LanguageClientManager {
561561
},
562562
errorHandler: new SourceKitLSPErrorHandler(5),
563563
initializationOptions: {
564-
peekDocuments: true, // workaround for client capability to handle `PeekDocumentsRequest`
564+
"workspace/peekDocuments": true, // workaround for client capability to handle `PeekDocumentsRequest`
565565
},
566566
};
567567

src/sourcekit-lsp/lspExtensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface PeekDocumentsResult {
4848
*
4949
* This request is handled by the client to show the given documents in a "peeked" editor (i.e. inline with / inside the editor canvas).
5050
*
51-
* It requires the experimental client capability `"peekDocuments"` to use.
51+
* It requires the experimental client capability `"workspace/peekDocuments"` to use.
5252
*/
5353
export const PeekDocumentsRequest = new langclient.RequestType<
5454
PeekDocumentsParams,

0 commit comments

Comments
 (0)