agentleFS
Microsoft AzureKnown publisherAzure/LogicAppsUX/libs/vscode-extension/CLAUDE.md

LogicAppsUX / vscode-extension

CLAUDE.md114 starsChanged 5 months agoMITView on GitHub

Shared utilities and services for the Logic Apps VS Code extension. Provides common functionality used by both the extension host and webviews. Package: @microsoft/vscode-extension-logic-apps Read libs/vscode-extension/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read libs/vscode-extension/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- AUTO-GENERATED from docs/ai-setup/packages/vscode-extension.md. DO NOT EDIT directly. -->

VS Code Extension Library

Shared utilities and services for the Logic Apps VS Code extension. Provides common functionality used by both the extension host and webviews.

Package: @microsoft/vscode-extension-logic-apps

Purpose

  • Shared utilities - Common functions for VS Code integration
  • Message protocol - Extension ↔ webview communication
  • Service implementations - VS Code-specific service adapters
  • Type definitions - Shared types for extension development

Commands

pnpm run build:lib   # Build library
pnpm run test:lib    # Run unit tests

Architecture

Entry Point

src/index.ts exports all public APIs.

Structure

/src/lib
  /helpers/          - Utility helper functions
  /models/           - Shared types, extension commands, workflow models
  /services/         - Service implementations

Key Features

Extension Commands

Command constants defined in src/lib/models/extensioncommand.ts:

import { ExtensionCommand } from '@microsoft/vscode-extension-logic-apps'

// Command identifiers (examples)
ExtensionCommand.initialize
ExtensionCommand.loadRun
ExtensionCommand.dispose

Webview Communication

The VS Code webviews communicate via the standard acquireVsCodeApi() pattern:

// In webview (vs-code-react)
const vscode = acquireVsCodeApi()
vscode.postMessage({ command: ExtensionCommand.initialize, data: payload })

// In extension host (vs-code-designer)
panel.webview.onDidReceiveMessage((msg) => {
  switch (msg.command) {
    case ExtensionCommand.initialize: // handle...
  }
})

Service Adapters

VS Code-specific service implementations adapt designer services for the extension environment. See apps/vs-code-react/src/app/designer/servicesHelper.ts.

Usage

In Extension Host (vs-code-designer)

The extension host creates webview panels and handles message passing with the VS Code API directly.

In Webview (vs-code-react)

// Communication via acquireVsCodeApi (see apps/vs-code-react/src/webviewCommunication.tsx)
const vscode = acquireVsCodeApi()
vscode.postMessage({ command: 'save_workflow', data: workflow })

Dependencies

  • @microsoft/logic-apps-shared - Core utilities
  • VS Code API types (@types/vscode)
  • Azure SDK packages

Development Tips

  1. Type safety: Define message types clearly
  2. Error handling: Catch and report errors properly
  3. Async operations: Handle VS Code's async nature
  4. Testing: Mock VS Code APIs for unit tests

Graphify

Read libs/vscode-extension/src/graphify-out/GRAPH_REPORT.md for structural context (god nodes, communities, surprising connections).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.