chore: improve inline chat position & completions reporter #3188
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.
Types
Background or solution
限制 inline chat 不超出编辑区域范围
🤖[deprecated] Generated by Copilot at 5fc0588
AI_INLINE_COMPLETION_REPORTET
for reporting the inline completion statistics (link, link)ai-chat.contribution.ts
(link)TypeScriptCompletionsProvider
class to inject and pass theIAIReporter
instance to theReqStack
andRequestImp
classes (link, link, link)sendRequest
andpushResultAndRegist
methods of theRequestImp
class to start and end the reporting process using theaiReporter
parameter (link, link, link, link)command
property to theInlineCompletionItem
object that specifies theAI_INLINE_COMPLETION_REPORTET
command with a placeholder argument (link)AiInlineContentWidget
class to prevent the widget from overflowing the editor boundaries and improve its alignment with the cursor (link, link, link, link, link, link, link, link, link, link)completeProvider
module (link)pushResultAndRegist
method of theRequestImp
class to break the long if condition into two lines (link)Changelog
🤖[deprecated] Generated by Copilot at 5fc0588
This pull request enhances the inline completion feature in the AI chat editor by adding a new command to report usage and performance statistics, improving the chat widget's appearance and behavior, and integrating the reporting function with the completions provider. It also updates the common module with the new command constant.