csharp-tmLanguage icon indicating copy to clipboard operation
csharp-tmLanguage copied to clipboard

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

Open aeschli opened this issue 6 years ago • 3 comments

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

aeschli avatar Jan 11 '18 10:01 aeschli

From @weinand on December 23, 2017 14:0

Please file C# issues against the C# extension.

aeschli avatar Jan 11 '18 10:01 aeschli

From @ahmadalli on December 23, 2017 14:2

I disabled the c# extension. this is just code coloring.

aeschli avatar Jan 11 '18 10:01 aeschli

I don't think this is a problem with Task of Tuple but rather a grammar-wide issue with splitting certain constructs across multiple lines as covered in #62 and #63

damieng avatar Oct 22 '18 03:10 damieng