Opt-in study logging of extension interactions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #149 của @rcosta358 — đã đóng, không merge
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, vscode
- Lĩnh vực
- devtools, observability
Hướng nghiên cứu
Start with client/package.json and the existing paths in client/src/services/events.ts, client/src/lsp/client.ts, client/src/services/diagnostics.ts, provider.ts, and client/src/webview/script.ts. Trace how extension activation, deactivation, configuration changes, and messages are handled before defining the logger integration. Done means opt-in JSONL logging covers the listed events without source contents, remains inactive by default, and is documented in README or CONTRIBUTING.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Tracking issue for the study side: CatarinaGamboa/building-examples-liquidjava#1
Goal
Add an opt-in study logger that records how participants use the extension (views, interactions, verification results, time per file). It writes the events to a local JSONL file in the workspace. It is off by default and never runs for normal users.
Settings
Add to client/package.json → contributes.configuration:
| setting | type | default | purpose |
|---|---|---|---|
liquidjava.study.enabled |
boolean | false |
turn logging on (set by the study repo's .vscode/settings.json) |
liquidjava.study.participantId |
string | "" |
included in every event |
liquidjava.study.logPath |
string | .liquidjava/study-log.jsonl |
relative to the workspace root |
(Existing settings use the liquidJavaServer. prefix, so we should decide on one naming scheme.)
Proposed design
- New
client/src/services/study-log.ts:log(event: string, data?: object)appends{ t, pid, session, event, ...data }as one line- no-op when disabled; listens to
onDidChangeConfigurationso it can be switched on and off - buffered async writes, flushed on
deactivate - a per-launch
sessionid, so separate VS Code sessions can be told apart
- Command
liquidjava.study.revealLog: opens the log file (for transparency, and to help participants hand it in)
Events
Editor / timing (in client/src/services/events.ts, which already listens to onDidChangeActiveTextEditor / onDidSaveTextDocument)
file_focused/file_blurred(active editor changes)file_saved,file_edited(debounced, with a count and no content)window_focus/window_blurviavscode.window.onDidChangeWindowState
Verification (client/src/lsp/client.ts, client/src/services/diagnostics.ts)
verify_started/verify_finished(trigger, duration)diagnostic_shown/diagnostic_resolved(file, line, kind: refinement / state / …, plus a stable key so the same error can be matched across runs)
Webview (client/src/webview/script.ts → postMessage({ type: 'log', ... }) → handled in provider.ts, which already forwards messages through onDidReceiveMessage)
view_visible/view_hiddentab_selected: diagnostics / context / fsmsection_toggled: counterexample, VC changes, VC implications, hint, context variables / ghosts / aliasesdiagnostic_reveal(the existingopenFilemessage),highlightclipboard_copy
Other
hover_shown(services/hover.ts),codelens_clicked(services/codelens.ts)command_runforliquidjava.*commandsexplain_requested/explain_shown/explain_dismissed(model id, latency, response), once #113 lands
Privacy
- Log file names, lines and error kinds, but not source code (optional code snapshots are an open question in the study issue).
- Nothing leaves the machine: participants hand in the file themselves via git.
- Don't use the VS Code telemetry API. It follows the user's global telemetry setting and would send data elsewhere.
Acceptance criteria
- No file is created and no overhead is added when
liquidjava.study.enabledis false - Opening the study repo with the settings file produces a valid JSONL log
- From the log alone, we can compute time-focused and time-to-fix per exercise file
- The events listed above are covered; the schema is documented in the README / CONTRIBUTING
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 1
- Merge trung bình
- 14 giờ 6 phút
- Pull request đã merge (30 ngày)
- 32
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của liquid-java/vscode-liquidjava
-
Side panel: show the facts inferred from a loop as a Found step, and explain loop-start namesĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
liquid-java/vscode-liquidjava#209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Collapse what does not help when focusing the state machine on an error, and show the ways to fix itĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
liquid-java/vscode-liquidjava#170 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Idea: Play object protocolĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
liquid-java/vscode-liquidjava#157 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Show hints in state machineĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
liquid-java/vscode-liquidjava#156 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
liquid-java/vscode-liquidjava#116 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của liquid-java/vscode-liquidjava
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mckinsey/agents-at-scale-ark#4091 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
factory:subtask
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
NUS-Project-SaBai/project-sabai#386 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
android needs clarification
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
super-productivity/super-productivity#12105 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày