Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 38 additions & 0 deletions .github/workflows/package-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Package Validation

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
validate:
runs-on: [self-hosted]

steps:
- uses: actions/checkout@v4

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

- name: Install VS Code test dependencies
if: runner.os == 'Linux'
run: |
if ! dpkg -s libgbm1 xvfb >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y libgbm1 xvfb
fi

- run: npm ci
- run: npm run compile
- run: npm run lint
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- run: npx @vscode/vsce package --no-dependencies
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode/**
.github/**
.vscode-test/**
src/**
.gitignore
Expand All @@ -8,4 +9,5 @@ vsc-extension-quickstart.md
**/eslint.config.mjs
**/*.map
**/*.ts
out/test/**
**/.vscode-test.*
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

Notable changes to Tree Generator are listed by release.

## [0.4.0] - 2026-08-13

### Added

- Extension icon and Marketplace package metadata.
- Markdown target diagnostics and one-click tree block setup.
- Markdown target, output style, and maximum depth controls in the Webview.
- Undo and redo for tree ordering, exclusions, descriptions, and bulk actions.
- Root `.tree-generatorignore` support independent of `.gitignore` settings.
- Directory-level metadata reset.
- Package validation workflow for a self-hosted GitHub Actions runner.

## [0.3.0] - 2026-08-12

### Added
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ tree-generator/
- Directory-first alphabetical scanning with `.gitignore` support.
- Drag-and-drop ordering, descriptions, and manual exclusions.
- Search and directory-wide include or exclude actions.
- Automatic refresh when files, folders, or `.gitignore` files change.
- Undo and redo for tree editing, plus per-directory reset.
- Automatic refresh when files, folders, or ignore files change.
- Unicode or ASCII output with an optional maximum depth.
- Output settings and Markdown setup diagnostics in the Webview.
- Tree-only exclusions through a root `.tree-generatorignore` file.
- Project metadata persistence in `.tree-generator.json`.
- Multi-root workspace folder selection.

## Quick Start

1. Install [Tree Generator](https://marketplace.visualstudio.com/items?itemName=dldyou.tree-generator-dldyou) and open a workspace.
2. Run `Tree Generator: Open Tree Editor` from the Command Palette.
3. Edit the tree, then copy the preview or enable automatic Markdown updates.
3. Edit the tree, configure the output, then copy the preview or enable automatic Markdown updates.

To update a Markdown file automatically, add this block after removing the backslashes from the comments:
Use **Set up Markdown** in the editor to create the target file or append the required tree block. The generated block has this form:

````md
<\!-- tree-generator:start -->
Expand Down
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tree-generator-dldyou",
"displayName": "Tree Generator",
"description": "Generate project tree for README.md",
"version": "0.3.0",
"version": "0.4.0",
"repository": {
"type": "git",
"url": "https://github.com/dldyou/tree-generator.git"
Expand All @@ -15,6 +15,7 @@
],
"activationEvents": [],
"main": "./out/extension.js",
"icon": "images/icon.png",
"bin": {
"tree-generator": "./out/cli.js"
},
Expand Down
Loading
Loading