NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
JAVASCRIPT Intellisense and Parser support


Joined: 08 Dec 2008
Posts: 35
Reply with quote
This question is basically due to an annoyance than anything else.

I have been a NuSphere customer for quite a long time, and LOVE this product. I do quite a lot of work with Javascript and have noticed that some some elements are not recognized as valid Javascript, when in fact the code is correct.

For example, consider the foillowing code snippet:

Code:

tooltip: {
                 pointFormatter: function() {
                     let start = new Date(this.start).toUTCString(),
                     end = new Date(this.end).toUTCString();
                     return `<span style="font-weight: bold">${this.name}<br></span><span style="font-weight: bold; font-size: 15px">Start: ${start}</span><br>End: ${end}`
                }
}


In this snippet, the IDE does not recognize the "let" operand, and also the "`" in the return statement is defined as an error. Both of these are false errors. I have tried to look at as many options in my IDE to find out what and why this might be, but cannot find anything.

Does Nusphere need to update their parser or is there a better solution?

I know that the code is good, and will publish it out, but it is extremely annoying seeing these errors in the IDE.
View user's profileFind all posts by radi8Send private message
JAVASCRIPT Intellisense and Parser support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic