microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

What is the proper language for highlighting and formatting APIM Policy files? #292

Open Corendiel opened 1 year ago

Corendiel commented 1 year ago

Hello,

I'm looking for an Extension to Highlight policy files and format them properly in Visual Studio Code. I tried Razor, HTML, XML, ASP.Net Razor, and HTML (C#), and none worked properly. It has issues with the C# expressions and named values in {{ }}.

Visual studio code recommends C# extension with ASP.Net Razor Language. Even the APIM Portal code editor doesn't highlight code properly.

What do you recommend?

DannyMeister commented 11 months ago

Ever find anything useful? After installing the extension an "apim-policy" language option is available, but using it gets no highlighting, validation, or auto completion. Any XML highlighter trips on things like unescaped quotes in the c# expressions. As far as auto completion, the best I've found is to have an AI code assistant.

Camios commented 6 months ago

Yeah, apim policy syntax checking is very desireable!

sterankin commented 5 months ago

Any update on this, looking the same. The code doesn't look well in vs code at all.

Any luck?

itssKrish commented 2 months ago

Hi, any updates on this?