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

Tuple colorization wrong with missing spaces

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

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp, typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Tái hiện vấn đề trong VS Code bằng ví dụ trả về tuple trong C# không có khoảng trắng, sau đó kiểm tra các quy tắc grammar cú pháp C# của repository. Công việc được hoàn tất khi ví dụ nhận được colorization bình thường mà không cần khoảng trắng và hành vi vẫn chính xác trên các theme.

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

Mô tả

Issue Description

Hello!

Any method which returns a value Tuple breaks colorization if there are no spaces. As an example:

        public static (T,K)Test<T, K>(string randomString, int etc)
        where T: class where K: class {
            return (null, null);
        }

Here is the text in VSC using the Dracula theme (though issue reproduces in every theme i've tried):

image

Here is the image if we add a space after the Tuple return and the method name (where colorization works like normal):
image

Steps to Reproduce

type the above code, or any code with a value tuple as a return type, and do not include a space after the tuple and the name of the method.

Expected Behavior

normal colorization

Actual Behavior

everything is white.

Environment information

VSCode version: 1.36.1
C# Extension: 1.20.0

Mono Information OmniSharp using global mono :6.0.0
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.1.700 Commit: c2ef055a0f

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.14
OS Platform: Darwin
RID: osx.10.14-x64
Base Path: /usr/local/share/dotnet/sdk/2.1.700/

Host (useful for support):
Version: 2.1.11
Commit: d6a5616240

.NET Core SDKs installed:
2.1.700 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
alphabetical-sorter ue 2.0.1
auto-dark-mode LinusU 0.1.5
better-comments aaron-bond 2.0.5
bracket-pair-colorizer-2 CoenraadS 0.0.28
csharp ms-vscode 1.20.0
csharpfixformat Leopotam 0.0.81
horizon-theme-vscode jolaleye 2.0.2
material-icon-theme PKief 3.8.0
noctis liviuschera 9.8.0
path-intellisense christian-kohler 1.4.2
pop-n-lock-theme-vscode Luxcium 3.16.8
rust rust-lang 0.6.1
theme-bluloco-light uloco 2.8.1
theme-dracula dracula-theme 2.18.0
unity-debug Unity 2.7.2
vscode-icontheme-nomo-dark be5invis 1.3.6
Ngôn ngữ chính
TypeScript
Star
78
Fork
43
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Mở trong Codespaces

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
  • Không có 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 dotnet/csharp-tmLanguage

Tất cả issue của dotnet/csharp-tmLanguage

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.