madskristensen / WebEssentials2015

A Visual Studio extension for web developers
Other
300 stars 92 forks source link

Exceptions when no solution #97

Closed huguesv closed 9 years ago

huguesv commented 9 years ago

VS 2015, Web Essentials 2015 0.5.168

Start VS, no solution opened. Drag & drop a markdown file from windows explorer onto VS. At this point, solution explorer shows `Solution 'Solution1' (0 projects)"

Here are 3 different commands that are causing exceptions. They all should be disabled when editing a markdown file with no solution opened.

From main menu, Web Essentials, Create solution settings

Result:

---------------------------
Microsoft Visual Studio
---------------------------
Path cannot be null.

Parameter name: path
---------------------------
OK   
---------------------------

From main menu, Web Essentials, Create color palette

Result:

---------------------------
Microsoft Visual Studio
---------------------------
File name cannot be null.

Parameter name: destFileName
---------------------------
OK   
---------------------------

From main menu, Web Essentials, Add markdown solution stylesheet

Result: VS crashes and restarts