-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor renameVariableParts (#34)
- Now pressing esc in renaming part doesn't discard whole operation - When entering part renaming, whole text is selected - More precisely selecting range for variable to rename, ignoring user selection - Now the part that was under cursor is preselected - Add command for renaming file name parts with using the same quickpick
- Loading branch information
Showing
4 changed files
with
161 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as vscode from 'vscode' | ||
import { getActiveRegularEditor } from '@zardoy/vscode-utils' | ||
import { getExtensionCommandId, registerExtensionCommand } from 'vscode-framework' | ||
|
||
export const registerRenameFileParts = () => { | ||
registerExtensionCommand('renameFileParts', async () => { | ||
void vscode.commands.executeCommand(getExtensionCommandId('renameVariableParts'), 'fileName') | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters