Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ba6b4c

Browse files
committed
Fix failing test and add expects for rename handlers registration
1 parent a96d50c commit 5ba6b4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎server/src/__tests__/server.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ describe('server', () => {
8888
"documentSymbolProvider": true,
8989
"hoverProvider": true,
9090
"referencesProvider": true,
91+
"renameProvider": {
92+
"prepareProvider": true,
93+
},
9194
"textDocumentSync": 1,
9295
"workspaceSymbolProvider": true,
9396
}
@@ -106,6 +109,8 @@ describe('server', () => {
106109
expect(connection.onHover).toHaveBeenCalledTimes(1)
107110
expect(connection.onReferences).toHaveBeenCalledTimes(1)
108111
expect(connection.onWorkspaceSymbol).toHaveBeenCalledTimes(1)
112+
expect(connection.onPrepareRename).toHaveBeenCalledTimes(1)
113+
expect(connection.onRenameRequest).toHaveBeenCalledTimes(1)
109114
})
110115

111116
it('allows for defining workspace configuration', async () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /