Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f5421cc
add failing test
iisaduan Jan 12, 2024
fd0290b
more tests
iisaduan Jan 12, 2024
a0b3a0e
add detection tests
iisaduan Jan 16, 2024
6f05577
improved test behavior
iisaduan Jan 16, 2024
40722f5
improved test behavior
iisaduan Jan 16, 2024
1dbec4f
add core/utility functions
iisaduan Jan 25, 2024
566f326
update utility docs
iisaduan Jan 25, 2024
321df23
update behavior in tests to the correct detection
iisaduan Feb 1, 2024
4ae222d
update tests since "last" is no longer default
iisaduan Feb 1, 2024
76efd15
update remaining tests and baselines
iisaduan Feb 1, 2024
85198ac
first draft: detection implementation
iisaduan Feb 1, 2024
fbe645d
Merge branch 'main' of https://github.com/microsoft/TypeScript into d…
iisaduan Feb 1, 2024
4b56b44
add detectionByDiff to autoImports, update tests
iisaduan Feb 2, 2024
dadfe54
move diff unit tests to unittests/utilities.ts
iisaduan Feb 3, 2024
8067f5f
in progress
iisaduan Feb 15, 2024
e3ccaf1
change detection method to "isSorted" check
iisaduan Feb 21, 2024
094c607
rename functions and update services/utilities.ts
iisaduan Feb 26, 2024
7f11421
separate detection into module and named
iisaduan Feb 26, 2024
ab4c78c
removed old detection from importFixes and services/utilities
iisaduan Feb 26, 2024
eb54e77
remove old detection
iisaduan Feb 27, 2024
c7c57f7
remove casts
iisaduan Feb 27, 2024
64f1468
clean up
iisaduan Feb 27, 2024
2f0d437
Merge branch 'main' of https://github.com/iisaduan/TypeScript into de…
iisaduan Feb 27, 2024
c5239e7
Merge branch 'main' of https://github.com/microsoft/TypeScript into d…
iisaduan Feb 27, 2024
bd5c01a
fix comments
iisaduan Feb 27, 2024
34e3502
remove unused functions
iisaduan Feb 27, 2024
2593f8c
add type OrganizeImportsTypeOrder
iisaduan Feb 27, 2024
97e3e75
fix autoimport type order bug
iisaduan Feb 28, 2024
5d0517f
remove unused
iisaduan Mar 5, 2024
10f64a2
in progress--moving to codespace
iisaduan Mar 8, 2024
0364735
add detection baselines
iisaduan Mar 8, 2024
5672604
finish updating autoImports
iisaduan Mar 8, 2024
aa57e41
merge main
iisaduan Mar 8, 2024
fa5bbdb
clean up organizeImports file
iisaduan Mar 9, 2024
7442236
clean up organizeImports file
iisaduan Mar 9, 2024
a1954ec
Merge branch 'detect-organize-imports' of https://github.com/iisaduan…
iisaduan Mar 9, 2024
2127d55
correct auto imports tests for auto type promotion
iisaduan Mar 14, 2024
520d4ca
fix importFixes to compare the new imports
iisaduan Mar 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
…etect-organize-imports
  • Loading branch information
iisaduan committed Feb 27, 2024
commit c5239e75b03263019707b25b1d1fa3e22d38c427
13 changes: 13 additions & 0 deletions src/services/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4307,3 +4307,16 @@ export function getDiffNum<T>(s1: T[], s2: T[]): number {
return diffTable[0][0];
}
}

/** @internal */
export function isBlockLike(node: Node): node is BlockLike {
switch (node.kind) {
case SyntaxKind.Block:
case SyntaxKind.SourceFile:
case SyntaxKind.ModuleBlock:
case SyntaxKind.CaseClause:
return true;
default:
return false;
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.