-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 A/B Compiler Arguments Traits to Completions Prompt #12844
Open
kuchungmsft
wants to merge
1
commit into
microsoft:main
Choose a base branch
from
kuchungmsft:kuchung/ProvideCompilerDefinesArgumentsTrait
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Support A/B Compiler Arguments Traits to Completions Prompt #12844
kuchungmsft
wants to merge
1
commit into
microsoft:main
from
kuchungmsft:kuchung/ProvideCompilerDefinesArgumentsTrait
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
October 17, 2024 00:39
830f513
to
9357de0
Compare
sean-mcmanus
previously requested changes
Oct 17, 2024
Colengms
requested changes
Oct 17, 2024
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
October 19, 2024 00:29
9357de0
to
2516fa6
Compare
Extension/test/scenarios/SingleRootProject/tests/lmTool.test.ts
Outdated
Show resolved
Hide resolved
Colengms
previously requested changes
Oct 19, 2024
benmcmorran
reviewed
Oct 22, 2024
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
October 25, 2024 22:17
2516fa6
to
3560e44
Compare
kuchungmsft
changed the title
Add Compiler Command Line Defines and Arguments Traits to Completions Prompt
Support A/B Compiler Arguments Traits to Completions Prompt
Oct 25, 2024
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
October 25, 2024 22:25
3560e44
to
e6721bd
Compare
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
October 25, 2024 23:14
e6721bd
to
c03a944
Compare
bobbrow
reviewed
Oct 28, 2024
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
October 28, 2024 20:43
c03a944
to
2d50ccb
Compare
Colengms
reviewed
Oct 28, 2024
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
November 12, 2024 22:26
2d50ccb
to
cf72c95
Compare
- Depends on cpptools' update to provide ProjectContextResult. - Added two new traits - compilerArguments: a list of compiler command arguments that could affect Copilot generating completions. - compilerUserDefines: a list of compiler command defines that could affect Copilot generating completions. Macro references are used to exclude the ones that are not relavent. - 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.
kuchungmsft
force-pushed
the
kuchung/ProvideCompilerDefinesArgumentsTrait
branch
from
November 12, 2024 22:31
cf72c95
to
f449793
Compare
kuchungmsft
commented
Nov 13, 2024
telemetryProperties["compilerArgumentCount"] = projectContext.result.fileContext.compilerArgs.length.toString(); | ||
telemetryProperties["filteredCompilerArgumentCount"] = filteredcompilerArguments.length.toString(); | ||
telemetryProperties["compilerUserDefinesRelavantCount"] = projectContext.result.fileContext.compilerUserDefinesRelavant.length.toString(); | ||
telemetryProperties["targetArcompilerOriginalUserDefineCounthitecture"] = projectContext.result.fileContext.compilerOriginalUserDefineCount.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: compilerOriginalUserDefineCount
telemetryProperties["filteredCompilerArgumentCount"] = filteredcompilerArguments.length.toString(); | ||
telemetryProperties["compilerUserDefinesRelavantCount"] = projectContext.result.fileContext.compilerUserDefinesRelavant.length.toString(); | ||
telemetryProperties["targetArcompilerOriginalUserDefineCounthitecture"] = projectContext.result.fileContext.compilerOriginalUserDefineCount.toString(); | ||
telemetryProperties["targetArchmacroReferenceCountitecture"] = projectContext.result.fileContext.macroReferenceCount.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: macroReferenceCount
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Support A/B Compiler Arguments Traits