locked
How to extend intellisence to support extended syntax RRS feed

  • Question

  • Hi,

    Our VS integration (VS packages) reuses VC++ project and C++ editor. It provides our own VS2010 Platform Toolset for C++ compiler.

    The compilers provides some language extensions that makes C++ intellisence think that they are errors and issues the errors like:

    IntelliSense: a parameter is not allowed test.c 4 37 test

    IntelliSense: expression must have a constant value test.c 6 30 test

    Is there a way to extend the existing Intellisence for C++ language extensions?

    Thanks,

    Vadim.

    Friday, January 20, 2012 12:19 PM

Answers

  • Hi Vadim,

    Unfortunately, the answer to this question is no. Generally speaking the languages services themselves are not extensible. You will essentially have to write your own if you want to change what the C++ intellisense is reporting here.

    In some instances (with VS 2010), you can use an MEF Editor extension, for things like colorizing additional keywords, etc. But I don't believe you can change how the existing language service parses and processes the actual source files.

    Sincerely,


    Ed Dore
    Friday, January 20, 2012 6:19 PM

All replies

  • Hi Vadim,

    Unfortunately, the answer to this question is no. Generally speaking the languages services themselves are not extensible. You will essentially have to write your own if you want to change what the C++ intellisense is reporting here.

    In some instances (with VS 2010), you can use an MEF Editor extension, for things like colorizing additional keywords, etc. But I don't believe you can change how the existing language service parses and processes the actual source files.

    Sincerely,


    Ed Dore
    Friday, January 20, 2012 6:19 PM
  • OK. Thank you for the information!

    Vadim G.

    Monday, January 23, 2012 3:15 AM