Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] Using an accessor operator (dot notation) on a variable makes the "new" keyword lose color

Đang mở
#256 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, wasm
Lĩnh vực
developer-experience

Hướng nghiên cứu

The bug is that the new keyword loses its syntax highlight color when written after a dot accessor, such as project.sound = new WickSound(...), while sound = new ... stays colored. The payload names no file, so start by finding the Candlestick code editor's syntax highlighting rules for keywords and compare how member-assignment tokens are matched. Done means new stays red after project. in the reproduction, with the highlighting behavior checked against the Wick 1.19.4 output.

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

Mô tả

bug

Describe the bug
In the code editor, if you write code like project.sound = new WickSound(...);, the new loses its red color. This does not occur if you just use sound = ....

To reproduce
Steps to reproduce the behavior:

  1. Write project.sound = new WickSound("sound.mp3"); in a script (project can really be anything)
  2. Delete the project. to see it return to normal

Expected behavior
The new keyword remains red.

Screenshots
Candlestick
Image
Image

Wick 1.19.4 (works as expected)
Image

Editor version
Is this bug reproducible in Wick Editor 1.19.3/1.19.4 or only Candlestick?
Candlestick 1.3.0

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
I would have to guess it's library updates... I haven't tested this in my autocomplete branch yet.

Ngôn ngữ chính
JavaScript
Star
53
Fork
22
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
12

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Candlestickers/Candlestick

Tất cả issue của Candlestickers/Candlestick

Issue tương tự

Thêm issue về JavaScript

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.