-
Notifications
You must be signed in to change notification settings - Fork 168
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
Support for cake. #433
Comments
@JohanBjoerklund a lot of the setup in OmniSharp-vim happens in the |
With this I get highlighting, but nothing else. augroup ft_cake |
Is there any more information I can provide to help solve this? |
I'm sorry I don't know anything about cake, I'm not sure what should/shouldn't work. I have tried to see what happens when opening the |
There is support for cake in vs code, so I guess syntax highlighting and code completion should work. |
Well, vim's syntax highlighting works by filetype and is independent of OmniSharp-vim, so your As I say, I don't have experience with cake and couldn't see that VSCode did anything with it. Can you provide a minimal example project, and show how/where VSCode provides completion? That will give me (or someone?) something to work from. |
@JohanBjoerklund @nickspoons |
Thanks for the reply. omnisharp.json file looks like this.
|
I managed to get it working by adding an empty global.json in my script folder and add |
@JohanBjoerklund Awesome work. Thanks for finding this 👍 |
@JohanBjoerklund I've just made a couple of small changes so this will work out of the box:
This is the same way we treat .csx files, and means that you won't need that This seems to work fine for me (once the bakery stuff is set up correctly), I get completions. There is no highlighting support from OmniSharp-roslyn for .cake files, I don't know if there is support for anything other than completions? |
Works like a charm. |
OmniSharp-roslyn has support for cake since version v1.32.1, but I can't seem to make it work.
Tried on Windows 10, using all versions of OmniSharp-roslyn since v1.32.1.
Using any of the commands in a cake file, like OmniSharpGetCodeActions() yields an error like:
ERROR: unknown url type: '/v2/getcodeactions/'.
Trying to manually start the server with OmniSharpStartServer() from a .cake file gives:
E488: Trailing characters.
Config:
The text was updated successfully, but these errors were encountered: