-
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: enable to emit activation events on all language files #8
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
Conversation
|
I've tested the functionality and it seems this PR should be good to go. Could you please give it a quick review @azu? |
azu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be helpful if you could designate me as a reviewer so I can easily notice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request cherry-picks a previous change to enable the emission of activation events for textlint on all language files. Key changes include:
- Adding an activate function to update the status bar based on the language of the active editor.
- Changing the notification for the server running state from updating a tooltip to using an information message.
- Adjusting type usage for retrieving the "languages" configuration.
Reviewed Changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/textlint/src/status.ts | Added activate method, updated serverRunning handling, and modified updateWith logic. |
| packages/test/testtest.py | Introduced a TODO comment indicating a non-validated target. |
| packages/test/testtest.js | Introduced a TODO comment indicating a validated target. |
| packages/textlint/src/extension.ts | Added a generic type and default value for the "languages" configuration. |
Files not reviewed (3)
- packages/test/.textlintrc: Language not supported
- packages/test/.vscode/settings.json: Language not supported
- packages/textlint/package.json: Language not supported
Co-authored-by: azu <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: azu <[email protected]>
azu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is a cherry-pick of taichi/vscode-textlint#71.