Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit cdaab22

Browse files
authored
Populate Rename Symbol palette with current value (#237)
Close #133
1 parent bbf04a9 commit cdaab22

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@rollup/plugin-commonjs": "^18.0.0",
3131
"@rollup/plugin-node-resolve": "^11.2.1",
3232
"@types/jest": "^26.0.22",
33-
"@types/nova-editor-node": "^3.0.0",
33+
"@types/nova-editor-node": "^4.1.2",
3434
"@typescript-eslint/eslint-plugin": "^4.22.0",
3535
"@typescript-eslint/parser": "^4.22.0",
3636
"concurrently": "^6.0.0",

src/commands/rename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function registerRename(client: LanguageClient) {
2929
const newName = await new Promise<string | null>((resolve) => {
3030
nova.workspace.showInputPalette(
3131
"New name for symbol",
32-
{ placeholder: editor.selectedText },
32+
{ placeholder: editor.selectedText, value: editor.selectedText },
3333
resolve
3434
);
3535
});

typescript.novaextension/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v2.3.0
4+
5+
### Added
6+
7+
- Pre-populate Rename Symbol palette with current value ([#133](https://github.com/apexskier/nova-typescript/issues/133))
8+
39
## v2.2.0
410

511
### Added

typescript.novaextension/extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "TypeScript",
44
"organization": "Cameron Little",
55
"description": "Advanced TypeScript and JavaScript language support for Nova",
6-
"version": "2.2.0",
6+
"version": "2.3.0",
77
"categories": [
88
"completions",
99
"formatters",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,10 @@
664664
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
665665
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
666666

667-
"@types/nova-editor-node@^3.0.0":
668-
version "3.0.0"
669-
resolved "https://registry.yarnpkg.com/@types/nova-editor-node/-/nova-editor-node-3.0.0.tgz#12f1afd191f9b2b94b8e03a9af3cff836e642022"
670-
integrity sha512-rXTJHVKbV4w7J9ZjRkaMpDtDtx0Op0Vn2FLTZF6qVKvYCe942ZGy7M2fAggIiQlr5M2MGIfY0X5NYU8w1QGDDQ==
667+
"@types/nova-editor-node@^4.1.2":
668+
version "4.1.2"
669+
resolved "https://registry.yarnpkg.com/@types/nova-editor-node/-/nova-editor-node-4.1.2.tgz#af0e82c2743d17a12ba6f2bd5131422b0ce1ec50"
670+
integrity sha512-72Q39rlBS//sNWmzb31pqmp1FJW7fHg9AwBrykNadrblP5K2Ltm4l9Lokcf6IS3ZFJDkLudZ+qmmkoUB3qcxrA==
671671

672672
"@types/prettier@^2.0.0":
673673
version "2.0.2"

0 commit comments

Comments
 (0)