Git Product home page Git Product logo

Comments (4)

rvanasa avatar rvanasa commented on August 25, 2024

Just to make sure I understand, are you hoping to keep the syntax highlighting on *.mt files without generating type errors?

If you just want to skip checking these template files, I could look into adding the ability to ignore specific files using something like a // @motoko-ignore-file line comment. Would this work for your use case?

from vscode-motoko.

borovan avatar borovan commented on August 25, 2024

The highlighting is fine, but there doesn't need to be any errors at all. That's how it was previously anyway.

The issue with the comment is that it then gets into the generated file, so I have to code around that. I'm sure there's something in the go templating library that can get around that but it could be messy.

What about something like :

Highlighting:
File patterns to apply syntax text highlighting to:
Default : *.mo
Error Checking:
File patterns to check for compiler problems:
Default : *.mo

That may not be the best solution, but it would solve our problems. Thanks!

from vscode-motoko.

rvanasa avatar rvanasa commented on August 25, 2024

For consistency between projects and editors, I added syntax highlighting for *.mo_ files in v0.4.6 of the extension.

Let me know if this works for now, and I'll run this past the rest of the Motoko team to figure out how we want to support these sorts of use cases in general.

from vscode-motoko.

borovan avatar borovan commented on August 25, 2024

Yeah, that's fine... all implemented. If it changes that's fine.

Thanks again!

from vscode-motoko.

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.