PropDev
A lightweight Visual Studio Code extension (Devson1024.propdev) that adds a View Properties option to the Explorer context menu and displays a Windows-inspired properties panel backed by real filesystem metadata.
Features
- Explorer Context Menu Integration: Right-click any local file or folder in the Explorer and select View Properties.
- File Metadata:
- Identification: Name, file type, extension, and extension-inferred MIME type (explicitly labeled as not content-verified).
- Location: Clickable parent directory (opens in system file manager) and clickable full path (reveals in system file manager).
- Size: Exact byte count and human-readable size without reading file contents.
- Dates: Distinct creation (
birthtime), modification (mtime), access (atime), and metadata/status change (ctime) timestamps.
- Attributes: Hidden status, read-only status, symbolic link status (
lstat), permissions, and platform-supported owner info.
- Folder Metadata & Recursive Analysis:
- Non-blocking asynchronous traversal using
fs.promises.opendir with bounded concurrency.
- Live progress updates for total size, file count, and subfolder count.
- Cancellation support (
Cancel button / AbortController).
- Partial-result reporting when inaccessible or missing entries are encountered.
- Symbolic links are detected and not followed during recursive scans.
- Interactive Actions:
- One-click copy buttons with confirmation for filename, directory path, full path, file extension, and exact byte size.
- In-panel Refresh (re-queries the live filesystem without stale caching) and Close actions.
- Theme-Aware & Secure Webview:
- Adapts to Light, Dark, and High-Contrast VS Code themes.
- Enforces a strict Content Security Policy with nonce-based script execution, HTML escaping, and host-side message validation.
Screenshots
Screenshots are not included in this repository yet. After launching the extension in VS Code or Google Antigravity, right-click any file or folder in the Explorer and choose View Properties to view the properties panel.
Commands
| Command ID |
Title |
Context |
fileProperties.view |
View Properties |
Explorer context menu (resourceScheme == 'file') |
fileProperties.test |
PropDev: Test Activation |
Command Palette (diagnostic activation check) |
Installation
From VSIX Package
- Build or obtain
PropDev-0.1.0.vsix.
- In VS Code (or Google Antigravity):
- Open the Extensions view (
Ctrl+Shift+X).
- Open the
... menu in the top-right corner and select Install from VSIX....
- Choose
PropDev-0.1.0.vsix.
- Alternatively, install via CLI if
code is on your PATH:
code --install-extension PropDev-0.1.0.vsix
Development
Prerequisites
- Node.js (tested with v24.22.0)
- npm (tested with 11.19.1)
Setup & Build
npm install
npm run compile
npm run check-types
Running Tests
npm test
Packaging VSIX
npm run package
This generates PropDev-0.1.0.vsix in the project root.
Debugging
Open the workspace in VS Code and press F5 (or run the Run Extension launch configuration in .vscode/launch.json) to launch an Extension Development Host.
- Windows 10/11: Tested on Windows with VS Code
1.148.0.
- Linux & macOS: Designed with cross-platform Node.js filesystem APIs (
lstat, opendir, access) and POSIX mode/UID/GID support, though automated testing in this workspace was executed on Windows only.
Known Limitations
- Local Filesystem Only: Only
file:// resources are supported; virtual or remote workspace schemes are rejected.
- Owner & Detailed ACLs on Windows: Node.js
fs APIs do not expose Windows SIDs or NTFS ACLs. On Windows, owner information is reported as "Not available on this platform" and detailed ACLs are marked unsupported (readable, writable, and read-only checks still reflect real fs.access results).
- Hidden Attribute: Hidden status is determined by leading-dot naming conventions (
.filename); Windows-specific FILE_ATTRIBUTE_HIDDEN flags are not queried without native/shell calls.
- MIME Detection: MIME types are inferred from file extensions only, not from file content inspection.
- Symbolic Links: Symbolic links are detected via
lstat and are not followed during recursive folder calculations.
License
Licensed under the MIT License.
| |