惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
有赞技术团队
有赞技术团队
博客园 - 司徒正美
量子位
N
News and Events Feed by Topic
T
Threatpost
Last Week in AI
Last Week in AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
酷 壳 – CoolShell
酷 壳 – CoolShell
C
CERT Recently Published Vulnerability Notes
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
Intezer
人人都是产品经理
人人都是产品经理
T
Tenable Blog
IT之家
IT之家
雷峰网
雷峰网
腾讯CDC
博客园 - 聂微东
V
Visual Studio Blog
S
SegmentFault 最新的问题
Scott Helme
Scott Helme
Spread Privacy
Spread Privacy
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
N
Netflix TechBlog - Medium
J
Java Code Geeks
宝玉的分享
宝玉的分享
F
Full Disclosure
WordPress大学
WordPress大学
A
Arctic Wolf
小众软件
小众软件
AWS News Blog
AWS News Blog
Attack and Defense Labs
Attack and Defense Labs
NISL@THU
NISL@THU
AI
AI
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
N
News | PayPal Newsroom
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

Hacker News

Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line Building a Z-Machine in the worst possible language High-Level Rust: Getting 80% of the Benefits with 20% of the Pain GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The air throughout our homes is infused with microplastics. But there are things you can do to breathe less of them The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong Artemis II crew splashes down near San Diego after historic moon mission We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Cooperative Vectors Introduction | Evolve Keeping a Postgres queue healthy — PlanetScale Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? The Zettelkasten Method in Obsidian: A Practical Setup Guide Artemis II Is Competency Porn and We Are Starving For It WeakC4 Flight Viz — Cockpit View A Mexican surveillance giant you’ve never heard of is now watching the U.S. border Surelock: Deadlock-Free Mutexes for Rust RISC-V 101 – what is it and what does it mean for Canonical? | Ubuntu The Problem That Built an Industry How Much Linear Memory Access Is Enough? | Solidean Investigating Split Locks on x86-64 Simplest hash functions Sybilproof reputation mechanisms (2005) [pdf] What is a property? How Complex is my Code? Static code analysis in Kotlin — tools overview Toffoli gates are all you need PGLite evangelism dcmake: a new CMake debugger UI Clojure on Fennel part one: Persistent Data Structures Fragments: April 2 Python Release Python install manager 26.1 The Life and Death of the Book Review - Liberties Introducing Database Traffic Control — PlanetScale Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Building slogbox Apple Silicon and Virtual Machines: Beating the 2 VM Limit Who was “Not Even Wrong” first? Pokemon Evolution Vs Darwinian Evolution The APL Programming Language Source Code
GitHub - WilliamSmithEdward/xlide_vscode: Excel VBA integration for VS Code - Tree View / Full Direct VBA Read+Write / LiveShare Compatible / Direct Agentic AI Integrations
sts153 · 2026-05-27 · via Hacker News

Edit Excel VBA projects directly in VS Code. XLIDE turns macro workbooks into first-class development projects: browse workbook modules, edit writable xlide-vba documents, use Smart Enter and IntelliSense, run deterministic analysis, sync modules with files, execute macros and workbook tests through Excel when needed, and give AI agents workbook-aware tools.


Highlights of What's New In Version 2

Version 2 turns XLIDE from a workbook module browser into a fuller VBA development environment for VS Code:

  • Dedicated XLIDE Activity Bar/sidebar with setup health, selected-workbook actions, global settings, and support commands.
  • Expanded deterministic VBA language service: Smart Enter, block snippets, completions, hover, signature help, semantic type coloring, navigation, rename, and focused code actions.
  • Live, current-module, and workbook-wide analysis with stable rule codes, severity controls, suppressions, workbook/global settings, and a dedicated analysis results panel.
  • Stronger project-aware understanding for visible identifiers, type names, source-backed class members, UDT fields, known runtime signatures, and the first generated Excel host-member surfaces.
  • Previewable import/export sync for workbook modules, backed by the current <workbook>.xlide_settings.json sidecar model.
  • Workbook test runner for marked @xlide-test procedures, including XlideAssert, read-only Excel test execution, artifacts, and CI status output.
  • AI-agent tools for workbook discovery, VBA reads/writes, analysis, tests, sheet/cell I/O, formula reads, module export, and openpyxl automation.
  • Safety and support hardening: explicit workbook mutation, write summaries, settings validation, support bundles, setup diagnostics, and recovery notes.

Start Here

If you are new to using XLIDE, start with the user guides:

Need Guide
First setup and first workbook workflow Getting started
Diagnostics, analysis results, and ignores Analysis and ignores
Import/export and module sync Import and export
Writing and running workbook tests Testing VBA workbooks
AI-agent and CI workflows Automation and CI
Trust model, Excel setup, support bundles, and recovery Safety, trust, and support
Guide index User guides README

The sections below are primarily for extension contributors and packagers.


What XLIDE Does

  • Opens .xlsm, .xlsb, and .xlam VBA modules as editable VS Code documents.
  • Saves module edits back to the workbook with normal VS Code save behavior.
  • Provides VBA syntax highlighting, Smart Enter, block snippets, completions, hover, signature help, Go to Definition, Find All References, Rename Symbol, semantic type coloring, and deterministic code actions where XLIDE can prove the edit.
  • Runs live diagnostics, current-module analysis, and workbook-wide analysis with stable rule codes, severity controls, suppressions, and a dedicated analysis results panel.
  • Imports and exports workbook modules through previewable sync GUIs so .bas and .cls files can be reviewed or source-controlled.
  • Runs macros and marked workbook tests through explicit Excel COM workflows on Windows.
  • Exposes workbook discovery, module editing, analysis, tests, sheet/cell I/O, formula reads, module export, and openpyxl automation as VS Code language model tools.
  • Keeps setup health, global settings, workbook actions, and support commands discoverable from the XLIDE Activity Bar view.

Requirements

  • VS Code 1.95+
  • Python 3.10+ -- the VBA read/write backend runs as a child process
  • Python packages: pyOpenVBA >= 3.0.1, openpyxl >= 3.1.0

Reading, editing, analyzing, importing, exporting, and sheet/cell inspection use the Python backend and do not require Excel COM automation.

Microsoft Excel COM is required for workflows that execute VBA, such as running a macro or running workbook tests. Those execution workflows are Windows-only and require the workbook's macro security state to allow execution.


Development setup

git clone https://github.com/WilliamSmithEdward/xlide_vscode.git
cd xlide_vscode

# TypeScript side
npm install
npm run compile        # type-check + esbuild bundle -> out/extension.js

# Python side (optional venv)
python -m venv .venv
.venv\Scripts\activate   # or: source .venv/bin/activate
pip install -r python/requirements.txt

Press F5 in VS Code to launch an Extension Development Host with the extension loaded and the watch compiler running.


Repository Map

xlide_vscode/
  src/
    extension.ts              # Activation entry point
    pythonBridge.ts           # JSON-RPC client for the Python backend
    xlideFileSystem.ts        # xlide-vba:// writable virtual filesystem
    xlsmExplorer.ts           # Explorer-hosted workbook/module tree
    xlideSidebar.ts           # XLIDE Activity Bar/sidebar webview
    commands.ts               # Workbook, module, analysis, sync, run/test commands
    agentTools.ts             # VS Code language model tool registrations
    workbookSettings.ts       # Strict <workbook>.xlide_settings.json owner
    vbaLanguageProviders.ts   # Editor providers, diagnostics, Smart Enter
    analyzer/                 # Lexer, parser, binder, diagnostics, completion
  python/
    server.py                 # JSON-RPC 2.0 server
    xlide/
      vba_io.py               # pyOpenVBA workbook/module operations
      excel_io.py             # openpyxl sheet/cell/formula operations
  syntaxes/
    vba.tmLanguage.json       # TextMate grammar
  language-configuration/
    vba-language-configuration.json
  user_guides/                # Public user guides
  docs/
    architecture.md           # Full architecture reference
    roadmap_version_2.x.md    # Closed v2 launch-hardening roadmap
    roadmap_version_2.1.0.md  # v2.1.0 red-squiggle roadmap

Key design decisions

Decision Rationale
Long-lived Python process Amortizes Python startup across workbook requests
FileSystemProvider over TextDocumentContentProvider Read/write virtual FS: Ctrl+S triggers writeFile with no custom save command
Virtual URI scheme xlide-vba:// Decouples workbook path + module name from the editor's file concept
Shared workbook settings owner Global settings stay in VS Code; workbook overrides live beside the workbook
Python for workbook I/O, COM only for execution Basic editing and analysis stay portable; macro/test execution uses Excel COM explicitly
Confirmation on write tools Prevents AI agents from silently mutating production workbooks where VS Code supports confirmation

VBA language ID

Registered as vba in package.json with extensions .bas, .cls, .frm. The TextMate grammar in syntaxes/vba.tmLanguage.json is scoped to source.vba and covers all reserved identifiers from MS-VBAL v20250520 (section 3.3.5.2: statement-keywords, marker-keywords, operator-identifiers, reserved-names, special-forms, reserved-type-identifiers, literal-identifiers, def-type directives, and implementation-reserved identifiers).

See docs/architecture.md for the full architecture, Python bridge method list, workbook settings schema, import/export planning, and agent-tool implementation notes.


Build commands

Command Purpose
npm run compile Type-check + dev bundle
npm run watch Incremental type-check + esbuild watch
npm test Run the Vitest test suite
npm run package Production bundle (minified)
npm run vsix Build a versioned .vsix under dist/
npm run test:oracle:vbe Optional Excel/VBE oracle checks for language-behavior evidence

AI Agent Tools

XLIDE contributes VS Code language model tools so Copilot and compatible agents can inspect, edit, analyze, test, and sync workbooks without guessing where VBA source lives. The workbook and xlide-vba virtual modules are the source of truth; exported .bas and .cls files are sync artifacts unless the user asks to work with them directly.

Recommended flow:

  1. Discover the workbook with xlide_listWorkbooks or xlide_getWorkbookInfo.
  2. Read workbook VBA with xlide_readModule.
  3. Write workbook VBA with xlide_writeModule when an edit is approved.
  4. Run xlide_analyzeWorkbook.
  5. Run xlide_runVbaTests when Excel COM is available and workbook tests exist.
Tool family Tools
Workbook discovery and validation xlide_listWorkbooks, xlide_getWorkbookInfo, xlide_validateWorkbook
VBA module discovery and editing xlide_listModules, xlide_listSubs, xlide_readModule, xlide_writeModule, xlide_renameModule, xlide_deleteModule
Analysis and test execution xlide_analyzeWorkbook, xlide_runVbaTests
Workbook and worksheet data xlide_createWorkbook, xlide_listSheets, xlide_readCells, xlide_readFormulas, xlide_writeCells, xlide_runOpenpyxl
Module export/sync xlide_exportModules, xlide_configureExportMode

Most workbook-mutating agent tools request explicit VS Code confirmation before writing modules, cells, files, or workbook settings. See the Automation and CI guide for the supported agent/CI workflow.


Workbook Settings

Workbook-specific settings are stored beside the workbook as <workbook>.xlide_settings.json, for example Budget.xlsm.xlide_settings.json. Prefer the XLIDE import/export, analysis, test, and settings GUIs for normal editing; they preserve unrelated settings and show the effective source of each value.

{
  "exportFolder": "C:/absolute/path/to/export",
  "exportMode": "exportAll",
  "importMode": "updateOnly",
  "analysis": {
    "visibleSeverities": ["error", "warning", "information"],
    "untrackedRules": [],
    "ruleSeverityOverrides": {}
  },
  "tests": {
    "artifactFolder": "tests",
    "artifactRetention": 20
  }
}

Malformed workbook settings are reported as explicit XLIDE settings errors instead of being ignored. Global defaults live in VS Code machine/profile settings; workbook sidecars contain only workbook-specific overrides.


Live Share

XLIDE VBA browsing for Live Share guests is currently not supported. Microsoft's Live Share platform restricts the shared-service RPC channel (vsls.shareService) to extensions on a curated first-party allowlist, so third-party extensions like XLIDE cannot proxy VBA read/write calls from a guest to the host. The XLIDE Explorer therefore returns an empty tree for guests and shows an informational welcome view.

What still works in a Live Share session:

Role XLIDE behavior
Host Full local VBA editing -- open, edit, save .xlsm/.xlsb/.xlam modules exactly as if no session were active.
Guest Can fully view and edit any VBA module the host has open in the editor (Live Share shares those buffers normally). Cannot browse the XLIDE Explorer or open new modules independently -- only the host can navigate and open them. XLIDE panel shows a "not supported" notice.
Guest without XLIDE installed No action needed -- XLIDE is host-only. Joining a session does not require the extension.

Related upstream issue: microsoft/live-share#4877 (third-party shareService allowlist, closed as Not Planned).


Further reading


Support Open Source

XLIDE is open-source software. If it saves you time or helps your team keep VBA workbooks maintainable, support helps keep the project moving.