Code Monkey home page Code Monkey logo

-vscode-.soy-language-server-client's People

Contributors

axellew avatar bhainesva avatar blodwynn avatar netgrafe avatar spadgos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

-vscode-.soy-language-server-client's Issues

Soy file parsing is running to an error

During the load or any manually started re-parse, Soy parsing runs infinitely and jumping to reference/definition is not working at all.

By turning on Develoepr Toolbar and adding some console.log into the extensions code, I found that in the parseFile function, the linenumber method sometimes returns with a null and therefore lineNr[0] is makign a JS error.

The file which causing the problem had a weird formatting and in the line of the template definition there was immediately another soy command:

{template .sometTemplageName}{locallyDefinedFunction('params')}

I suggest a change in the regular expression, which is finding the template definition token:

const templatePattern = /\{(del)?template ([\w\d.]+)([^\w\d.]).*/gm;

to

const templatePattern = /\{(del)?template ([\w\d.]+)[^\}]*\}/gm;

Maintaining Soy for vscode

The syntax for soy have changed a bit in the last year. Is this extension still maintained?

If I would start sending pull requests would those get reviewed?

Some regressions

This works:
selection_550

But adding a colon here breaks it:
selection_551

Also, highlighting of comments doesn't work inside the tag any more (comment should be green here):
selection_549

Extension spends a long time parsing workspace

I have a large workspace with many soy files and upon opening the first one the extension is parsing soy files for a very long time.

The current workspace isn't so big relatively (maybe hundreds of soy files) but it's still been going for many minutes.

There are library soy templates in my org that I've not even pulled in yet but honestly the highlighting and syntax warnings are enough so if my workspace is too big I wonder if I can disable those features?

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.