dotnet/roslyn

Suggestion: improve error message when missing a semicolon in immediate window variable creation

开放

#46,736 创建于 2020年8月12日

 (0 条评论) (2 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-InteractiveConcept-Continuous Improvementhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

I am creating this issue on behalf of @WebFreak001 from https://github.com/OmniSharp/omnisharp-vscode/issues/3940

Version Used: Visual Studio 16.8 preview 2 [30410.220.master]

Steps to Reproduce:

  1. Create a new hello world application
  2. Open the immediate window (or the debug console in VS Code)
  3. Evaluate var x = 10 (note the missing semicolon)

Expected Behavior: An error message that might lead one to understand that variable creation statements require a semicolon

Actual Behavior: error CS0726: 'x' is not a valid format specifier

贡献者指南