Skip to content

feat(extension): support resovle bin path from user land#179

Merged
hardfist merged 3 commits intomainfrom
ext-ra
Aug 7, 2025
Merged

feat(extension): support resovle bin path from user land#179
hardfist merged 3 commits intomainfrom
ext-ra

Conversation

@fi3ework
Copy link
Copy Markdown
Member

@fi3ework fi3ework commented Aug 6, 2025

  • refactor plugin, some code referenced https://github.com/biomejs/biome-vscode
  • more log, in Rslint (workspace) and Rslint (extension) channel
  • prefer resolve bin files from the user's node_modules first
    image

Copilot AI review requested due to automatic review settings August 7, 2025 07:23
Copy link
Copy Markdown
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 PR refactors the VS Code extension to support resolving the Rslint binary path from the user's environment, implementing a priority-based resolution strategy. The changes introduce improved logging infrastructure and a more robust architecture for managing multiple workspace instances.

  • Implements a multi-tiered binary resolution strategy (user settings → node_modules → PnP → built-in fallback)
  • Adds comprehensive logging with separate channels for extension and workspace events
  • Refactors the architecture from a single client to workspace-based instances

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src/utils.ts Adds utility functions for file existence checking and platform detection
src/main.ts New entry point that delegates to the Extension class
src/logger.ts Comprehensive logging infrastructure with configurable log levels
src/extension.ts Removes old monolithic extension code
src/Rslint.ts New workspace-specific Rslint client manager with binary resolution logic
src/Extension.ts New main extension class managing multiple workspace instances
scripts/build.js Updates build entry point from extension.ts to main.ts
package.json Updates main entry point reference
.vscode/settings.template.json Adds TypeScript SDK configuration

@hardfist hardfist merged commit f36ee36 into main Aug 7, 2025
4 checks passed
@hardfist hardfist deleted the ext-ra branch August 7, 2025 08:50
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.

3 participants