Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support User Defines and Macro References AB Experiment #12844

Draft
wants to merge 2 commits into
base: kuchung/SupportCompilerArgumentAB
Choose a base branch
from

Commits on Nov 19, 2024

  1. Support A/B Compiler Arguments Traits

    - Depends on cpptools' update to provide ProjectContextResult.
    - Added the following new traits
      - intellisense: compiler information disclaimer.
      - intellisenseBegin: to note the begin of IntelliSense information.
      - compilerArguments: a list of compiler command arguments that could affect Copilot generating completions.
      - directAsks: direct asking Copilot to do something instead of providing an argument.
      - intellisenseEnd: to note the end of IntelliSense information.
    - A/B Experimental flags
      - copilotcppTraits: boolean flag to enable cpp traits
      - copilotcppExcludeTraits: string array to exclude individual trait, i.e., compilerArguments.
      - copilotcppMsvcCompilerArgumentFilter: regex string to match compiler arguments for GCC.
      - copilotcppClangCompilerArgumentFilter: regex string to match compiler arguments for Clang.
      - copilotcppGccCompilerArgumentFilter: regex string to match compiler arguments for MSVC.
      - copilotcppCompilerArgumentDirectAskMap: a stringify map string to map arguments to direct ask statements.
    kuchungmsft committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    92e251b View commit details
    Browse the repository at this point in the history
  2. Support User Defines and Macro References AB Experiment

    - Depends on microsoft#12979 to merge first.
    - copilotcppMacroReferenceFilter: regex string to filter macro reference for telemetry.
    - Telemetry related to user defines and macro references.
    - Added new trait compilerUserDefines to note the relevant user defines to the editing file.
    kuchungmsft committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    2672a83 View commit details
    Browse the repository at this point in the history