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

refactor(vscode): inject translator and workspace #1189

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

vegerot
Copy link
Contributor

@vegerot vegerot commented Jan 15, 2024

refactor(vscode): inject translator and workspace

Summary: This commit refactors the global translator class into a variable
injected into the VSCode workspace, and gives the workspace as an argument to
QLJS_Lintable_Document.

This refactor clears the way for adding snarky and language settings for VSCode


Stack created with Sapling. Best reviewed with ReviewStack.

plugin/vscode/quick-lint-js/vscode/qljs-document.h Outdated Show resolved Hide resolved
diag_reporter.report(loaded_config->errors);
return std::move(diag_reporter).diagnostics();
}
Loaded_Config_File* loaded_config_ = nullptr;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Ideally the changes related to loaded_config_ would be done in a separate patch. I have some opinions on it. But I'll let this slide...

plugin/vscode/quick-lint-js/vscode/vscode-diag-reporter.h Outdated Show resolved Hide resolved
Summary: This commit refactors the global translator class into a variable
injected into the VSCode workspace, and gives the workspace as an argument to
QLJS_Lintable_Document.

This refactor clears the way for adding snarky and language settings for VSCode
@strager strager merged commit 0568dc2 into quick-lint:master Jan 25, 2024
182 of 193 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.

2 participants