Autos window in Language Service using MPF RRS feed

  • Question

  • Hi,

    I am trying to implement support for autos window in my language service using MPF.

    Following is the code for LanguageService.GetProximityExpressions

    (BSTRList class implements IVsEnumBSTR)-



        public override int GetProximityExpressions(IVsTextBuffer buffer, int line, int col, int cLines,

    out IVsEnumBSTR ppEnum)


          int retVal = VSConstants.S_FALSE;

          ppEnum = null;

          if (buffer != null)


            IVsTextLines textLines = buffer as IVsTextLines;

            if (textLines != null)


              TestSource source = (TestSource)this.GetSource(textLines);

              if (source != null)


                BSTRList bstrList = new BSTRList();



                ppEnum = bstrList;

                retVal = VSConstants.S_OK;




          return retVal;


    This gets called, but p1 and p2 are not getting added to autos window.
    Both are valid exressions in the context. Is there something that needs to be done more to
    get autos window working. 

    MSDN says- 
    "If you want to support expressions in the debugger's Autos window, you must derive a class
    from the AuthoringSink class and implement AutoExpression method and the associated internal list. "

    I have done this and return instance of my AuthoringSink class in Source.CreateAuthoringSink. 
    But, I do not see AutoExpression method called any time and could not find any description on the associated internal list that needs to be maintained or when these are used.
    Am I missing something here?.



    Thursday, February 3, 2011 2:17 PM

All replies

  • Hello Sajith,

    I am writing to let you know that we are researching this issue and will post back here soon. If you have any additional information about this issue, please let us know. Thanks.

    Hongye Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, February 4, 2011 4:33 AM
  • Hi Hongye Sun,

    Thanks for your reply. Glad to know that you are looking into this.

    To add to the above information, I am using VS2008 and both p1 and p2 are valid at the context and I can do 'Add Watch' for these.

    Waiting for your findings.



    Monday, February 7, 2011 12:50 PM
  • Hi Sajith,


    Are you still having an issue with getting your language service working with the autos window?  It would be interesting to debug into your situation.  If you are still running into issues, please email mikewongnospam @microsoft.com (take out nospam).  He will email you with the next steps on collecting some traces.



    --Trevor H.
    Send files to Hotmail.com: "MS_TREVORH"
    Tuesday, May 10, 2011 8:37 PM