From d92e9ced85934a44e405d1e214b2cdfba35fa588 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 15 Jul 2025 15:16:27 +0200 Subject: [PATCH] Chat: Sort recent files above tools (#255950) (#256026) * Chat: Sort recent files above tools (#255950) * explain --- .github/instructions/typescript.instructions.md | 1 + .../contrib/chat/browser/contrib/chatInputCompletions.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/instructions/typescript.instructions.md b/.github/instructions/typescript.instructions.md index 6a49d07f5d1..bf7f7f394c5 100644 --- a/.github/instructions/typescript.instructions.md +++ b/.github/instructions/typescript.instructions.md @@ -9,6 +9,7 @@ You MUST check compilation output before running ANY script or declaring work co 1. **ALWAYS** check the "Core - Build" task output for compilation errors 2. **ALWAYS** check the "Ext - Build" task output for compilation errors 3. **NEVER** run tests if there are compilation errors +3. **NEVER** use `npm run compile` to compile TypeScript files, always check task output 4. **FIX** all compilation errors before moving forward ## TypeScript compilation steps diff --git a/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts b/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts index 651442098d1..3e9af588eeb 100644 --- a/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts +++ b/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts @@ -876,7 +876,7 @@ class BuiltinDynamicCompletions extends Disposable { const labelDescription = description ? localize('fileEntryDescription', '{0} ({1})', uriLabel, description) : uriLabel; - const sortText = description ? 'z' : '{'; // after `z` + const sortText = ' '; // keep files always at the top return { label: { label: basename, description: labelDescription },