You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Depends on cpptools' update to provide ProjectContextResult.
- Added the following new traits
- intellisense: compiler information disclaimer.
- intellisenseBegin: to note the beginning 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.
{name: "intellisense",value: 'intellisense',includeInPrompt: true,promptTextOverride: `IntelliSense is currently configured with the following compiler information. It reflects the active configuration, and the project may have more configurations targeting different platforms.`},
50
+
{name: "intellisenseBegin",value: 'Begin',includeInPrompt: true,promptTextOverride: `Beginning of IntelliSense information.`}
53
51
];
52
+
if(cppContext.language){
53
+
traits.push({name: "language",value: cppContext.language,includeInPrompt: true,promptTextOverride: `The language is ${cppContext.language}.`});
54
+
}
55
+
if(cppContext.compiler){
56
+
traits.push({name: "compiler",value: cppContext.compiler,includeInPrompt: true,promptTextOverride: `This project compiles using ${cppContext.compiler}.`});
57
+
}
58
+
if(cppContext.standardVersion){
59
+
traits.push({name: "standardVersion",value: cppContext.standardVersion,includeInPrompt: true,promptTextOverride: `This project uses the ${cppContext.standardVersion} language standard.`});
0 commit comments