Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

C# Code coloring glitches after method that returns Task of tuple

Open
#97 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
tooling

Research direction

Reproduce the problem in VS Code 1.19.1 with the csharp extension disabled except for the reported C# grammar, using a method that returns a Task of a tuple. Inspect the syntax-coloring behavior around the affected lines and verify that the coloring remains correct after the method declaration.

Written by the indexing model from the issue text.

Description

Bug

From @ahmadalli on December 23, 2017 13:25

  • VSCode Version: Code 1.19.1 (0759f77bb8d86658bc935a10a64f6182c5a1eeba, 2017-12-19T09:35:14.671Z)
  • OS Version: Darwin x64 17.3.0
  • Extensions:
Extension Author (truncated) Version
swagger-viewer Arj 1.5.0
csharp ms- 1.13.1

Steps to Reproduce:

  1. Have a c# code with a method that returns task of a tuple.
  2. this happens (take a look at the coloring of lines 73 to 98):

image

Reproduces without extensions: Yes (the image above is taken with --disable-extensions flag)

Copied from original issue: Microsoft/vscode#40754

Dominant language
TypeScript
Stars
78
Forks
43
Avg merge
34m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/csharp-tmLanguage

All issues in dotnet/csharp-tmLanguage

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.