Skip to content

Conversation

@lukka
Copy link
Member

@lukka lukka commented Feb 20, 2025

Changes:
-new feature: add traits for C++ lang version
-telemetry: fix cancellation events.
-telemetry: more diag event for registration failure.

@lukka lukka marked this pull request as ready for review February 20, 2025 18:16
@lukka lukka requested a review from a team as a code owner February 20, 2025 18:16
@lukka lukka changed the title ContextProvider resolved improvements ContextProvider resolve handler improvements Feb 20, 2025
benmcmorran
benmcmorran previously approved these changes Feb 20, 2025
Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should SnippetEntry be removed? It doesn't appear to be referenced anymore?

@kuchungmsft
Copy link
Contributor

FYI, I have a PR opened to clean up the compiler argument traits, which may impact this PR, see #13278.

@sean-mcmanus
Copy link
Contributor

FYI, I have a PR opened to clean up the compiler argument traits, which may impact this PR, see #13278.

Should your PR get checked in first, right?

kuchungmsft
kuchungmsft previously approved these changes Feb 26, 2025
Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cppCodeSnippetsFeatureNames doesn't work if it's lowercased -- that seems a little error prone and unexpected, because the other C_Cpp settings values are case insensitive I believe.

Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, but that doesn't appear to be a regression -- it looks like I modified the setting value to be lowercase and expected it to work.

Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getEnabledFeatureNames splits by "," and breaks if ", " with a space after the comma is used -- that seems error prone. Should it be changed to handle space after a comma?

kuchungmsft
kuchungmsft previously approved these changes Feb 26, 2025
sean-mcmanus

This comment was marked as resolved.

Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukka Should the snippets be trimmed for whitespace?

image

Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still see unnecessary stuff sent to TypeScript like endLine. Can you remove that?

Copy link
Contributor

@sean-mcmanus sean-mcmanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving but it seems like some of the data sent to TypeScript could be cleaned up on the cpptools side.

@lukka
Copy link
Member Author

lukka commented Feb 27, 2025

I'm approving but it seems like some of the data sent to TypeScript could be cleaned up on the cpptools side.

Thanks! I have fixed and cleanup most (if not all) the things you suggested. The only one I am not going to do is the trimming of the whitespace. That should be unnecessary, and I am going to ask to the Copilot experts before doing it. In any case, not in this PR.

-telemetry: fix cancellation events.
-telemetry: more diag event for registration failure.
-add fallback to SimilarFiles providers such as openTabs and/or
related-files
@lukka lukka force-pushed the dev/lukka/cs-improvements branch from f89aa92 to 0ea9532 Compare February 28, 2025 20:53
@lukka lukka merged commit 1813c82 into main Mar 1, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Pull Request to Done in cpptools Mar 1, 2025
@lukka lukka deleted the dev/lukka/cs-improvements branch March 1, 2025 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants