-
Notifications
You must be signed in to change notification settings - Fork 1
Replace abandoned Task Runner with status-bar Tasks extension #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| // 以下は拡張 actboy168.tasks 固有の設定。 | ||
| // この拡張が未インストールの環境では単に無視される(エラーにはならない)。 | ||
| // ステータスバーのタスク表示制御: | ||
| // limit: ボタンとして直接表示する個数(tasks.json 定義順の先頭から)。 | ||
| // 1 = 先頭の「テスト」だけボタン表示、残りは下のメニューに集約。 | ||
| "tasks.statusbar.limit": 1, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ [LOW] |
||
| // 集約メニューのラベル(クリックでタスク一覧のクイックピックが開く) | ||
| "tasks.statusbar.select.label": "$(checklist) AtCoder" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,92 +1,113 @@ | ||
| { | ||
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
| // for the documentation about the tasks.json format | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "label": "AtCoder: OPEN Task Page", | ||
| "label": "AtCoder: TEST code", | ||
| "type": "shell", | ||
| "options": { | ||
| "cwd": "${fileDirname}" | ||
| "cwd": "${fileDirname}", | ||
| "statusbar": { | ||
| "label": "$(beaker) テスト", | ||
| "detail": "開いているファイルをテスト (am t)" | ||
| } | ||
| }, | ||
| "command": "am web", | ||
| "command": "am t ${fileExtname}", | ||
| "problemMatcher": [], | ||
| "presentation": { | ||
| "echo": false, | ||
| "reveal": "never", | ||
| "reveal": "always", | ||
| "focus": false, | ||
| "panel": "shared", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "group": { | ||
| "kind": "build", | ||
| "kind": "test", | ||
| "isDefault": true | ||
| } | ||
| }, | ||
| { | ||
| "label": "AtCoder: TEST code", | ||
| "label": "AtCoder: SUBMIT code", | ||
| "type": "shell", | ||
| "options": { | ||
| "cwd": "${fileDirname}" | ||
| "cwd": "${fileDirname}", | ||
| "statusbar": { | ||
| "label": "$(cloud-upload) 提出", | ||
| "detail": "開いているファイルを提出 (am s)", | ||
| "color": "#e2c08d" | ||
| } | ||
| }, | ||
| "command": "am t ${fileExtname}", | ||
| "problemMatcher": [], | ||
| "command": "am s ${fileBasename}", | ||
| "presentation": { | ||
| "echo": false, | ||
| "reveal": "always", | ||
| "focus": false, | ||
| "focus": true, | ||
| "panel": "shared", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "group": { | ||
| "kind": "test", | ||
| "isDefault": true | ||
| } | ||
| "problemMatcher": [] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ [LOW] 「AtCoder: SUBMIT code」タスクから There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ [LOW] 「AtCoder: SUBMIT code」タスクから There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| { | ||
| "label": "AtCoder: TEST(float) code", | ||
| "label": "AtCoder: OPEN Task Page", | ||
| "type": "shell", | ||
| "options": { | ||
| "cwd": "${fileDirname}" | ||
| "cwd": "${fileDirname}", | ||
| "statusbar": { | ||
| "label": "$(globe) 問題ページ", | ||
| "detail": "問題ページをブラウザで開く (am web)" | ||
| } | ||
| }, | ||
| "command": "am tf ${fileExtname}", | ||
| "command": "am web", | ||
| "problemMatcher": [], | ||
| "presentation": { | ||
| "echo": false, | ||
| "reveal": "always", | ||
| "reveal": "never", | ||
| "focus": false, | ||
| "panel": "shared", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| // 既定ビルドタスク(Ctrl+Shift+B / Cmd+Shift+B)で問題ページを開く、という | ||
| // 意図的な割り当て(CLAUDE.md に記載の運用)。変更しないこと。 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ℹ️ [LOW] コメントに「既定ビルドタスク(Ctrl+Shift+B / Cmd+Shift+B)で問題ページを開く」と記載されていますが、 VS Code の仕様上、 |
||
| "group": { | ||
| "kind": "test" | ||
| } | ||
| "kind": "build", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
元の設計では |
||
| "isDefault": true | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| { | ||
| "label": "AtCoder: SUBMIT code", | ||
| "label": "AtCoder: TEST(float) code", | ||
| "type": "shell", | ||
| "options": { | ||
| "cwd": "${fileDirname}" | ||
| "cwd": "${fileDirname}", | ||
| "statusbar": { | ||
| "label": "$(beaker) テスト(誤差)", | ||
| "detail": "浮動小数点誤差を許容してテスト (am tf)" | ||
| } | ||
| }, | ||
| "command": "am s ${fileBasename}", | ||
| "command": "am tf ${fileExtname}", | ||
| "problemMatcher": [], | ||
| "presentation": { | ||
| "echo": false, | ||
| "reveal": "always", | ||
| "focus": true, | ||
| "focus": false, | ||
| "panel": "shared", | ||
| "showReuseMessage": false, | ||
| "clear": true | ||
| }, | ||
| "problemMatcher": [] | ||
| "group": { | ||
| "kind": "test" | ||
| } | ||
| }, | ||
| { | ||
| "label": "AtCoder: setup NEW contest", | ||
| "type": "shell", | ||
| "options": { | ||
| "cwd": "${env:CONTEST_DIR}" | ||
| "cwd": "${env:CONTEST_DIR}", | ||
| "statusbar": { | ||
| "label": "$(new-folder) 新規コンテスト", | ||
| "detail": "新しいコンテストをセットアップ (am new)" | ||
| } | ||
| }, | ||
| "command": "am new ${input:contest_id} && am open-first ${input:contest_id}", | ||
| "presentation": { | ||
|
|
@@ -100,7 +121,7 @@ | |
| "problemMatcher": [] | ||
| } | ||
| ], | ||
| "inputs":[ | ||
| "inputs": [ | ||
| { | ||
| "id": "contest_id", | ||
| "description": "参加するコンテスト名", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ [LOW] このファイルはワークスペース全体の
.vscode/settings.jsonとして新規追加されています。tasks.statusbar.limitやtasks.statusbar.select.labelはactboy168.tasks拡張固有の設定であり、コメントにも「未インストール環境では無視される」と記載されています。ただし、将来的にプロジェクトメンバーが他の VS Code 設定(例: エディタのフォーマット設定など)をこのファイルに追加する際、このファイルの存在に気づかず別途
settings.jsonを作成しようとする可能性があります。ファイルの冒頭に「このファイルはワークスペース設定ファイルです。拡張固有の設定以外もここに追記してください」といった案内コメントを追加しておくと親切です。