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.
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
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. I would rather write Spark in Notepad than use the Web Forms View Engine!
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>
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