add `scope` setting for module placement and identifier queries

Đang mở
#47 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating Settings, into_codespace(), and the identifier query APIs, then trace how scope is currently passed through them. Check existing tests for module placement and scoped identifier queries; done means a setting controls placement and serves as the default query scope, while an explicit per-query scope still overrides it. The issue does not name specific files or tests, so identifying the relevant test coverage will take some repository exploration.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Every identifier query takes a scope argument, and a consumer whose types live in a module passes the same one on every call (progenitor passes "types" everywhere). Separately, into_codespace() decides where the types go. Nothing keeps the two in agreement.

We could add a scope field in Settings: into_codespace() honors it for module placement, and identifier queries default to it, so it's set once and the two can't disagree. The per-query scope argument stays as an override, since progenitor generates code both inside and outside the types module and needs the prefixed and unprefixed forms both; the setting only makes the common case implicit.

Ngôn ngữ chính
Rust
Star
4
Fork
4
Merge trung bình
15 giờ 16 phút
Pull request đã merge (30 ngày)
26

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của oxidecomputer/typespace

Tất cả issue của oxidecomputer/typespace

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.