derived class show base class virtual method's comments when hovering

Đang mở
#5,187 3 bình luận 11 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
devtools

Hướng nghiên cứu

Bắt đầu trong phần xử lý hover của dịch vụ ngôn ngữ C++ và tái hiện hành vi bằng mẫu lớp cơ sở và lớp dẫn xuất được cung cấp. Thay đổi được hoàn tất khi hover lên phương thức foo của lớp dẫn xuất hiển thị chú thích từ phương thức virtual của lớp cơ sở và xác định nguồn của chú thích đó.

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

Mô tả

Feature Request Feature: Doc comments Language Service more votes needed Visual Studio

Type: LanguageService

Describe the bug

  • OS and Version: windows 10
  • VS Code Version: 1.43.0
  • C/C++ Extension Version: 0.26.3
  • Other extensions you installed (and if the issue persists after disabling them):
  • Does this issue involve using SSH remote to run the extension on a remote machine?:
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Logs
Insert logs here.

Screenshots

Additional context

class base {
  // I'm comment
  virtual void foo() {}
};
class derive : public base {
  void foo() {}
};

As we often write comments on base class's (pure) virtual methods instead of repeating them on every derived classes, we hope these information could be passed to derived class when we hover the cursor on the method. Just like clion does like the following. It explicitly tells that the comment comes from base class, which will be very nice to readers.

image

Ngôn ngữ chính
TypeScript
Star
6.2k
Fork
1.7k
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
61

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

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.