Skip to content

feat: support sftool stub bin and config - #53

Merged
HalfSweet merged 2 commits into
mainfrom
feat/sftool-stub-config
Jun 16, 2026
Merged

feat: support sftool stub bin and config#53
HalfSweet merged 2 commits into
mainfrom
feat/sftool-stub-config

Conversation

@HalfSweet

Copy link
Copy Markdown
Collaborator

feat: support sftool stub bin and config

Copilot AI review requested due to automatic review settings June 11, 2026 08:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds support for configuring an external sftool stub binary and/or stub_config JSON at the workspace level, exposes the configuration via a new command and sidebar entry, and injects the resulting flags into the generated sftool download command.

Changes:

  • Introduce buildSftoolStubArgs helper and unit tests for generating --stub / --stub-config flags.
  • Persist stub bin / config paths in WorkspaceStateService, add a new “Configure sftool Stub” command + QuickPick UI, and surface status in the sidebar.
  • Append configured stub arguments into the sftool download command construction.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/utils/sftoolCommandUtils.ts New helper for quoting and building sftool stub-related CLI args.
src/test/sftoolCommandUtils.test.ts Unit tests covering stub-arg construction behavior.
src/services/workspaceStateService.ts Add workspace state fields/keys + getters/setters for stub bin/config paths.
src/services/boardService.ts Inject stub args into the generated sftool download command.
src/providers/sifliSidebarProvider.ts Add sidebar item + status/tooltip for current stub configuration and refresh triggers.
src/extension.ts Register new extension.configureSftoolStub command.
src/commands/configCommands.ts Implement QuickPick-driven configuration flow for stub settings.
package.json Contribute the new command to VS Code.
package.nls.json Localized title for the new command (en).
package.nls.zh-cn.json Localized title for the new command (zh-cn).
l10n/bundle.l10n.json Runtime string localizations for the new stub UI (en).
l10n/bundle.l10n.zh-cn.json Runtime string localizations for the new stub UI (zh-cn).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/utils/sftoolCommandUtils.ts Outdated
Comment on lines +6 to +8
export function quoteSftoolCommandArg(value: string): string {
return `"${value}"`;
}
@HalfSweet
HalfSweet force-pushed the feat/sftool-stub-config branch from 08ad1a8 to 4850bb4 Compare June 11, 2026 08:34
@HalfSweet
HalfSweet force-pushed the feat/sftool-stub-config branch from 4850bb4 to 18021ef Compare June 11, 2026 08:37
@HalfSweet
HalfSweet merged commit e35e46f into main Jun 16, 2026
5 checks passed
@HalfSweet
HalfSweet deleted the feat/sftool-stub-config branch June 16, 2026 07: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.

[Feature]让SDK CodeKit支持sftool 配置外部 stub到自定义bin配置来支持默认bin不支持的NOR Flash

2 participants