cake-build / cake-vs

Cake Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1392591.CakeforVisualStudio
MIT License
67 stars 25 forks source link

Add settings to allow configuration of how extension works #111

Open markofranjic opened 5 years ago

markofranjic commented 5 years ago

Hi Team,

When I write Task name in string I can run debug task over Visual Studio, but when I add static string name, debut task dissapear

image

gep13 commented 3 years ago

Currently, the way that Tasks are located in the Cake scripts is done via a hard coded Regular Expression, which you can find here:

https://github.com/cake-build/cake-vs/blob/develop/src/TaskRunner/TaskParser.cs

At some point, it would make sense to provide the ability, via a setting, to control the Regular Expression that is used to identify tasks.

@mrlacey I don't suppose you would have any examples of adding settings into a Visual Studio Extension would you?

mrlacey commented 3 years ago

@mrlacey I don't suppose you would have any examples of adding settings into a Visual Studio Extension would you?

For simple settings (called Options in VS, such as you'll find under Tools > Options)

There are (unexpectedly) lots of other "options" and things that can be done but that should give you the basics.

gep13 commented 3 years ago

@mrlacey this is great, thank you for all the information!

Will just start with the basics, but if this turns out to be anything like the configuration in the VSCode extension, it could get "interesting" 😄