Skip to content

Commit a29151b

Browse files
authored
Merge pull request #279844 from microsoft/benibenj/psychiatric-nightingale
Add performance marker for active suggestions
2 parents e191637 + 0360c03 commit a29151b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ export class InlineCompletionsModel extends Disposable {
187187
}
188188
}));
189189

190+
this._register(autorun(reader => {
191+
const inlineSuggestion = this.state.map(s => s?.inlineSuggestion).read(reader);
192+
if (inlineSuggestion) {
193+
inlineSuggestion.addPerformanceMarker('activeSuggestion');
194+
}
195+
}));
196+
190197
const inlineEditSemanticId = this.inlineEditState.map(s => s?.inlineSuggestion.semanticId);
191198

192199
this._register(autorun(reader => {

0 commit comments

Comments
 (0)