KamasamaK / vscode-cfml

An extension for Visual Studio Code to assist in development with CFML.
MIT License
77 stars 23 forks source link

Show non-reachable code. #65

Open cybersonic opened 3 years ago

cybersonic commented 3 years ago

So for example in the javascript editor you can see code that wont be reachable as it is greyed out:

Screenshot 2021-08-26 at 10 45 38

This would be great in cfml for the following cases:

function ret(){
    var athing = "this";

    return athing;
    var notReachable = "Nothing is rechable";
}

function loc(){
    var athing = "this";
   location url="/";
    var notReachable = "Nothing is rechable";
}

function bort(){
    var athing = "this";
    abort;
    var notReachable = "Nothing is rechable";
}
zspitzer commented 3 years ago

image

cybersonic commented 3 years ago

Not sure I get the reference? Big Lebowsky and a toe?