File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
"displayName" : " Files2Prompt" ,
4
4
"icon" : " ./files2prompt-icon.webp" ,
5
5
"description" : " Copy file contents for LLM prompts" ,
6
- "version" : " 1.1.2 " ,
6
+ "version" : " 1.2.0 " ,
7
7
"publisher" : " thomas-mckanna" ,
8
8
"keywords" : [
9
9
" files" ,
Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ export class FileTreeProvider implements vscode.TreeDataProvider<FileItem> {
49
49
withFileTypes : true ,
50
50
} ) ;
51
51
52
+ // Sort directories above files and alphabetically
53
+ dirEntries . sort ( ( a , b ) => {
54
+ if ( a . isDirectory ( ) && ! b . isDirectory ( ) ) return - 1 ;
55
+ if ( ! a . isDirectory ( ) && b . isDirectory ( ) ) return 1 ;
56
+ return a . name . localeCompare ( b . name ) ;
57
+ } ) ;
58
+
52
59
for ( const entry of dirEntries ) {
53
60
const fullPath = path . join ( dirPath , entry . name ) ;
54
61
const relativePath = path . relative ( this . workspaceRoot , fullPath ) ;
You can’t perform that action at this time.
0 commit comments