blodwynn / -vscode-.soy-language-server-client Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code .soy language server + client
License: MIT License
Visual Studio Code .soy language server + client
License: MIT License
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;
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?
See PR: #12
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.