33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 *--------------------------------------------------------------------------------------------*/
55
6- import { Event , NotificationHandler , RequestHandler } from 'vscode-jsonrpc' ;
6+ import { Disposable , Event , NotificationHandler , RequestHandler } from 'vscode-jsonrpc' ;
77import {
88 ApplyWorkspaceEditParams ,
99 WorkspaceEdit ,
@@ -14,6 +14,8 @@ import {
1414 CreateFilesParams ,
1515 RenameFilesParams ,
1616 DeleteFilesParams ,
17+ ClientCapabilities ,
18+ ServerCapabilities ,
1719} from 'vscode-languageserver-protocol' ;
1820import { Connection , RemoteWorkspace } from 'vscode-languageserver' ;
1921import { TelemetryImpl } from '../../src/languageserver/telemetry' ;
@@ -27,6 +29,9 @@ export class TestWorkspace implements RemoteWorkspace {
2729 applyEdit ( paramOrEdit : ApplyWorkspaceEditParams | WorkspaceEdit ) : Promise < ApplyWorkspaceEditResponse > {
2830 throw new Error ( 'Method not implemented.' ) ;
2931 }
32+ fillServerCapabilities ( capabilities : ServerCapabilities < any > ) : void {
33+ throw new Error ( 'Method not implemented.' ) ;
34+ }
3035 getConfiguration ( ) : Promise < any > ;
3136 getConfiguration ( section : string ) : Promise < any > ;
3237 getConfiguration ( item : ConfigurationItem ) : Promise < any > ;
@@ -37,23 +42,26 @@ export class TestWorkspace implements RemoteWorkspace {
3742 getWorkspaceFolders ( ) : Promise < WorkspaceFolder [ ] > {
3843 throw new Error ( 'Method not implemented.' ) ;
3944 }
45+ initialize ( capabilities : ClientCapabilities ) : void {
46+ throw new Error ( 'Method not implemented.' ) ;
47+ }
4048 onDidChangeWorkspaceFolders : Event < WorkspaceFoldersChangeEvent > ;
41- onDidCreateFiles ( handler : NotificationHandler < CreateFilesParams > ) : void {
49+ onDidCreateFiles ( handler : NotificationHandler < CreateFilesParams > ) : Disposable {
4250 throw new Error ( 'Method not implemented.' ) ;
4351 }
44- onDidRenameFiles ( handler : NotificationHandler < RenameFilesParams > ) : void {
52+ onDidRenameFiles ( handler : NotificationHandler < RenameFilesParams > ) : Disposable {
4553 throw new Error ( 'Method not implemented.' ) ;
4654 }
47- onDidDeleteFiles ( handler : NotificationHandler < DeleteFilesParams > ) : void {
55+ onDidDeleteFiles ( handler : NotificationHandler < DeleteFilesParams > ) : Disposable {
4856 throw new Error ( 'Method not implemented.' ) ;
4957 }
50- onWillCreateFiles ( handler : RequestHandler < CreateFilesParams , WorkspaceEdit , never > ) : void {
58+ onWillCreateFiles ( handler : RequestHandler < CreateFilesParams , WorkspaceEdit , never > ) : Disposable {
5159 throw new Error ( 'Method not implemented.' ) ;
5260 }
53- onWillRenameFiles ( handler : RequestHandler < RenameFilesParams , WorkspaceEdit , never > ) : void {
61+ onWillRenameFiles ( handler : RequestHandler < RenameFilesParams , WorkspaceEdit , never > ) : Disposable {
5462 throw new Error ( 'Method not implemented.' ) ;
5563 }
56- onWillDeleteFiles ( handler : RequestHandler < DeleteFilesParams , WorkspaceEdit , never > ) : void {
64+ onWillDeleteFiles ( handler : RequestHandler < DeleteFilesParams , WorkspaceEdit , never > ) : Disposable {
5765 throw new Error ( 'Method not implemented.' ) ;
5866 }
5967}
0 commit comments