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 proto and path checks #118

Merged
merged 9 commits into from
Sep 20, 2024
Merged

add proto and path checks #118

merged 9 commits into from
Sep 20, 2024

Conversation

saranshsaini
Copy link
Contributor

@saranshsaini saranshsaini commented Sep 16, 2024

AddTrackedWorkspace RPC was failing because of a bad path being passed in, just need to add a check for that.

Noticed some proto were missing, added those in too.
Previous proto additions were incorrect, deleted some of them.

@CLAassistant
Copy link

CLAassistant commented Sep 16, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ Saransh Saini
❌ kevinzlu


Saransh Saini seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Collaborator

@fortenforge fortenforge left a comment

Choose a reason for hiding this comment

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

@@ -308,6 +308,7 @@ protected override void BeforeQueryStatus(EventArgs e)

protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
{
await CodeiumVSPackage.Instance.LogAsync("IN WINDOW DILAOG");
Copy link
Collaborator

Choose a reason for hiding this comment

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

might as well spell this right if you're gonna leave it in

Copy link
Collaborator

@fortenforge fortenforge left a comment

Choose a reason for hiding this comment

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

@@ -318,7 +318,6 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
// highlight the selected codeblock
TextHighlighter? highlighter = TextHighlighter.GetInstance(docView.TextView);
highlighter?.AddHighlight(start_position, end_position - start_position);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Eventually we should add a formatter to prevent these whitespace changes from making it in

Comment on lines 741 to 747
if (!string.IsNullOrEmpty(project.FullName))
{
string projectDir = Path.GetDirectoryName(project.FullName);
await _package.LogAsync($"Project Dir: {projectDir}");
AddTrackedWorkspaceResponse response = await AddTrackedWorkspaceAsync(projectDir);
if (response != null)
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we log the project.FullName as well? Seeing as that's actually what's being used now?

Suggested change
if (!string.IsNullOrEmpty(project.FullName))
{
string projectDir = Path.GetDirectoryName(project.FullName);
await _package.LogAsync($"Project Dir: {projectDir}");
AddTrackedWorkspaceResponse response = await AddTrackedWorkspaceAsync(projectDir);
if (response != null)
{
await _package.LogAsync($"Project FullName: {project.FullName}");

Suggestion by Codeium

@saranshsaini saranshsaini merged commit 76894aa into main Sep 20, 2024
1 of 2 checks passed
@saranshsaini saranshsaini deleted the saransh/rpc-proto-fixes branch September 20, 2024 04:07
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.

4 participants