{"id":15924090,"url":"https://github.com/ericglau/microprofile-language-server-demo","last_synced_at":"2026-02-24T06:06:54.877Z","repository":{"id":116635133,"uuid":"238844142","full_name":"ericglau/microprofile-language-server-demo","owner":"ericglau","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-07T05:48:43.000Z","size":23592,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T02:15:32.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericglau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-07T04:33:23.000Z","updated_at":"2020-02-07T05:48:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ee9eaf0-7116-4636-88ff-482a9902555b","html_url":"https://github.com/ericglau/microprofile-language-server-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Fmicroprofile-language-server-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Fmicroprofile-language-server-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Fmicroprofile-language-server-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericglau%2Fmicroprofile-language-server-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericglau","download_url":"https://codeload.github.com/ericglau/microprofile-language-server-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247005397,"owners_count":20868019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T21:20:20.423Z","updated_at":"2025-10-05T22:03:55.615Z","avatar_url":"https://github.com/ericglau.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroProfile Language Server Demo\n\nDemo for MicroProfile Language Server using VS Code\n\n## Setup\nBuild the following projects and install the extension in VS Code.\n- https://github.com/MicroShed/microprofile-language-server\n- https://github.com/MicroShed/microprofile-lsp-client-vscode\n\n## MicroProfile OpenAPI\n1. Clone OpenAPI guide\n```\ngit clone https://github.com/OpenLiberty/guide-microprofile-openapi.git\n```\n2. In VS Code, File -\u003e Open and open the `guide-microprofile-openapi/finish` folder.\n\n#### OpenAPI Annotation Source Actions:\n1. Navigate to `src/main/java/io/openliberty/guides/inventory/InventoryResource.java`\n1. Delete the entire `@Operation` annotation above `getPropertiesForHost`.\n1. Right-click anywhere in the class, choose `Source Action...`, `Generate OpenAPI Annotations`\n1. An `@Operation` annotation is generated with fields that you can fill in.  \n![](images/OpenAPI-Source-Action-Operation.gif)\n\n#### OpenAPI Annotation Code Complete:\n1. Delete the `@Operation` annotation.  Press Control Space and start typing `@`.  Select the `Operation` code complete, which inserts a code snippet with fields that you can fill in.  \n![](images/OpenAPI-Snippet-Operation.gif)\n1. Delete the `@Parameter` annotation.  Press Control Space and start typing `@`.  Select the `Parameter` code complete, which inserts a code snippet with fields that you can fill in.  \n![](images/OpenAPI-Snippet-Parameter.gif)\n\n## MicroProfile Rest Client\n\n1. Clone Rest Client guide\n```\ngit clone https://github.com/OpenLiberty/guide-microprofile-rest-client.git\n```\n\n#### Rest Client Injection - Diagnostics and Quick Fix:\n1. Navigate to `src/main/java/io/openliberty/guides/inventory/InventoryManager.java`.\n1. Delete `@Inject` above `defaultRestClient` which is registered as a Rest Client. A warning appears. Right-click the warning in the Problems pane to add the missing annotation.  \n![](images/RestClient-QuickFix-Inject.gif)\n1. Delete `@RestClient` above `defaultRestClient`. A warning appears. Right-click the warning in the Problems pane to add the missing annotation.  \n![](images/RestClient-QuickFix-RestClient.gif)\n1. Delete both `@Inject` and `@RestClient`. A warning appears. Right-click the warning in the Problems pane to add the missing annotations.  \n![](images/RestClient-QuickFix-Multiple.gif)\n1. Navigate to `src/main/java/io/openliberty/guides/inventory/client/SystemClient.java`. Delete `@RegisterRestClient`. A warning appears for this interface because it is being injected elsewhere but is not registered as a Rest Client.  \n![](images/RestClient-Diagnostic-Missing-Register.gif)\n\n### MicroProfile Health\n\n1. Clone Health guide\n```\ngit clone https://github.com/OpenLiberty/guide-microprofile-health.git\n```\n2. In VS Code, File -\u003e Open and open the `guide-microprofile-health/finish` folder.\n\n#### Diagnostics and Quick Fix:\n1. Navigate to `src/main/java/io/openliberty/guides/inventory/InventoryLivenessCheck.java`\n1. Delete the `@Liveness` annotation.  Notice the warning that appears.\n1. In the Problems panel, right-click the warning and choose \"Add missing @Liveness annotation\"  \n![](images/Health-QuickFix-Liveness.gif)\n1. Navigate to `src/main/java/io/openliberty/guides/inventory/InventoryReadinessCheck.java`\n1. Delete the `@Readiness` annotation.  Notice the warning that appears.\n1. In the Problems panel, right-click the warning and choose \"Add missing @Readiness annotation\"  \n![](images/Health-QuickFix-Readiness.gif)\n1. Delete the text `implements HealthCheck`.  Notice the warning that appears.\n1. In the Problems panel, right-click the warning and choose \"Add missing HealthCheck interface\"  \n![](images/Health-QuickFix-Implements.gif)\n\n#### Code Complete:\n1. Delete the `@Readiness` annotation.  Then press Control Space and type `@`.\n1. Notice the `Liveness`, `Readiness`, and `Health` code competion suggestions prioritized at the top of the list, and they have additional info.  \n![](images/Health-CodeComplete.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericglau%2Fmicroprofile-language-server-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericglau%2Fmicroprofile-language-server-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericglau%2Fmicroprofile-language-server-demo/lists"}