Open markofranjic opened 4 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 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)
Create a class that inherits from Microsoft.VisualStudio.Shell.DialogPage
[example]
Tell VS about the page by adding the ProvideOptionPage
attribute on the package. [example]
Then call GetDialogPage
to access the values. [example]
There are (unexpectedly) lots of other "options" and things that can be done but that should give you the basics.
@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" 😄
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