File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,16 +45,11 @@ class UpgradeManager {
4545 }
4646
4747 public static scan ( ) {
48- if ( ! shouldRunCheckup ( ) ) {
49- return ;
50- }
51- workspace . workspaceFolders ?. forEach ( ( folder ) =>
52- UpgradeManager . runDependencyCheckup ( folder )
53- ) ;
54- }
48+ return instrumentOperation ( "java.dependency.scan" , async ( _operationId : string ) => {
49+ if ( ! shouldRunCheckup ( ) ) {
50+ return ;
51+ }
5552
56- private static async runDependencyCheckup ( folder : WorkspaceFolder ) {
57- return instrumentOperation ( "java.dependency.runDependencyCheckup" , async ( _operationId : string ) => {
5853 if ( ! ( await languageServerApiManager . ready ( ) ) ) {
5954 sendInfo ( _operationId , { skipReason : "languageServerNotReady" } ) ;
6055 return ;
@@ -66,6 +61,14 @@ class UpgradeManager {
6661 return ;
6762 }
6863
64+ workspace . workspaceFolders ?. forEach ( ( folder ) =>
65+ UpgradeManager . runDependencyCheckup ( folder )
66+ ) ;
67+ } ) ;
68+ }
69+
70+ private static async runDependencyCheckup ( folder : WorkspaceFolder ) {
71+ return instrumentOperation ( "java.dependency.runDependencyCheckup" , async ( _operationId : string ) => {
6972 const projects = await Jdtls . getProjects ( folder . uri . toString ( ) ) ;
7073 const projectDirectDepsResults = await Promise . allSettled (
7174 projects . map ( async ( projectNode ) => ( {
You can’t perform that action at this time.
0 commit comments