Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6e18b0

Browse files
authored
Merge pull request#13271 from microsoft/main
Merge for 1.24.0 (2nd time)
2 parentscb3964f +69393c4 commitb6e18b0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎Extension/CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#C/C++ for Visual Studio Code Changelog
22

3-
##Version 1.24.0: Febrary10, 2025
3+
##Version 1.24.0: Febrary11, 2025
44
###New Feature
55
* Add experimental support for Copilot descriptions in hover tooltips, controlled by the`C_Cpp.copilotHover` setting. This feature is currently off by default and may be subject to A/B experimentation. To opt-out of Copilot Hover experiments, set`C_Cpp.copilotHover` to`disabled`.
66

77
###Enhancement
88
* Improve/fix the switch header/source feature.[#2635](https://github.com/microsoft/vscode-cpptools/issues/2635)
99

1010
###Bug Fixes
11+
* Fix an IntelliSense crash in`build_sections`.[#12666](https://github.com/microsoft/vscode-cpptools/issues/12666),[#12956](https://github.com/microsoft/vscode-cpptools/issues/12956)
1112
* Fix a bug in which hundreds of custom configuration requests could be sent on startup before the configuration provider has registered.[#13166](https://github.com/microsoft/vscode-cpptools/issues/13166)
1213
* Fix handling of the`-framework` compiler argument.[#13204](https://github.com/microsoft/vscode-cpptools/issues/13204)
1314
* Fix a potential race between didChange and didOpen.[PR#13209](https://github.com/microsoft/vscode-cpptools/pull/13209)

‎Extension/src/LanguageServer/copilotCompletionContextProvider.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export class CopilotCompletionContextProvider implements ContextResolver<CodeSni
7272
privatestaticreadonlyproviderId='ms-vscode.cpptools';
7373
privatereadonlycompletionContextCache:Map<string,CacheEntry>=newMap();
7474
privatestaticreadonlydefaultCppDocumentSelector:DocumentSelector=[{language:'cpp'},{language:'c'},{language:'cuda-cpp'}];
75-
privatestaticreadonlydefaultTimeBudgetFactor:number=0.5;
75+
// A percentage expressed as an integer number, i.e. 50 means 50%.
76+
privatestaticreadonlydefaultTimeBudgetFactor:number=50;
7677
privatestaticreadonlydefaultMaxCaretDistance=4096;
7778
privatecompletionContextCancellation=newvscode.CancellationTokenSource();
7879
privatecontextProviderDisposable:vscode.Disposable|undefined;
@@ -177,7 +178,7 @@ export class CopilotCompletionContextProvider implements ContextResolver<CodeSni
177178
privateasyncfetchTimeBudgetFactor(context:ResolveRequest):Promise<number>{
178179
try{
179180
constbudgetFactor=context.activeExperiments.get(CopilotCompletionContextProvider.CppCodeSnippetsTimeBudgetFactor);
180-
return(budgetFactorasnumber)??CopilotCompletionContextProvider.defaultTimeBudgetFactor;
181+
return((budgetFactorasnumber)??CopilotCompletionContextProvider.defaultTimeBudgetFactor)/100.0;
181182
}catch(e){
182183
console.warn(`fetchTimeBudgetFactor(): error fetching${CopilotCompletionContextProvider.CppCodeSnippetsTimeBudgetFactor}, using default: `,e);
183184
returnCopilotCompletionContextProvider.defaultTimeBudgetFactor;
@@ -186,8 +187,8 @@ export class CopilotCompletionContextProvider implements ContextResolver<CodeSni
186187

187188
privateasyncfetchMaxDistanceToCaret(context:ResolveRequest):Promise<number>{
188189
try{
189-
constbudgetFactor=context.activeExperiments.get(CopilotCompletionContextProvider.CppCodeSnippetsMaxDistanceToCaret);
190-
return(budgetFactorasnumber)??CopilotCompletionContextProvider.defaultMaxCaretDistance;
190+
constmaxDistance=context.activeExperiments.get(CopilotCompletionContextProvider.CppCodeSnippetsMaxDistanceToCaret);
191+
return(maxDistanceasnumber)??CopilotCompletionContextProvider.defaultMaxCaretDistance;
191192
}catch(e){
192193
console.warn(`fetchMaxDistanceToCaret(): error fetching${CopilotCompletionContextProvider.CppCodeSnippetsMaxDistanceToCaret}, using default: `,e);
193194
returnCopilotCompletionContextProvider.defaultMaxCaretDistance;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp