Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compiler plugin completions in http service #1701

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

malinthar
Copy link
Contributor

@malinthar malinthar commented Jul 5, 2023

Purpose

Fixes ballerina-platform/ballerina-lang#40634

Examples

http_compiler_plugin

This PR implements a CompletionProvider in http compiler plugin which adds six new completion items for get, post, delete, put, head, and options http methods.

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@malinthar malinthar marked this pull request as draft July 5, 2023 10:58
@malinthar malinthar changed the title Add cp completions Add compiler plugin completions in http service Jul 6, 2023
@malinthar malinthar marked this pull request as ready for review July 6, 2023 06:04
@malinthar malinthar force-pushed the add-cp-completions branch 4 times, most recently from 148679a to 5b2336c Compare July 6, 2023 09:52
gradle.properties Outdated Show resolved Hide resolved
@malinthar malinthar requested a review from dilanSachi July 7, 2023 04:47
Copy link
Contributor

@TharmiganK TharmiganK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@malinthar malinthar marked this pull request as draft July 10, 2023 04:32
@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Patch coverage: 86.66% and project coverage change: +0.04% 🎉

Comparison is base (e5980fd) 81.55% compared to head (a806052) 81.59%.
Report is 87 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1701      +/-   ##
============================================
+ Coverage     81.55%   81.59%   +0.04%     
- Complexity      577      583       +6     
============================================
  Files           393      395       +2     
  Lines         21423    21437      +14     
  Branches       4796     4796              
============================================
+ Hits          17471    17492      +21     
+ Misses         2948     2946       -2     
+ Partials       1004      999       -5     
Files Changed Coverage Δ
...ina/stdlib/http/compiler/completion/Constants.java 50.00% <50.00%> (ø)
...ler/completion/HttpServiceBodyContextProvider.java 90.90% <90.90%> (ø)
...erina/stdlib/http/compiler/HttpCompilerPlugin.java 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@malinthar malinthar marked this pull request as ready for review July 17, 2023 06:13
gradle.properties Outdated Show resolved Hide resolved
@shafreenAnfar
Copy link
Contributor

Functionality LGTM.

Copy link
Contributor

@TharmiganK TharmiganK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Jul 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
1.8% 1.8% Duplication

Copy link
Contributor

@dilanSachi dilanSachi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TharmiganK TharmiganK merged commit cc03daa into ballerina-platform:master Jul 26, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Feature]: Add compiler plugin completions for http compiler plugin
4 participants