Progress on VS 2010 highlighting or intellisense

Visto 12 veces
Saltar al primer mensaje no leído

Khaja Minhajuddin

no leída,
19 mar 2010, 14:55:3019/3/10
a Spark View Engine Dev
Hi All,
I've seen a lot of threads discuss about this issue (Get intellisense
support or highlighting to work with VS 2010). But none of them gave
any leads to what could be done to get it working.

Was anyone successful in getting intellisense work on VS 2010? In
http://groups.google.com/group/spark-dev/browse_thread/thread/232a3990c4133f9e/1a47d76c10ba91d2?lnk=gst&q=2010&pli=1
Donn Felker said that he's working on this. Any updates? I am willing
to contribute to this if someone like Lou or Donn takes a lead on this
(and I am sure others too are willing to do the same).

Thank you,
Khaja Minhajuddin.

Louis DeJardin

no leída,
20 mar 2010, 0:04:3520/3/10
a Spark View Engine Dev
This is a high priority - but is slightly secondary to getting some
VS2k8 tooling sorted out. If for no other reason than the 2k8 can be
done quickly and 2010 will be a monumental effort. Something will spin
up in this group for that presently.

On Mar 19, 11:55 am, Khaja Minhajuddin <minhajuddi...@gmail.com>
wrote:


> Hi All,
> I've seen a lot of threads discuss about this issue (Get intellisense
> support or highlighting to work with VS 2010). But none of them gave
> any leads to what could be done to get it working.
>

> Was anyone successful in getting intellisense work on VS 2010? Inhttp://groups.google.com/group/spark-dev/browse_thread/thread/232a399...

Bret Ferrier (runxc1)

no leída,
20 mar 2010, 11:40:3020/3/10
a Spark View Engine Dev
When Phil Haack went on the DotNetRocks podcast just this last week
one of the questions that was asked was "When will Spark be the
default ViewEngine?" He actually talked about Intellisense being one
of the largest efforts of making Spark a first class View Engine on
par with the Web Forms View Engine. With MVC 2 going RTM and in-
light of Microsoft contributing back to jQuery it would be nice to see
some of the MVC2 guys at Microsoft work on getting the Intellisense
working. Phil why don't you get one of your guys working on this? Is
there somewhere that we could all vote for this to get Microsoft's
attention?

-Bret

Tim Schmidt

no leída,
20 mar 2010, 12:24:1320/3/10
a spar...@googlegroups.com
Second!

I find the phrasing "...on par with the Web Forms View Engine" to be VERY debatable.  I would rather write Spark in Notepad than use the Web Forms View Engine!


From: Bret Ferrier (runxc1)
Sent: Saturday, March 20, 2010 8:40 AM
To: Spark View Engine Dev
Subject: Re: Progress on VS 2010 highlighting or intellisense
--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spar...@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.

Anders

no leída,
20 mar 2010, 14:39:2620/3/10
a Spark View Engine Dev
Third it

On Mar 20, 5:24 pm, "Tim Schmidt" <t...@schmidthole.com> wrote:
> Second!
>

> I find the phrasing "...on par with the Web Forms View Engine" to be VERY debatable. &nbsp;I would rather write Spark in Notepad than use the Web Forms View Engine!

Phil Haack

no leída,
20 mar 2010, 14:53:3320/3/10
a <spark-dev@googlegroups.com>,spar...@googlegroups.com
I was referring to the intellisense experience. Given a choice of Spark with full HTML and C# Intellisense and Spark without, I'd prefer with.

Sent from my mobile phone

Simone Chiaretta

no leída,
20 mar 2010, 15:15:5320/3/10
a spark-dev
And also, don't forget JS intellisense as well... C# intellisense is great, but given that Spark is used to write HTML pages a complete HTML+CSS+JS intellisense is really needed.
If with "full HTML" you mean that then forget my email.. otherwise, please add javascript to the list of languages for which there must be intellisense when it is included into a spark view

Simo
Simone Chiaretta
Microsoft MVP ASP.NET - ASPInsider
Blog: http://codeclimber.net.nz
RSS: http://feeds2.feedburner.com/codeclimber
twitter: @simonech

Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"

Rob G

no leída,
20 mar 2010, 15:23:5720/3/10
a spar...@googlegroups.com
If you choose to associate the *.spark files with the "HTML editor" in VS, you automatically get full HTML and JS intellisense. What's missing then is the C# side inside the ${ blah } of course (which would be great), but more importantly, you're looking for *Spark* intellisense - i.e. <use>, <default> or <each> elements etc. That's the part that's missing, not HTML and JS intellisense.

Regards,
Rob G

Simone Chiaretta

no leída,
20 mar 2010, 15:32:4320/3/10
a spark-dev
Now you have to choose whether you want HTML+JS support or C# support... you can't have both.
I guess you can have <use>, <each> using a custom xsd....

The problem now is that I want both: C# for the $ { blah } (I don't know all the HtmlHelper syntax by heart) and HTML+JS+CSS

Simo

Rob G

no leída,
20 mar 2010, 15:34:4020/3/10
a spar...@googlegroups.com
Agreed. I was just pointing out that you can get the HTML+JS+CSS for free. Now the work that needs doing is the C# and Spark specific intellisense - then the job is done.

Shah

no leída,
20 mar 2010, 22:55:5820/3/10
a Spark View Engine Dev
JS Intellisense would make it a full package. Especially if I have JS
files in Application.spark, I would like the Intellisense from those
JS files + inline scripts in Application.spark to become available to
inline scripts in Child spark files. This makes sense for design time
since the Master + Child will be combined in the end. I can't imagine
it being difficult to implement since I get local-file-only JS
Intellisense right now (treating the .spark files in VS2010 as HTML
files).

On Mar 20, 3:15 pm, Simone Chiaretta <simone.chiare...@gmail.com>
wrote:


> And also, don't forget JS intellisense as well... C# intellisense is great,
> but given that Spark is used to write HTML pages a complete HTML+CSS+JS
> intellisense is really needed.
> If with "full HTML" you mean that then forget my email.. otherwise, please
> add javascript to the list of languages for which there must be intellisense
> when it is included into a spark view
>
> Simo
>
>
>
>
>
> On Sat, Mar 20, 2010 at 7:53 PM, Phil Haack <phi...@microsoft.com> wrote:
> > I was referring to the intellisense experience. Given a choice of Spark
> > with full HTML and C# Intellisense and Spark without, I'd prefer with.
>
> > Sent from my mobile phone
>
> > On Mar 20, 2010, at 9:24 AM, "Tim Schmidt" <t...@schmidthole.com> wrote:
>
> > Second!
>
> > I find the phrasing "...on par with the Web Forms View Engine" to be VERY
> > debatable.  I would rather write Spark in Notepad than use the Web Forms
> > View Engine!
>

> > ------------------------------
> > *From:* Bret Ferrier (runxc1)
> > *Sent:* Saturday, March 20, 2010 8:40 AM
> > *To:* Spark View Engine Dev
> > *Subject:* Re: Progress on VS 2010 highlighting or intellisense

> > spark-dev+...@googlegroups.com<spark-dev%2Bunsubscribe@googlegroups­.com>

Louis DeJardin

no leída,
21 mar 2010, 0:35:1621/3/10
a spar...@googlegroups.com
It's difficult to overestimate how tricky some of the problems can become though.

In 2008 there's a "contained language" model to provide colorization and intellisense:

(text buffer) => [aspx-html-etc](1) => [csharp](2)

The outer language (1) recognizes all of the special syntax and delimiters that escape into the contained language (2). It is also responsible for populating a second text buffer with the generated intermediate code.

First buffer:
<p>${hello.World()}</p>

Second buffer:
Output.Write("<p>");
Output.Write(H(hello.World()));
Output.Write("</p>");


The really nifty trick is that the buffer also has the offset and length of every place a code fragment in the first buffer was mapped onto the second buffer. In this example the "hello.World()" would have a mapping length:13 and the offset in the original text and the offset in the generated text.

The reason that's the nifty part is the second buffer is passed to the csharp language service, and it provides colorization which is then mapped back out to the coordinates of the first buffer. So the contained language is painting in the little windows the first one left open.

The contained language also recognizes keystrokes when the (cursor is in one of the mappings) to raise intellisense events.


So that's the background for vs2k8 to understand where spark fits in - it's acting like a replacement for the first language service.

(text buffer) => [spark](1) => [csharp](2)


VS2010 has some *significant* changes in the language services and text editors, so the situation could be different, but for vs2k8 when you slot in place you lose all of the capabilities the "html/aspx" language service provided...

-----Original Message-----
From: spar...@googlegroups.com [mailto:spar...@googlegroups.com] On Behalf Of Shah
Sent: Saturday, March 20, 2010 7:56 PM
To: Spark View Engine Dev

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos