Skip to content

Add defaultBehavior response to onPrepareRename#1161

Merged
dbaeumer merged 3 commits intomicrosoft:mainfrom
wkillerud:fix/default-behavior-return-type
Jan 12, 2023
Merged

Add defaultBehavior response to onPrepareRename#1161
dbaeumer merged 3 commits intomicrosoft:mainfrom
wkillerud:fix/default-behavior-return-type

Conversation

@wkillerud
Copy link
Contributor

@wkillerud wkillerud commented Dec 26, 2022

The feature works fine, but TypeScript is unaware that the response is allowed. Sync with protocol.ts:

export type PrepareRenameResult = Range | { range: Range; placeholder: string } | { defaultBehavior: boolean };

Background: microsoft/vscode#85157 (comment)

@dbaeumer dbaeumer requested review from aeschli and dbaeumer January 11, 2023 17:00
@dbaeumer dbaeumer merged commit 3d536d7 into microsoft:main Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants