Skip to content

Highlight throw expression #1540

@andy-hanson

Description

@andy-hanson

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.4)

Product Information:
 Version:            1.0.4
 Commit SHA-1 hash:  af1e6684fd

Runtime Environment:
 OS Name:     manjaro
 OS Version:  
 OS Platform: Linux
 RID:         ubuntu.16.10-x64
 Base Path:   /opt/dotnet/sdk/1.0.4

VS Code version: 1.11.0-insider
C# Extension version: 1.9.0

Steps to reproduce

Type this code:

public static void A(string str) => throw new Exception(str);
public static void B(string str) { throw new Exception(str); }

Expected behavior

Highlights the throw keyword.

Actual behavior

shot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions