Skip to content

Commit 207c53c

Browse files
committed
Add sorting options to main window
1 parent 4e73f6f commit 207c53c

File tree

2 files changed

+225
-79
lines changed

2 files changed

+225
-79
lines changed

src/extension.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,6 +3051,9 @@ class CopilotTokenTracker implements vscode.Disposable {
30513051
case 'showDashboard':
30523052
await this.showDashboard();
30533053
break;
3054+
case 'saveSortSettings':
3055+
await this.context.globalState.update('details.sortSettings', message.settings);
3056+
break;
30543057
}
30553058
});
30563059

@@ -5224,9 +5227,14 @@ ${hashtag}`;
52245227
`script-src 'nonce-${nonce}'`,
52255228
].join("; ");
52265229

5230+
const sortSettings = this.context.globalState.get('details.sortSettings', {
5231+
editor: { key: 'name', dir: 'asc' },
5232+
model: { key: 'name', dir: 'asc' },
5233+
});
52275234
const dataWithBackend = {
52285235
...stats,
52295236
backendConfigured: this.isBackendConfigured(),
5237+
sortSettings,
52305238
};
52315239
const initialData = JSON.stringify(dataWithBackend).replace(
52325240
/</g,

0 commit comments

Comments
 (0)