Skip to content

Commit 60dad37

Browse files
authored
build - Prepare for 0.24.0 (#847)
1 parent f2dfc46 commit 60dad37

File tree

9 files changed

+24
-17
lines changed

9 files changed

+24
-17
lines changed

.github/workflows/windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Install VSCE
3131
run: npm install -g @vscode/vsce
3232

33+
- name: Lint
34+
run: npm run tslint
35+
3336
- name: Build OSGi bundle
3437
run: npm run build-server
3538

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to the "vscode-java-dependency" extension will be documented
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 0.24.0
8+
* feat - Support adding new package from file explorer by @jdneo in https://github.com/microsoft/vscode-java-dependency/pull/845
9+
710
## 0.23.7
811
* fix - Creates file watcher with trailing slash causes problems for other extensions by @testforstephen in https://github.com/microsoft/vscode-java-dependency/pull/829
912
* fix - Micronaut® Launch extension renamed. by @dbalek in https://github.com/microsoft/vscode-java-dependency/pull/831

jdtls.ext/com.microsoft.jdtls.ext.core/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: JDTLS EXT Core
44
Bundle-SymbolicName: com.microsoft.jdtls.ext.core;singleton:=true
5-
Bundle-Version: 0.23.7
5+
Bundle-Version: 0.24.0
66
Bundle-Activator: com.microsoft.jdtls.ext.core.JdtlsExtActivator
77
Bundle-RequiredExecutionEnvironment: JavaSE-11
88
Bundle-ActivationPolicy: lazy

jdtls.ext/com.microsoft.jdtls.ext.core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.microsoft.jdtls.ext</groupId>
77
<artifactId>jdtls-ext-parent</artifactId>
8-
<version>0.23.7</version>
8+
<version>0.24.0</version>
99
</parent>
1010
<artifactId>com.microsoft.jdtls.ext.core</artifactId>
1111
<packaging>eclipse-plugin</packaging>

jdtls.ext/com.microsoft.jdtls.ext.target/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.microsoft.jdtls.ext</groupId>
66
<artifactId>jdtls-ext-parent</artifactId>
7-
<version>0.23.7</version>
7+
<version>0.24.0</version>
88
</parent>
99
<artifactId>com.microsoft.jdtls.ext.tp</artifactId>
1010
<name>${base.name} :: Target Platform</name>

jdtls.ext/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.microsoft.jdtls.ext</groupId>
55
<artifactId>jdtls-ext-parent</artifactId>
66
<name>${base.name} :: Parent</name>
7-
<version>0.23.7</version>
7+
<version>0.24.0</version>
88
<packaging>pom</packaging>
99
<properties>
1010
<base.name>Java Project Manager</base.name>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-java-dependency",
33
"displayName": "Project Manager for Java",
44
"description": "%description%",
5-
"version": "0.23.7",
5+
"version": "0.24.0",
66
"publisher": "vscjava",
77
"preview": false,
88
"aiKey": "5c642b22-e845-4400-badb-3f8509a70777",
@@ -46,7 +46,7 @@
4646
"main": "./main.js",
4747
"contributes": {
4848
"javaExtensions": [
49-
"./server/com.microsoft.jdtls.ext.core-0.23.7.jar"
49+
"./server/com.microsoft.jdtls.ext.core-0.24.0.jar"
5050
],
5151
"commands": [
5252
{

src/explorerCommands/new.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ async function inferPackageFsPath(): Promise<string> {
321321
return getPackageFsPathFromActiveEditor();
322322
}
323323

324-
let sourcePaths: string[] | undefined = (await getSourceRoots())?.data?.map((sourcePath) => sourcePath.path);
324+
const sourcePaths: string[] | undefined = (await getSourceRoots())?.data?.map((sourcePath) => sourcePath.path);
325325

326326
if (!window.activeTextEditor) {
327327
if (sourcePaths?.length === 1) {
@@ -412,7 +412,7 @@ async function resolvePackageName(filePath: string): Promise<string> {
412412
return guessPackageName(filePath);
413413
}
414414

415-
let sourcePaths: string[] = (await getSourceRoots())?.data?.map(
415+
const sourcePaths: string[] = (await getSourceRoots())?.data?.map(
416416
(sourcePath) => sourcePath.path).sort((a, b) => b.length - a.length) ?? [];
417417

418418
if (!sourcePaths?.length) {
@@ -515,8 +515,9 @@ export async function newPackage(node: DataNode | Uri | undefined): Promise<void
515515
"triggernewpackagefrom": isUri ? "fileExplorer" : "javaProjectExplorer",
516516
});
517517

518-
let {defaultValue, packageRootPath} = (isUri ? await getPackageInformationFromUri(node)
518+
const {defaultValue: tempDefaultValue , packageRootPath} = (isUri ? await getPackageInformationFromUri(node)
519519
: await getPackageInformationFromNode(node)) || {};
520+
let defaultValue = tempDefaultValue;
520521
if (defaultValue === undefined || packageRootPath === undefined) {
521522
return;
522523
}
@@ -560,7 +561,7 @@ async function getPackageInformationFromUri(uri: Uri): Promise<Record<string, st
560561
return defaultValue;
561562
}
562563

563-
let sourcePaths: string[] = (await getSourceRoots())?.data?.map(
564+
const sourcePaths: string[] = (await getSourceRoots())?.data?.map(
564565
(sourcePath) => sourcePath.path).sort((a, b) => b.length - a.length) ?? [];
565566

566567
if (!sourcePaths?.length) {
@@ -587,17 +588,17 @@ async function getPackageInformationFromNode(node: DataNode): Promise<Record<str
587588
return {
588589
packageRootPath: await getPackageFsPath(node) || "",
589590
defaultValue: "",
590-
}
591+
};
591592
} else if (nodeKind === NodeKind.PackageRoot) {
592593
return {
593594
packageRootPath: Uri.parse(node.uri!).fsPath,
594595
defaultValue: "",
595-
}
596+
};
596597
} else if (nodeKind === NodeKind.Package) {
597598
return {
598599
packageRootPath: getPackageRootPath(Uri.parse(node.uri!).fsPath, node.nodeData.name),
599600
defaultValue: node.nodeData.name + ".",
600-
}
601+
};
601602
} else if (nodeKind === NodeKind.PrimaryType) {
602603
const primaryTypeNode = <PrimaryTypeNode> node;
603604
const packageRootPath = primaryTypeNode.getPackageRootPath();
@@ -611,9 +612,9 @@ async function getPackageInformationFromNode(node: DataNode): Promise<Record<str
611612
return undefined;
612613
}
613614
return {
614-
packageRootPath: packageRootPath,
615+
packageRootPath,
615616
defaultValue: path.relative(packageRootPath, packagePath).replace(/[/\\]/g, "."),
616-
}
617+
};
617618
}
618619

619620
return undefined;

0 commit comments

Comments
 (0)