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,7 +45,7 @@ export function collectBuildFilePattern(extensions: readonly vscode.Extension<an
4545}
4646
4747export function onExtensionChange ( extensions : readonly vscode . Extension < any > [ ] ) {
48- if ( isContributedPartUpdated ( collectJavaExtensions ( extensions ) , existingExtensions ) || isContributedPartUpdated ( collectBuildFilePattern ( extensions ) , buildFilePatterns ) ) {
48+ if ( isContributedPartUpdated ( existingExtensions , collectJavaExtensions ( extensions ) ) || isContributedPartUpdated ( buildFilePatterns , collectBuildFilePattern ( extensions ) ) ) {
4949 const msg = `Java Extension Contributions changed, reloading ${ vscode . env . appName } is required for the changes to take effect.` ;
5050 const action = 'Reload' ;
5151 const restartId = Commands . RELOAD_WINDOW ;
@@ -57,7 +57,7 @@ export function onExtensionChange(extensions: readonly vscode.Extension<any>[])
5757 }
5858}
5959
60- function isContributedPartUpdated ( newContributedPart : Array < string > , oldContributedPart : Array < string > ) {
60+ function isContributedPartUpdated ( oldContributedPart : Array < string > , newContributedPart : Array < string > ) {
6161 if ( ! oldContributedPart ) {
6262 return false ;
6363 }
You can’t perform that action at this time.
0 commit comments