We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b687e commit 269e1a7Copy full SHA for 269e1a7
src/quickpicks/tagQuickPickCreator.ts
@@ -39,12 +39,12 @@ async function suggestTags (value: string) {
39
* @param selectedItems 選択済みのタグ
40
* @return QuickPicker
41
*/
42
-export function tagQuickPickCreator (selectedItems: QuickPickItem[]) {
+export function tagQuickPickCreator (selectedItems?: QuickPickItem[]) {
43
const quickPick = window.createQuickPick();
44
45
quickPick.canSelectMany = true;
46
- quickPick.items = selectedItems;
47
- quickPick.selectedItems = selectedItems;
+ quickPick.items = selectedItems || [];
+ quickPick.selectedItems = selectedItems || [];
48
quickPick.title = '投稿に登録するタグを入力してください';
49
quickPick.placeholder = '例) Rails React Mastodon';
50
0 commit comments