From 60dad37509056a5a40f97f71ad1b564ac60e00aa Mon Sep 17 00:00:00 2001 From: Sheng Chen Date: Wed, 24 Jul 2024 11:08:54 +0800 Subject: [PATCH] build - Prepare for 0.24.0 (#847) --- .github/workflows/windows.yml | 3 +++ CHANGELOG.md | 3 +++ .../META-INF/MANIFEST.MF | 2 +- .../com.microsoft.jdtls.ext.core/pom.xml | 2 +- .../com.microsoft.jdtls.ext.target/pom.xml | 2 +- jdtls.ext/pom.xml | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- src/explorerCommands/new.ts | 19 ++++++++++--------- 9 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b6716e1d..fee79b90 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -30,6 +30,9 @@ jobs: - name: Install VSCE run: npm install -g @vscode/vsce + - name: Lint + run: npm run tslint + - name: Build OSGi bundle run: npm run build-server diff --git a/CHANGELOG.md b/CHANGELOG.md index ba4f72eb..02f3bb79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to the "vscode-java-dependency" extension will be documented The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.24.0 +* feat - Support adding new package from file explorer by @jdneo in https://github.com/microsoft/vscode-java-dependency/pull/845 + ## 0.23.7 * fix - Creates file watcher with trailing slash causes problems for other extensions by @testforstephen in https://github.com/microsoft/vscode-java-dependency/pull/829 * fix - Micronaut® Launch extension renamed. by @dbalek in https://github.com/microsoft/vscode-java-dependency/pull/831 diff --git a/jdtls.ext/com.microsoft.jdtls.ext.core/META-INF/MANIFEST.MF b/jdtls.ext/com.microsoft.jdtls.ext.core/META-INF/MANIFEST.MF index 7ba188b8..5bba4389 100644 --- a/jdtls.ext/com.microsoft.jdtls.ext.core/META-INF/MANIFEST.MF +++ b/jdtls.ext/com.microsoft.jdtls.ext.core/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: JDTLS EXT Core Bundle-SymbolicName: com.microsoft.jdtls.ext.core;singleton:=true -Bundle-Version: 0.23.7 +Bundle-Version: 0.24.0 Bundle-Activator: com.microsoft.jdtls.ext.core.JdtlsExtActivator Bundle-RequiredExecutionEnvironment: JavaSE-11 Bundle-ActivationPolicy: lazy diff --git a/jdtls.ext/com.microsoft.jdtls.ext.core/pom.xml b/jdtls.ext/com.microsoft.jdtls.ext.core/pom.xml index 37ea2cf7..618e8f40 100644 --- a/jdtls.ext/com.microsoft.jdtls.ext.core/pom.xml +++ b/jdtls.ext/com.microsoft.jdtls.ext.core/pom.xml @@ -5,7 +5,7 @@ com.microsoft.jdtls.ext jdtls-ext-parent - 0.23.7 + 0.24.0 com.microsoft.jdtls.ext.core eclipse-plugin diff --git a/jdtls.ext/com.microsoft.jdtls.ext.target/pom.xml b/jdtls.ext/com.microsoft.jdtls.ext.target/pom.xml index 43dc8b56..405b4e1a 100644 --- a/jdtls.ext/com.microsoft.jdtls.ext.target/pom.xml +++ b/jdtls.ext/com.microsoft.jdtls.ext.target/pom.xml @@ -4,7 +4,7 @@ com.microsoft.jdtls.ext jdtls-ext-parent - 0.23.7 + 0.24.0 com.microsoft.jdtls.ext.tp ${base.name} :: Target Platform diff --git a/jdtls.ext/pom.xml b/jdtls.ext/pom.xml index ab530794..d1fc175d 100644 --- a/jdtls.ext/pom.xml +++ b/jdtls.ext/pom.xml @@ -4,7 +4,7 @@ com.microsoft.jdtls.ext jdtls-ext-parent ${base.name} :: Parent - 0.23.7 + 0.24.0 pom Java Project Manager diff --git a/package-lock.json b/package-lock.json index 43a34ccd..ea6b0047 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-java-dependency", - "version": "0.23.7", + "version": "0.24.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-java-dependency", - "version": "0.23.7", + "version": "0.24.0", "license": "MIT", "dependencies": { "await-lock": "^2.2.2", diff --git a/package.json b/package.json index 5b5ea3a6..b72d6b19 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-java-dependency", "displayName": "Project Manager for Java", "description": "%description%", - "version": "0.23.7", + "version": "0.24.0", "publisher": "vscjava", "preview": false, "aiKey": "5c642b22-e845-4400-badb-3f8509a70777", @@ -46,7 +46,7 @@ "main": "./main.js", "contributes": { "javaExtensions": [ - "./server/com.microsoft.jdtls.ext.core-0.23.7.jar" + "./server/com.microsoft.jdtls.ext.core-0.24.0.jar" ], "commands": [ { diff --git a/src/explorerCommands/new.ts b/src/explorerCommands/new.ts index 84ab3360..5a5cb7cc 100644 --- a/src/explorerCommands/new.ts +++ b/src/explorerCommands/new.ts @@ -321,7 +321,7 @@ async function inferPackageFsPath(): Promise { return getPackageFsPathFromActiveEditor(); } - let sourcePaths: string[] | undefined = (await getSourceRoots())?.data?.map((sourcePath) => sourcePath.path); + const sourcePaths: string[] | undefined = (await getSourceRoots())?.data?.map((sourcePath) => sourcePath.path); if (!window.activeTextEditor) { if (sourcePaths?.length === 1) { @@ -412,7 +412,7 @@ async function resolvePackageName(filePath: string): Promise { return guessPackageName(filePath); } - let sourcePaths: string[] = (await getSourceRoots())?.data?.map( + const sourcePaths: string[] = (await getSourceRoots())?.data?.map( (sourcePath) => sourcePath.path).sort((a, b) => b.length - a.length) ?? []; if (!sourcePaths?.length) { @@ -515,8 +515,9 @@ export async function newPackage(node: DataNode | Uri | undefined): Promise sourcePath.path).sort((a, b) => b.length - a.length) ?? []; if (!sourcePaths?.length) { @@ -587,17 +588,17 @@ async function getPackageInformationFromNode(node: DataNode): Promise node; const packageRootPath = primaryTypeNode.getPackageRootPath(); @@ -611,9 +612,9 @@ async function getPackageInformationFromNode(node: DataNode): Promise