Tuple colorization wrong with missing spaces
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp, typescript
- 領域
- tooling
調査の方向性
スペースなしの C# タプル戻り値の例を使って VS Code で問題を再現し、その後、リポジトリの C# 構文文法ルールを調査します。スペースを必要とせずに例が通常どおり色付けされ、テーマ全体で動作が正しいままになれば作業完了です。
索引モデルが issue の本文から書いたものです。
説明
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):

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

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.0Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.1.700 Commit: c2ef055a0fRuntime 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 |
- 主要言語
- TypeScript
- スター
- 78
- フォーク
- 43
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/csharp-tmLanguage のほかの issue
-
C# syntax highlighting broken with collection expressions and string interpolation in method callsオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
dotnet/csharp-tmLanguage#332 · コメント 7 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dotnet/csharp-tmLanguage#336 · コメント 3 件 ·
-
[Textmate] `scoped ref` modifier対応中かも @JoeRobich が 1018 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
dotnet/csharp-tmLanguage#306 ·
-
[Textmate] Local function with attribute対応中かも @JoeRobich が 1018 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
dotnet/csharp-tmLanguage#304 ·
-
[Textmate] Lambda with attribute対応中かも @JoeRobich が 1018 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
dotnet/csharp-tmLanguage#303 ·
dotnet/csharp-tmLanguage の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NaturalIntelligence/fast-xml-parser#890 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
zsviczian/obsidian-excalidraw-plugin#3000 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pnpm/get.pnpm.io#68 ·
-
[BUG] Cloudflare KV binding 模式下 kvDriver.list() 沿用 EdgeOne 语义,字段名不匹配导致 key 格式下初始化 500 并耗尽 list 配额対応中かも @wumingzhinu が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
OpenListTeam/OpenList-Worker#125 ·
メンテナーはふだん 2 日以内に返信
-
Android (vision-camera-location): HybridLocationManager never quits its HandlerThread on disposeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
margelo/react-native-vision-camera#4217 ·
メンテナーはふだん 4 日以内に返信