@@ -4,7 +4,7 @@ import * as fse from "fs-extra";
4
4
import * as path from "path" ;
5
5
import * as semver from 'semver' ;
6
6
import * as vscode from "vscode" ;
7
- import { ExtensionContext , window , commands } from "vscode" ;
7
+ import { ExtensionContext , window , commands , Uri } from "vscode" ;
8
8
import { Commands } from "./commands" ;
9
9
import { apiManager } from "./apiManager" ;
10
10
import { languageStatusBarProvider } from './runtimeStatusBarProvider' ;
@@ -117,7 +117,7 @@ export function addLombokParam(context: ExtensionContext, params: string[]) {
117
117
updateActiveLombokPath ( lombokJarPath ) ;
118
118
}
119
119
120
- export async function checkLombokDependency ( context : ExtensionContext ) {
120
+ export async function checkLombokDependency ( context : ExtensionContext , projectUri ?: Uri ) {
121
121
if ( ! isLombokSupportEnabled ( ) ) {
122
122
return ;
123
123
}
@@ -126,7 +126,7 @@ export async function checkLombokDependency(context: ExtensionContext) {
126
126
let currentLombokVersion : string = undefined ;
127
127
let previousLombokVersion : string = undefined ;
128
128
let currentLombokClasspath : string = undefined ;
129
- const projectUris : string [ ] = await getAllJavaProjects ( ) ;
129
+ const projectUris : string [ ] = projectUri ? [ projectUri . toString ( ) ] : await getAllJavaProjects ( ) ;
130
130
for ( const projectUri of projectUris ) {
131
131
const classpathResult = await apiManager . getApiInstance ( ) . getClasspaths ( projectUri , { scope : 'test' } ) ;
132
132
for ( const classpath of classpathResult . classpaths ) {
0 commit comments