Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Mar 21, 2025

This PR is a cherry-pick of taichi/vscode-textlint#71.

Allow to emit activate events on user's selected language files of all.
and, You can see whether or not a file in active editor is textlint target.

@3w36zj6 3w36zj6 added the Type: Feature New Feature label Mar 22, 2025
@3w36zj6
Copy link
Member Author

3w36zj6 commented Mar 24, 2025

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 azu self-requested a review March 24, 2025 11:59
Copy link
Member

@azu azu left a 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.

@azu azu requested a review from Copilot March 24, 2025 12:04
Copy link
Contributor

Copilot AI left a 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

@3w36zj6 3w36zj6 requested a review from azu March 25, 2025 17:22
Copy link
Member

@azu azu left a comment

Choose a reason for hiding this comment

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

LGTM

@3w36zj6 3w36zj6 merged commit d443d0c into main Mar 26, 2025
3 checks passed
@3w36zj6 3w36zj6 deleted the feature/allow-all-language-files branch March 26, 2025 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants