diff --git a/vscode-extensions/vscode-spring-boot/lib/copilot/springBootAgent.ts b/vscode-extensions/vscode-spring-boot/lib/copilot/springBootAgent.ts index 5db0374c3..673980464 100644 --- a/vscode-extensions/vscode-spring-boot/lib/copilot/springBootAgent.ts +++ b/vscode-extensions/vscode-spring-boot/lib/copilot/springBootAgent.ts @@ -40,7 +40,7 @@ export default class SpringBootChatAgent { } const selectedProjectUri = Uri.file(selectedProject?.fsPath).toString(); - // Fetch project related information from the Spring boot language server + // Fetch project related information from the Spring Boot language server const bootProjInfo = await commands.executeCommand("sts/spring-boot/bootProjectInfo", selectedProjectUri) as BootProjectInfo; const projectContext = ` Use the following project information for the solution: Please suggest code compatible with the project version. @@ -48,7 +48,7 @@ export default class SpringBootChatAgent { Main Spring project name: ${bootProjInfo.name} Root Package name: ${bootProjInfo.mainClass.substring(0, bootProjInfo.mainClass.lastIndexOf('.'))} Build tool: ${bootProjInfo.buildTool} - Spring boot version: ${bootProjInfo.springBootVersion} + Spring Boot version: ${bootProjInfo.springBootVersion} Java version: ${bootProjInfo.javaVersion} User prompt: ${request.prompt} `; @@ -105,5 +105,5 @@ export function activate( const agent = chat.createChatParticipant(PARTICIPANT_ID, async (request, context, progress, token) => { return springBootChatAgent.handlePrompts(request, context, progress, token); }); - agent.iconPath = Uri.joinPath(context.extensionUri, 'readme-imgs', 'spring-tools-icon.png'); + agent.iconPath = Uri.joinPath(context.extensionUri, 'readme-imgs', 'sts4-32.png'); } \ No newline at end of file diff --git a/vscode-extensions/vscode-spring-boot/lib/copilot/system-ai-prompt.ts b/vscode-extensions/vscode-spring-boot/lib/copilot/system-ai-prompt.ts index 1ce937e51..c2ab3ee0a 100644 --- a/vscode-extensions/vscode-spring-boot/lib/copilot/system-ai-prompt.ts +++ b/vscode-extensions/vscode-spring-boot/lib/copilot/system-ai-prompt.ts @@ -1,6 +1,6 @@ import CopilotRequest from "./copilotRequest" -export const systemPrompt = `**Your task is to create Java source code for a Spring boot application. Follow these guidelines:** +export const systemPrompt = `**Your task is to create Java source code for a Spring Boot application. Follow these guidelines:** - IMPORTANT: CONCLUDE YOUR RESPONSE WITH THE MARKER \"//${CopilotRequest.DEFAULT_END_MARK}\" TO INDICATE END OF RESPONSE. - Generate a pom.xml snippet that includes the necessary Spring Boot Starter dependencies such as "spring-boot-starter-jpa". - Organize code into appropriate package. Use the Package name as the root package and place the files in sub-packages accordingly. @@ -15,7 +15,7 @@ export const systemPrompt = `**Your task is to create Java source code for a Spr - Include an integration test if there are multiple architectural layers. ` -export const systemBoot3Prompt = `For Spring boot 3 and above: +export const systemBoot3Prompt = `For Spring Boot 3 and above: - IMPORTANT: For JPA related applications, the 'javax' package has been replaced with 'jakarta' package. All JPA-related imports should use 'jakarta.persistence' instead of 'javax.persistence'. \`\`\` """ diff --git a/vscode-extensions/vscode-spring-boot/package.json b/vscode-extensions/vscode-spring-boot/package.json index 3f9b63665..fcf2f7a00 100644 --- a/vscode-extensions/vscode-spring-boot/package.json +++ b/vscode-extensions/vscode-spring-boot/package.json @@ -37,9 +37,9 @@ "chatParticipants": [ { "id": "springboot.agent", - "fullName": "Spring boot", - "name": "springboot", - "description": "Spring boot chat agent", + "fullName": "Spring Tools", + "name": "spring", + "description": "Spring Tools chat agent", "commands": [ { "name": "add", diff --git a/vscode-extensions/vscode-spring-boot/readme-imgs/spring-boot-logo.png b/vscode-extensions/vscode-spring-boot/readme-imgs/spring-boot-logo.png new file mode 100644 index 000000000..0ccdef63a Binary files /dev/null and b/vscode-extensions/vscode-spring-boot/readme-imgs/spring-boot-logo.png differ diff --git a/vscode-extensions/vscode-spring-boot/readme-imgs/spring-tools-icon.png b/vscode-extensions/vscode-spring-boot/readme-imgs/spring-tools-icon.png deleted file mode 100644 index ee9572b42..000000000 Binary files a/vscode-extensions/vscode-spring-boot/readme-imgs/spring-tools-icon.png and /dev/null differ diff --git a/vscode-extensions/vscode-spring-boot/readme-imgs/sts4-32.png b/vscode-extensions/vscode-spring-boot/readme-imgs/sts4-32.png new file mode 100644 index 000000000..ff1bef1dc Binary files /dev/null and b/vscode-extensions/vscode-spring-boot/readme-imgs/sts4-32.png differ