Skip to content

Commit 6a60e82

Browse files
committed
feat: completion indent
1 parent 967b214 commit 6a60e82

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

src/containers/ruby-tab/control-snippets.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@
44
"description": "(1) 秒待つ"
55
},
66
"times": {
7-
"snippet": "${1:10}.times do\n${2}\nend\n",
7+
"snippet": "${1:10}.times do\n\t${2}\nend",
88
"description": "(10) 回繰り返す"
99
},
1010
"loop": {
11-
"snippet": "loop do\n${1}\nend\n",
11+
"snippet": "loop do\n\t${1}\nend",
1212
"description": "ずっと"
1313
},
1414
"if": {
15-
"snippet": "if ${1:false}\n${2}\nend\n",
15+
"snippet": "if ${1:false}\n\t${2}\nend",
1616
"description": "もし < > なら"
1717
},
1818
"if-else": {
19-
"snippet": "if ${1:false}\n${2}\nelse\n${3}\nend\n",
19+
"snippet": "if ${1:false}\n\t${2}\nelse\n\t${3}\nend",
2020
"description": "もし < > なら、でなければ"
2121
},
2222
"wait-until": {
2323
"snippet": "wait until ${1:false}",
2424
"description": "< > まで待つ"
2525
},
2626
"until": {
27-
"snippet": "until ${1:false}\n${2}\nend\n",
27+
"snippet": "until ${1:false}\n\t${2}\nend",
2828
"description": "< > まで繰り返す"
2929
},
3030
"stop-all": {
@@ -40,7 +40,7 @@
4040
"description": "[スプライトの他のスクリプトを止める▼]"
4141
},
4242
"when_start_as_a_clone": {
43-
"snippet": "when_start_as_a_clone do\n${1}\nend\n",
43+
"snippet": "when_start_as_a_clone do\n\t${1}\nend",
4444
"description": "クローンされたとき"
4545
},
4646
"create_clone": {

src/containers/ruby-tab/events-snippets.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
22
"when_flag_clicked": {
3-
"snippet": "when_flag_clicked do\n${1}\nend\n",
3+
"snippet": "when_flag_clicked do\n\t${1}\nend",
44
"description": "旗が押されたとき"
55
},
66
"when_key_pressed": {
7-
"snippet": "when_key_pressed(\"${1:space}\") do\n${2}\nend\n",
7+
"snippet": "when_key_pressed(\"${1:space}\") do\n\t${2}\nend",
88
"description": "[スペース▼] キーが押されたとき"
99
},
1010
"when_clicked": {
11-
"snippet": "when_clicked do\n${1}\nend\n",
11+
"snippet": "when_clicked do\n\t${1}\nend",
1212
"description": "このスプライトが押されたとき"
1313
},
1414
"when_backdrop_switches": {
15-
"snippet": "when_backdrop_switches(\"${1:背景1}\") do\n${2}\nend\n",
15+
"snippet": "when_backdrop_switches(\"${1:背景1}\") do\n\t${2}\nend",
1616
"description": "背景が [背景1▼] になったとき"
1717
},
1818
"when_greater_than": {
19-
"snippet": "when_greater_than(\"${1:loudness}\", ${2:10}) do\n${3}\nend\n",
19+
"snippet": "when_greater_than(\"${1:loudness}\", ${2:10}) do\n\t${3}\nend",
2020
"description": "[音量▼] > (10) のとき"
2121
},
2222
"when_receive": {
23-
"snippet": "when_receive(\"${1:メッセージ1}\") do\n${2}\nend\n",
23+
"snippet": "when_receive(\"${1:メッセージ1}\") do\n\t${2}\nend",
2424
"description": "[メッセージ1▼] を受け取ったとき"
2525
},
2626
"broadcast": {

src/containers/ruby-tab/microbit-more-snippets.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"microbit_more.when_microbit": {
3-
"snippet": "microbit_more.when_microbit(\"${1:connected}\") do\n\t${2}\nend\n",
3+
"snippet": "microbit_more.when_microbit(\"${1:connected}\") do\n\t${2}\nend",
44
"description": "micro:bit と [つながった▼] とき"
55
},
66
"microbit_more.when_button_is": {
7-
"snippet": "microbit_more.when_button_is(\"${1:A}\", \"${2:down}\") do\n\t${3}\nend\n",
7+
"snippet": "microbit_more.when_button_is(\"${1:A}\", \"${2:down}\") do\n\t${3}\nend",
88
"description": "ボタン [A▼] が [押された▼] とき"
99
},
1010
"microbit_more.button_pressed?": {
1111
"snippet": "microbit_more.button_pressed?(\"${1:A}\")",
1212
"description": "ボタン [A▼] が押されている"
1313
},
1414
"microbit_more.when_pin_is": {
15-
"snippet": "microbit_more.when_pin_is(\"${1:LOGO}\", \"${2:touched}\") do\n\t${3}\nend\n",
15+
"snippet": "microbit_more.when_pin_is(\"${1:LOGO}\", \"${2:touched}\") do\n\t${3}\nend",
1616
"description": "ピン [ロゴ▼] が [タッチされた▼] とき"
1717
},
1818
"microbit_more.pin_is_touched?": {
1919
"snippet": "microbit_more.pin_is_touched?(\"${1:LOGO}\")",
2020
"description": "ピン [ログ▼] がタッチされている"
2121
},
2222
"microbit_more.when": {
23-
"snippet": "microbit_more.when(\"${1:shake}\") do\n\t${2}\nend\n",
23+
"snippet": "microbit_more.when(\"${1:shake}\") do\n\t${2}\nend",
2424
"description": "[ゆさぶられた▼] とき"
2525
},
2626
"microbit_more.display_pattern": {
27-
"snippet": "microbit_more.display_pattern(\n\t\"${1:.1.1.}\",\n\t\"${2:1.1.1}\",\n\t\"${3:1...1}\",\n\t\"${4:.1.1.}\",\n\t\"${5:..1..}\"\n)\n",
27+
"snippet": "microbit_more.display_pattern(\n\t\"${1:.1.1.}\",\n\t\"${2:1.1.1}\",\n\t\"${3:1...1}\",\n\t\"${4:.1.1.}\",\n\t\"${5:..1..}\"\n)",
2828
"description": "パターン (♡▼) を表示する"
2929
},
3030
"microbit_more.display_text_delay": {
@@ -104,15 +104,15 @@
104104
"description": "ピン [P0▼] の [イベントを受けない▼]"
105105
},
106106
"microbit_more.when_catch_at_pin": {
107-
"snippet": "microbit_more.when_catch_at_pin(\"${1:low pulse}\", \"${2:P0}\") do\n\t${3}\nend\n",
107+
"snippet": "microbit_more.when_catch_at_pin(\"${1:low pulse}\", \"${2:P0}\") do\n\t${3}\nend",
108108
"description": "ピン [P0▼] で [ローパルス▼] イベントが起きたとき"
109109
},
110110
"microbit_more.value_of": {
111111
"snippet": "microbit_more.value_of(\"${1:low pulse}\", \"${2:P0}\")",
112112
"description": "ピン [P0▼] の [ローパルスの期間▼]"
113113
},
114114
"microbit_more.when_data_received_from_microbit": {
115-
"snippet": "microbit_more.when_data_received_from_microbit(\"${1:label-01}\") do\n\t${2}\nend\n",
115+
"snippet": "microbit_more.when_data_received_from_microbit(\"${1:label-01}\") do\n\t${2}\nend",
116116
"description": "micro:bit からラベル (label-01) のデータを受け取ったとき"
117117
},
118118
"microbit_more.data": {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
22
"microbit.when_button_pressed": {
3-
"snippet": "microbit.when_button_pressed(\"${1:A}\") do\n${2}\nend\n",
3+
"snippet": "microbit.when_button_pressed(\"${1:A}\") do\n\t${2}\nend",
44
"description": "ボタン (A▼) が押されたとき"
55
},
66
"microbit.button_pressed?": {
77
"snippet": "microbit.button_pressed?(\"${1:A}\")",
88
"description": "ボタン (A▼) が押された"
99
},
1010
"microbit.when": {
11-
"snippet": "microbit.when(\"${1:moved}\") do\n${2}\nend\n",
11+
"snippet": "microbit.when(\"${1:moved}\") do\n\t${2}\nend",
1212
"description": "(動いた▼) とき"
1313
},
1414
"microbit.display_text": {
1515
"snippet": "microbit.display_text(\"${1:こんにちは!}\")",
1616
"description": "(こんにちは!) を表示する"
1717
},
1818
"microbit.display": {
19-
"snippet": "microbit.display(\n \"${1:.1.1.}\",\n \"${2:1.1.1}\",\n \"${3:1...1}\",\n \"${4:.1.1.}\",\n \"${5:..1..}\"\n)\n",
19+
"snippet": "microbit.display(\n \"${1:.1.1.}\",\n \"${2:1.1.1}\",\n \"${3:1...1}\",\n \"${4:.1.1.}\",\n \"${5:..1..}\"\n)",
2020
"description": "(♡▼) を表示する"
2121
},
2222
"microbit.when_tilted": {
23-
"snippet": "microbit.when_tilted(\"${1:any}\") do\n${2}\nend\n",
23+
"snippet": "microbit.when_tilted(\"${1:any}\") do\n\t${2}\nend",
2424
"description": "(どれかの向き▼) に傾いたとき"
2525
},
2626
"microbit.tilted?": {
@@ -32,7 +32,7 @@
3232
"description": "(前▼) 方向の傾き"
3333
},
3434
"microbit.when_pin_connected": {
35-
"snippet": "microbit.when_pin_connected(${1:0}) do\n${2}\nend\n",
35+
"snippet": "microbit.when_pin_connected(${1:0}) do\n\t${2}\nend",
3636
"description": "ピン (0▼) がつながったとき"
3737
}
3838
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"def": {
3-
"snippet": "def self.${1:ブロック名}(${2:number_or_text})\n${3}\nend\n",
3+
"snippet": "def self.${1:ブロック名}(${2:number_or_text})\n\t${3}\nend",
44
"description": "定義 ブロック名 (number_or_text)"
55
}
66
}

src/containers/ruby-tab/video-sensing-snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"video_sensing.when_video_motion>": {
3-
"snippet": "video_sensing.when_video_motion_greater_than(${1:10}) do\n${2}\nend\n",
3+
"snippet": "video_sensing.when_video_motion_greater_than(${1:10}) do\n\t${2}\nend",
44
"description": "ビデオモーション > (10) のとき"
55
},
66
"video_sensing.video": {

0 commit comments

Comments
 (0)