Skip to content

About

πŸ”— Isar Inspector URL auto-detected from Flutter Debug Console into VS Code status bar.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”— Isar URL Status

Muestra en la barra de estado la URL del Isar Inspector detectada en la Debug Console de Flutter
Displays the Isar Inspector URL from Flutter Debug Console directly in your VS Code status bar

VS Code Marketplace License


πŸ“– Description

Isar URL Status is a lightweight VS Code extension for Flutter developers using Isar. When you run a Flutter app in debug mode, Isar prints a unique Inspector URL like:

https://inspect.isar-community.dev/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

This extension automatically:

  1. πŸ” Detects the URL from the Debug Console output.
  2. πŸ“Œ Shows a clickable πŸ”— Isar Inspector button in the status bar.
  3. πŸš€ Opens the Isar Inspector in your default browser with one click.
  4. 🧹 Hides the button when the debug session ends.

No configuration needed β€” it just works.


✨ Features

Feature Description
πŸ” Auto-detect Captures the Isar Inspector URL from Flutter debug output
οΏ½ Custom server Rewrites the detected URL to your custom/local Isar Inspector server
πŸ–±οΈ One-click open Click the button β†’ opens in your default browser
πŸ“‹ Copy URL Command to copy the Inspector URL to your clipboard
🧼 Auto-clean Strips ANSI escape codes and trailing junk from the URL
🚫 Auto-hide Disappears when the debug session terminates
⚑ Lazy activation Only activates when you start debugging (onDebug)

πŸ–ΌοΈ Screenshot

Isar URL Status en acciΓ³n

Status bar showing the πŸ”— Isar Inspector button with tooltip β€” one click opens the Inspector in your browser.


πŸ“¦ Installation

From VS Code Marketplace (once published)

  1. Open VS Code.
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X).
  3. Search for "Isar URL Status".
  4. Click Install.

From VSIX (local)

  1. Download the .vsix file from Releases.
  2. In VS Code: Extensions β†’ β‹― (More Actions) β†’ Install from VSIX....
  3. Select the file.

From source

git clone https://github.com/chacalcamps/Isar_Url_Status.git
cd Isar_Url_Status
npm install
npm run compile

Then press F5 in VS Code to launch an Extension Development Host.


πŸš€ Usage

  1. Start debugging your Flutter app (the extension activates automatically).
  2. Run your app with Isar enabled β€” the Inspector URL will appear in the Debug Console.
  3. Click the πŸ”— Isar Inspector button in the status bar (bottom-right).
  4. The Isar Inspector opens in your default browser.

That's it. No commands to run, no config to set.

Manual commands

If you prefer, you can also run the commands from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):

  • Open Isar Inspector URL β€” opens the Inspector in your default browser.
  • Copy Isar Inspector URL β€” copies the URL to your clipboard.

🌐 Custom Isar Inspector / Local server

You can point the Inspector to a custom server (e.g. a locally built version of the Inspector) instead of the default inspect.isar-community.dev. The extension can also start the server automatically.

  1. Configure the custom server in settings (Settings β†’ Ctrl+, / Cmd+,):

    • isarUrlStatus.customServerUrl β†’ http://localhost:5050
    • isarUrlStatus.customServerCommand β†’ npx serve build/web -l 5050
    • isarUrlStatus.customServerCwd β†’ <custom-inspector-dir> (e.g. packages/isar_community_inspector)
  2. Run your Flutter app. When the Inspector URL is detected, the extension starts the local server (if not running yet) and rewrites the URL:

    https://inspect.isar-community.dev/3.3.2/#/64777/e0aGj9gzn_o
    β†’ http://localhost:5050/#/64777/e0aGj9gzn_o
    
  3. Click πŸ”— Isar Inspector to open the local URL, or use Copy Isar Inspector URL from the Command Palette to copy it.

πŸ’‘ Set isarUrlStatus.customServerCommand to an empty string to disable auto-start (e.g. if you run the server yourself). Leave isarUrlStatus.customServerUrl empty to use the default Inspector URL.


βš™οΈ Extension Settings

Setting Type Default Description
isarUrlStatus.customServerUrl string "" Custom Isar Inspector server base URL (e.g. http://localhost:5050). When set, detected URLs are rewritten to this server. Empty = use the default Inspector URL.
isarUrlStatus.customServerCommand string npx serve build/web -l 5050 Command to auto-start the custom Inspector server. Runs in customServerCwd. Empty = no auto-start.
isarUrlStatus.customServerCwd string ...isar_community_inspector Working directory for the custom server command.

πŸ”§ Development

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Watch mode
npm run watch

# Package into .vsix (requires vsce)
npx vsce package

Project structure

isar-url-status/
β”œβ”€β”€ src/
β”‚   └── extension.ts          # Extension source code
β”œβ”€β”€ out/                      # Compiled JavaScript
β”œβ”€β”€ package.json              # Extension manifest
β”œβ”€β”€ tsconfig.json             # TypeScript configuration
└── .vscode/
    └── launch.json           # Debug configuration

πŸ§ͺ How it works

The extension uses VS Code's DebugAdapterTracker API to intercept DAP (Debug Adapter Protocol) messages from the Dart debug adapter. It listens for output events and scans them for the Isar Inspector URL regex pattern. When found, the URL is cleaned (ANSI escapes removed) and displayed in the status bar.

// Core detection logic (simplified)
const ISAR_URL_RE = /https:\/\/inspect\.isar-community\.dev\/\S+/;
// β†’ matches output from Flutter's Isar database

πŸ› Known Issues

  • Only works with the Dart/Flutter debug adapter (dart debug type).

πŸ—ΊοΈ Roadmap

  • Support for custom Isar Inspector URLs / local servers.
  • Multi-session support (multiple debug sessions simultaneously).
  • VS Code Marketplace publication.

🀝 Contributing

Contributions are welcome!

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'Add amazing feature').
  4. Push to the branch (git push origin feature/amazing-feature).
  5. Open a Pull Request.

Please ensure your code compiles with npm run compile before submitting.


πŸ€– AI-Assisted Development

This extension was built with significant help from DeepSeek (orchestrated via Reasonix). Every decision β€” architecture, API choice (DebugAdapterTracker), regex design, error handling, CI/CD setup β€” was reviewed and approved by a human. The AI wrote the first pass; the human validated, adjusted, and owned the result.

This is not "vibecoding" β€” no blind copy-paste, no "it compiles, ship it". AI was a pair programmer that drafts fast; the human stays responsible for every line that ships.


πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.


πŸ™ Acknowledgments


Made with ❀️ for the Flutter + Isar community

About

πŸ”— Isar Inspector URL auto-detected from Flutter Debug Console into VS Code status bar.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages