3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- import { Event , NotificationHandler , RequestHandler } from 'vscode-jsonrpc' ;
6
+ import { Disposable , Event , NotificationHandler , RequestHandler } from 'vscode-jsonrpc' ;
7
7
import {
8
8
ApplyWorkspaceEditParams ,
9
9
WorkspaceEdit ,
@@ -14,6 +14,8 @@ import {
14
14
CreateFilesParams ,
15
15
RenameFilesParams ,
16
16
DeleteFilesParams ,
17
+ ClientCapabilities ,
18
+ ServerCapabilities ,
17
19
} from 'vscode-languageserver-protocol' ;
18
20
import { Connection , RemoteWorkspace } from 'vscode-languageserver' ;
19
21
import { TelemetryImpl } from '../../src/languageserver/telemetry' ;
@@ -27,6 +29,9 @@ export class TestWorkspace implements RemoteWorkspace {
27
29
applyEdit ( paramOrEdit : ApplyWorkspaceEditParams | WorkspaceEdit ) : Promise < ApplyWorkspaceEditResponse > {
28
30
throw new Error ( 'Method not implemented.' ) ;
29
31
}
32
+ fillServerCapabilities ( capabilities : ServerCapabilities < any > ) : void {
33
+ throw new Error ( 'Method not implemented.' ) ;
34
+ }
30
35
getConfiguration ( ) : Promise < any > ;
31
36
getConfiguration ( section : string ) : Promise < any > ;
32
37
getConfiguration ( item : ConfigurationItem ) : Promise < any > ;
@@ -37,23 +42,26 @@ export class TestWorkspace implements RemoteWorkspace {
37
42
getWorkspaceFolders ( ) : Promise < WorkspaceFolder [ ] > {
38
43
throw new Error ( 'Method not implemented.' ) ;
39
44
}
45
+ initialize ( capabilities : ClientCapabilities ) : void {
46
+ throw new Error ( 'Method not implemented.' ) ;
47
+ }
40
48
onDidChangeWorkspaceFolders : Event < WorkspaceFoldersChangeEvent > ;
41
- onDidCreateFiles ( handler : NotificationHandler < CreateFilesParams > ) : void {
49
+ onDidCreateFiles ( handler : NotificationHandler < CreateFilesParams > ) : Disposable {
42
50
throw new Error ( 'Method not implemented.' ) ;
43
51
}
44
- onDidRenameFiles ( handler : NotificationHandler < RenameFilesParams > ) : void {
52
+ onDidRenameFiles ( handler : NotificationHandler < RenameFilesParams > ) : Disposable {
45
53
throw new Error ( 'Method not implemented.' ) ;
46
54
}
47
- onDidDeleteFiles ( handler : NotificationHandler < DeleteFilesParams > ) : void {
55
+ onDidDeleteFiles ( handler : NotificationHandler < DeleteFilesParams > ) : Disposable {
48
56
throw new Error ( 'Method not implemented.' ) ;
49
57
}
50
- onWillCreateFiles ( handler : RequestHandler < CreateFilesParams , WorkspaceEdit , never > ) : void {
58
+ onWillCreateFiles ( handler : RequestHandler < CreateFilesParams , WorkspaceEdit , never > ) : Disposable {
51
59
throw new Error ( 'Method not implemented.' ) ;
52
60
}
53
- onWillRenameFiles ( handler : RequestHandler < RenameFilesParams , WorkspaceEdit , never > ) : void {
61
+ onWillRenameFiles ( handler : RequestHandler < RenameFilesParams , WorkspaceEdit , never > ) : Disposable {
54
62
throw new Error ( 'Method not implemented.' ) ;
55
63
}
56
- onWillDeleteFiles ( handler : RequestHandler < DeleteFilesParams , WorkspaceEdit , never > ) : void {
64
+ onWillDeleteFiles ( handler : RequestHandler < DeleteFilesParams , WorkspaceEdit , never > ) : Disposable {
57
65
throw new Error ( 'Method not implemented.' ) ;
58
66
}
59
67
}
0 commit comments