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

Remove lsClient from webview request #74

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

noklam
Copy link
Contributor

@noklam noklam commented Aug 21, 2024

No description provided.

@noklam noklam changed the base branch from main to viz/viz-py-package August 21, 2024 17:50
Comment on lines +153 to +154
registerCommand('kedro.sendDefinitionRequest', async (word) => {
await executeServerDefinitionCommand(lsClient, word);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is that the webview use vscode command directly, instead of importing any function.

The command itself would have access of lsClient already. This enable restart LSP without disconnecting the webview from it.

Comment on lines +34 to +38
export async function getlsClient() {
return lsClient;
}


Copy link
Contributor Author

Choose a reason for hiding this comment

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

not needed, will clean up

@noklam
Copy link
Contributor Author

noklam commented Aug 21, 2024

I need to test it tomorrow as I discover a bug in the LSP which causing it to find the incorrect config. But I test this so the restart of LSP can continue work with the webview.

@jitu5 jitu5 self-requested a review August 22, 2024 12:02
@jitu5 jitu5 merged commit a411bc4 into viz/viz-py-package Aug 22, 2024
2 checks passed
@jitu5 jitu5 deleted the noklam/viz-webview-reload-server branch August 22, 2024 12:03
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.

2 participants