completionSets

Mar 26, 2014 at 3:57 PM
I have been going through your source code and I can't manage to figure out where you add the nodejs keywords such as (require, exports, module ... ) to the JavaScript completion list.

I would really appreciate your help.

Moe
Coordinator
Apr 7, 2014 at 11:19 PM
Node.js doesn't actually have extra key words as it's still plain old JavaScript. But we do recognize require( in a special manner and provide intellisense for it. That's done in CompletionSource.cs and ultimately is kicked off via our EditFilter class. The EditFilter replaces what you might see in normal samples where there's an IntellisenseController hooked to the IOleCommandTarget implementation. Because we already have the EditFilter hooked we just re-use that.

Is there something in particular you're trying to accomplish we could help with?
May 6, 2014 at 7:10 AM
It is ok ... I have managed ... keywords such as require, module, __filename, exports and __dirname are added in the NodejsProjectionBuffer class.

Thank you and sorry for the late reply

Moe