Skip to content

Commit 5d5c01c

Browse files
committed
Remove natural sorting of open editors displayed in the tree view
1 parent 7f51824 commit 5d5c01c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

packages/vscode/src/context/providers/open-editors-provider.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { FileItem } from './workspace-provider'
55
import { SharedFileState } from '../shared-file-state'
66
import { ignored_extensions } from '../constants/ignored-extensions'
77
import { should_ignore_file } from '../utils/extension-utils'
8-
import { natural_sort } from '../../utils/natural-sort'
98

109
export class OpenEditorsProvider
1110
implements vscode.TreeDataProvider<FileItem>, vscode.Disposable
@@ -339,13 +338,6 @@ export class OpenEditorsProvider
339338
const items: FileItem[] = []
340339
const open_files = this._get_open_editors()
341340

342-
// Sort open files using natural sort
343-
open_files.sort((a, b) => {
344-
const a_name = path.basename(a.fsPath)
345-
const b_name = path.basename(b.fsPath)
346-
return natural_sort(a_name, b_name)
347-
})
348-
349341
for (const file_uri of open_files) {
350342
const file_path = file_uri.fsPath
351343

0 commit comments

Comments
 (0)