-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .cake extension for C# #2707
Conversation
This adds the .cake file extension to the C# language. Here is a search in the wild: https://github.com/search?q=extension%3Acake+NOT+coffee&type=Code Cake (C# Make) is a cross platform build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages. You can find out out more about cake here: http://cakebuild.net/
@@ -392,6 +392,7 @@ C#: | |||
aliases: | |||
- csharp | |||
extensions: | |||
- .cake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first extension should be the primary one, .cs
;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I had assumed entirely alphabetical, fixed now :)
Using your search query, I found that there are 116 projects that use Cake files dispatched among 61 users. Not sure that it will be enough to make it a language in Linguist. |
@pchaigno if it's any help, support for cake was merged into Atom already atom/language-csharp#30 |
Does that mean that Cake doesn't have the same syntax as C#? |
It was added with the same syntax as C#. Cake is in fact C# (cake scripts are run under the roslyn script host engine - mono script host on mac/unix). Cake does contain a few more possible preprocessor directives but the syntax highlighting is the same as normal C#. |
I see, it's a second grammar file referring the C# one. We'll have to declare Cake as a second file with C# as the parent language (meaning Cake will be displayed as C# but we'll be able to use a different grammar file for it). First we should make sure that 116 projects with Cake files is enough... @arfon? |
@pchaigno @arfon I was just wondering what the status of this is? After yesterday's announcements, Cake is now a first class citizen in both the VS Code and Visual Studio Team Services (formerly VSO) extension galleries: https://marketplace.visualstudio.com/items/cake-build.cake-vscode Just wondering if this helps the case for getting this support included. |
This adds the .cake file extension to the C# language.
Here is a search in the wild: https://github.com/search?q=extension%3Acake+NOT+coffee&type=Code
Cake (C# Make) is a cross platform build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages.
You can find out out more about cake here: http://cakebuild.net/