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

Support goto defintion in Visual Studio #7668

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

bhsubra
Copy link
Contributor

@bhsubra bhsubra commented Jul 22, 2022

Support goto defintion in Visual Studio.

VS lsp goto definition model is different from O#. As a part of this change, added a middle layer to convert the output obtained from bicep language server to a format that is serializable by VS language server client

GotoDefinition
.

Microsoft Reviewers: Open in CodeFlow

Comment on lines 37 to 40
public async Task HandleNotificationAsync(string methodName, JToken methodParam, Func<JToken, Task> sendNotification)
{
await sendNotification(methodParam);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public async Task HandleNotificationAsync(string methodName, JToken methodParam, Func<JToken, Task> sendNotification)
{
await sendNotification(methodParam);
}
public Task HandleNotificationAsync(string methodName, JToken methodParam, Func<JToken, Task> sendNotification) =>
sendNotification(methodParam);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated here:
d1f7231

Thanks!

@bhsubra bhsubra linked an issue Jul 22, 2022 that may be closed by this pull request
@bhsubra bhsubra merged commit 6bfc08f into main Jul 22, 2022
@bhsubra bhsubra deleted the dev/bhsubra/SupportGotoDefinitionInVS branch July 22, 2022 23:37
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.

Support goto definition in Visual Studio
2 participants