Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: ['**']
pull_request:
workflow_dispatch:

# Cancel an in-progress run when a newer commit is pushed to the same ref.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Covers the three supported targets: Linux x64, Windows x64,
# and macOS arm64 (macos-14 runners are Apple Silicon).
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- run: npm ci

# `npm test` runs pretest (tsc compile + eslint) and then the VS Code
# extension test host. Linux runners are headless, so wrap in xvfb.
- name: Test (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm test

- name: Test (Windows / macOS)
if: runner.os != 'Linux'
run: npm test
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@ dist
node_modules
.vscode-test/
*.vsix
extension.js
extension.js

# Local agent / editor state
.claude/
.codex

# Local docs
CLAUDE.md
PUBLISHING.md
3 changes: 3 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ tsconfig.json
esbuild.js
webpack.config.js
.eslintrc.json
eslint.config.mjs
.claude/**
.codex
**/*.vsix
.git/**
*.log
Expand Down
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

All notable changes to the "zephyr-tools" extension will be documented in this file.

### [0.6.1] - 2026-06-20

**Fixed:**
- Windows: the Zephyr SDK no longer installs under a path containing a space (e.g. `C:\Users\Jared Wolff\.zephyrtools`), which broke linking — GCC emits its built-in library search paths unquoted, so `ld` split the `-L` flag at the space and failed with "cannot find ...". When the home directory contains a space, the default install location now falls back to a space-free path at the root of the home drive (e.g. `C:\.zephyrtools`)
- Setup now refuses an install path containing a space on Windows with a clear message, instead of failing cryptically deep in the build

### [0.6.0] - 2026-06-20

**Added:**
- Zephyr SDK 1.0 support, including its new `gnu/<triple>` toolchain layout
- SDK management decoupled from Setup — multiple SDK versions coexist and the version each workspace's Zephyr tree requires is selected automatically
- "Install SDK" command — installs the SDK version the current tree requires, with no version prompt
- "Manage SDKs" command — list installed SDKs, switch the active one per workspace, uninstall, or install another version
- Init Repo now installs the required SDK automatically as its final step
- "Install Python Requirements" command — reinstall the tree's Python dependencies without a full `west update`
- `Update Dependencies` now re-resolves the SDK and refreshes Python requirements after `west update`, keeping the venv in sync across Zephyr version changes
- Python requirements installed via `west packages pip --install` (covers all west modules), falling back to `zephyr/scripts/requirements.txt` on older trees
- Workspace-scoped `zephyr-tools.paths.sdkInstallDir` setting and an SDK row in the sidebar's Project Settings

**Fixed:**
- SDK compatibility now respects each SDK's minimum-compatible floor — SDK 1.0 correctly refuses Zephyr trees requesting < 1.0, and a compatible installed SDK is auto-selected instead
- SDK 1.0 toolchain is extracted to the correct `gnu/` location; toolchain bin-path resolution is layout-aware (Linux/Windows/macOS)
- An SDK's toolchain payload is verified present (not just its version) before it is considered usable, so incomplete installs are repaired rather than failing deep in CMake
- SDK problems no longer mark host setup as incomplete; `isSetup`/`isInit` self-heal when host tools and an initialized tree are present on disk — fixes spurious "Run setup first" and a fully-cloned project being mislabeled "Incomplete Project Found"
- `ZEPHYR_BASE` is persisted during init and resolved robustly, so the SDK compatibility check no longer silently skips
- Removed the global `ZEPHYR_SDK_INSTALL_DIR` fallback that could resurrect an uninstalled SDK; the legacy value is migrated to the workspace setting

**Technical Changes:**
- Manifest version bumped to 20; download checksums migrated from md5 to sha256
- Shared download engine extracted to `download-processor.ts`
- Migrated test runner from `vscode-test` to `@vscode/test-electron`; dependency updates
- Added unit tests for SDK version/layout logic and a GitHub Actions CI matrix (Linux, Windows, macOS arm64)
- Cleared dependency advisories: bumped `esbuild` to 0.28.1 and overrode `js-yaml` to `>=4.2.0` (build/test-only dependencies)

### [0.5.25] - 2026-05-14

**Added:**
- Show `log_dictionary.json` under Build Assets in the sidebar when present in the build output

**Fixed:**
- Build assets now discovered via file search instead of hardcoded chip path — fixes missing assets for native_sim, sysbuild, and other non-nRF91 board configurations

### [0.5.24] - 2026-05-08

**Added:**
Expand Down
Loading
Loading