Skip to content

Commit 268b804

Browse files
authored
Merge branch 'main' into copilot/feature-group-used-models
2 parents e89578c + 9385cbf commit 268b804

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/cli-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Determine trigger type
7373
id: trigger_type
7474
run: |
75-
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == refs/tags/cli/v* ]]; then
75+
if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REF" == refs/tags/cli/v* ]]; then
7676
echo "is_tag=true" >> "$GITHUB_OUTPUT"
7777
TAG_VERSION=${GITHUB_REF#refs/tags/cli/v}
7878
echo "tag_version=$TAG_VERSION" >> "$GITHUB_OUTPUT"

visualstudio-extension/src/CopilotTokenTracker/Data/CliBridge.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,14 @@ public static Task GetAllDataAsync()
173173
return _inflightAllTask;
174174
}
175175

176-
_inflightAllTask = RunGetAllDataAsync();
177-
_ = _inflightAllTask.ContinueWith(_ =>
176+
var task = RunGetAllDataAsync();
177+
_inflightAllTask = task;
178+
_ = task.ContinueWith(_ =>
178179
{
179180
lock (_allLock) { _inflightAllTask = null; }
180181
}, System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously);
181182

182-
return _inflightAllTask;
183+
return task;
183184
}
184185
}
185186

0 commit comments

Comments
 (0)