Skip to content

Commit 00dd012

Browse files
authored
Merge branch 'main' into optimize-auth-record-export
2 parents 6374417 + df679c7 commit 00dd012

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@
944944
"dependencies": {
945945
"@azure/arm-resources": "^5.2.0",
946946
"@azure/arm-resources-profile-2020-09-01-hybrid": "^2.1.0",
947-
"@microsoft/vscode-azext-azureauth": "^5.1.0",
947+
"@microsoft/vscode-azext-azureauth": "^5.1.1",
948948
"@microsoft/vscode-azext-azureutils": "^4.0.0",
949949
"@microsoft/vscode-azext-utils": "^4.0.0",
950950
"buffer": "^6.0.3",

src/chat/askAgentAboutActivityLog/askAgentAboutActivityLog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export async function askAgentAboutActivityLog(context: IActionContext, item?: A
2020
} else {
2121
const treeItems: TreeDataItem[] = await ext.activityLogTree.getChildren() ?? [];
2222

23-
if (treeItems.length > 1) {
23+
if (treeItems.length) {
2424
const selectedItems = await context.ui.showQuickPick(
2525
treeItems.map(item => {
2626
return {

src/chat/tools/GetAzureActivityLog/GetAzureActivityLog.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class GetAzureActivityLog implements AzExtLMTool<void> {
3838

3939
return new vscode.LanguageModelToolResult([
4040
new vscode.LanguageModelTextPart('When explaining data from activity items, prefer explaining the data more conversationally rather than re-providing the raw json data.'),
41+
new vscode.LanguageModelTextPart('The activities provided are in chronological order.'),
4142
...selectedActivityItems.map(item => new vscode.LanguageModelTextPart(JSON.stringify(item))),
4243
]);
4344
}

src/tree/ResourceTreeDataProviderBase.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ export abstract class ResourceTreeDataProviderBase extends vscode.Disposable imp
5555
} else {
5656
if (!this.subscriptionProvider) {
5757
this.subscriptionProvider = await ext.subscriptionProviderFactory();
58-
}
5958

60-
if (!inCloudShell()) {
61-
// Only outside of Cloud Shell will we monitor for ongoing session changes
62-
// Inside we must avoid due to https://github.com/microsoft/vscode-dev/issues/1334
63-
const one = this.subscriptionProvider.onDidSignIn(() => {
64-
this.notifyTreeDataChanged();
65-
});
59+
if (!inCloudShell()) {
60+
// Only outside of Cloud Shell will we monitor for ongoing session changes
61+
// Inside we must avoid due to https://github.com/microsoft/vscode-dev/issues/1334
62+
const one = this.subscriptionProvider.onDidSignIn(() => {
63+
this.notifyTreeDataChanged();
64+
});
6665

67-
const two = this.subscriptionProvider.onDidSignOut(() => {
68-
this.notifyTreeDataChanged();
69-
});
66+
const two = this.subscriptionProvider.onDidSignOut(() => {
67+
this.notifyTreeDataChanged();
68+
});
7069

71-
this.statusSubscription = vscode.Disposable.from(one, two);
70+
this.statusSubscription = vscode.Disposable.from(one, two);
71+
}
7272
}
7373

7474
return this.subscriptionProvider;

0 commit comments

Comments
 (0)