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

json rpc server alignments #4562

Merged

Conversation

baywet
Copy link
Member

@baywet baywet commented Apr 26, 2024

  • Ensure the RPC commands use preview features if config is enabled.
  • ** - updates references kiota version for CLI**
  • - cleans up localization files from unused resource
  • - removes unimplemented command
  • - adds the environment variable passing to the json RPC server

Andrew Omondi and others added 5 commits April 26, 2024 11:04
@baywet baywet self-assigned this Apr 26, 2024
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Copy link

sonarcloud bot commented Apr 26, 2024

Quality Gate Passed Quality Gate passed

Issues
5 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@baywet baywet marked this pull request as ready for review April 26, 2024 19:22
@baywet baywet requested a review from a team as a code owner April 26, 2024 19:22
Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

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

Thanks for making these changes!

@@ -80,7 +81,7 @@ private static async Task<bool> GenerateClientAsync(GenerationConfiguration conf
{
using var fileLogger = new FileLogLogger<KiotaBuilder>(config.OutputPath, LogLevel.Warning);
var logger = new AggregateLogger<KiotaBuilder>(globalLogger, fileLogger);
return await new KiotaBuilder(logger, config, httpClient, true).GenerateClientAsync(cancellationToken);
return await new KiotaBuilder(logger, config, httpClient, IsConfigPreviewEnabled.Value).GenerateClientAsync(cancellationToken);
Copy link
Member

Choose a reason for hiding this comment

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

QQ: Thinking about this, I'm sort of unsure if we really need to use a config here. Given that the extension is essentially moving to using workspace file. Would it be correct to assume that we can just say the RPC server only works with workspace files?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a good question I don't have a definitive answer to. We have a couple of partners (Red Hat, other teams at Microsoft) who have taken a dependency on the server, or are thinking about doing so.
While we made it clear we don't guarantee the contract for the API itself, I want to maintain some level of compatibility with the lock mode for the time being so they are not backed into a corner.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the insight there.

@andrueastman andrueastman merged commit 9c80f34 into elinor/add-kiota-workspace Apr 30, 2024
204 checks passed
@andrueastman andrueastman deleted the andrueastman/fixExtensionRpcs branch April 30, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants