Skip to content

chore: show binPath in statusBar#268

Merged
hardfist merged 1 commit intomainfrom
status-path
Aug 15, 2025
Merged

chore: show binPath in statusBar#268
hardfist merged 1 commit intomainfrom
status-path

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

@hardfist hardfist commented Aug 15, 2025

show binPath in statusBar tooltip for better understanding

Copilot AI review requested due to automatic review settings August 15, 2025 02:53
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 15, 2025

Deploy Preview for rslint canceled.

Name Link
🔨 Latest commit 50be890
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/689ea4932794bd0008e1d54f

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 enhances the VS Code extension's status bar to display the currently configured binary path for better user visibility and debugging. The change replaces the generic "rslint" text with a more informative display that shows which binary is being used.

  • Replaces the static status bar text with dynamic content showing the configured binPath
  • Removes the warning background color styling from the status bar
  • Imports the RslintBinPath type for proper type safety

const binPathConfig = vscode.workspace
.getConfiguration()
.get<RslintBinPath>('rslint.binPath')!;
statusBar.text = `Rslint(${binPathConfig})`;
Copy link

Copilot AI Aug 15, 2025

Choose a reason for hiding this comment

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

Using the non-null assertion operator (!) assumes the configuration value will always exist. Consider handling the case where 'rslint.binPath' is undefined to prevent potential runtime errors.

Suggested change
statusBar.text = `Rslint(${binPathConfig})`;
.get<RslintBinPath>('rslint.binPath');
statusBar.text = `Rslint(${binPathConfig ?? 'not set'})`;

Copilot uses AI. Check for mistakes.
@hardfist hardfist merged commit 56acd16 into main Aug 15, 2025
12 checks passed
@hardfist hardfist deleted the status-path branch August 15, 2025 03:09
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