Giter Site home page Giter Site logo

Comments (4)

NKarolak avatar NKarolak commented on June 18, 2024

I believe the answer is already given here:
#7617 (comment)

from al.

f4n0 avatar f4n0 commented on June 18, 2024

unfortunately not.
In my issue, there are some highlight bugs.

  1. Literal Names (action names, fields, etc.) Have only the Double quote colored, the rest still in plain text.
  2. The ":" are in red. (normally the red color indicates an error)
  3. Properties are the same color as their value.

Then yes, there is one thing that is similar to the issue you reference:

Can we use the same syntax Highlighter as the one in VsCode?

But the real problem here are the point 1-3

from al.

EmilDamsbo avatar EmilDamsbo commented on June 18, 2024

On point 1 - "Literal Names (action names, fields, etc.) Have only the Double quote colored, the rest still in plain text.":
This was a deliberate design decision. As double quoted names are not strings, it felt inconsistent to highlight them as single quoted strings are. However, highlighting just the quotes at least calls awareness to when you are using a quoted name. This decision was made on the back of internal feedback pulling in either direction. As we've only had this one issue logged on this behaviour, we will not be addressing it at this time.

On point 2 - "The ":" are in red. (normally the red color indicates an error)":
Yep, that's an actual issue. It's the reason why I am marking this issue as accepted.

On point 3 - "Properties are the same color as their value.":
Our answer is the same as what NKarolak mentioned: The syntax highlighting in VSCode also highlights property names and values the same. As an example, take this throwaway report snippet I made in VSCode using syntax highlighting:
image

from al.

JesperSchulz avatar JesperSchulz commented on June 18, 2024

The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 24.0.16028.0 and VS Code Extension Version 13.0.938391.

If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo

For more details on code branches and docker images please read:
https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/
https://freddysblog.com/2020/06/25/working-with-artifacts/

from al.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.