<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zyrn</title>
    <description>The latest articles on DEV Community by Zyrn (@zyrndotio).</description>
    <link>https://dev.to/zyrndotio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4117868%2Fb86c939a-8422-4548-83dd-66e1ab4b6e7d.jpg</url>
      <title>DEV Community: Zyrn</title>
      <link>https://dev.to/zyrndotio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zyrndotio"/>
    <language>en</language>
    <item>
      <title>I Built a VS Code Copilot Extension with Bun That Refuses to Write Code For Me</title>
      <dc:creator>Zyrn</dc:creator>
      <pubDate>Tue, 01 Dec 2026 23:09:29 +0000</pubDate>
      <link>https://dev.to/zyrndotio/i-built-a-vs-code-copilot-extension-with-bun-that-refuses-to-write-code-for-me-16o5</link>
      <guid>https://dev.to/zyrndotio/i-built-a-vs-code-copilot-extension-with-bun-that-refuses-to-write-code-for-me-16o5</guid>
      <description>&lt;p&gt;Every developer knows this exact headache: your compiler throws a red squiggle on &lt;strong&gt;Line 38&lt;/strong&gt;, you jump down to Line 38, and... it’s completely blank. Or it’s a single closing &lt;code&gt;}&lt;/code&gt; that looks totally fine.&lt;/p&gt;

&lt;p&gt;Nine times out of ten, the real culprit is a missing brace, an unclosed parenthesis, or a forgotten &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt; 25 lines higher up that cascaded all the way down the file.&lt;/p&gt;

&lt;p&gt;I wanted a fast way to hunt down these "phantom" errors inside VS Code without scrolling up and down counting brackets—&lt;strong&gt;but I didn't want another AI tool that silently rewrites my code for me.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Lately, I've been focusing on sharpening my web development fundamentals (&lt;code&gt;TypeScript&lt;/code&gt;, &lt;code&gt;JavaScript&lt;/code&gt;, &lt;code&gt;HTML&lt;/code&gt;, &lt;code&gt;CSS&lt;/code&gt;, &lt;code&gt;Java&lt;/code&gt;). When you're actively building and retaining your coding skills, letting an AI auto-fix every syntax slip robs you of the debugging intuition you actually need.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Ghost Trace&lt;/strong&gt; (&lt;code&gt;#ghostTrace&lt;/code&gt; / &lt;code&gt;@trace&lt;/code&gt;)—and &lt;strong&gt;v0.3.0&lt;/strong&gt; is now live on the Visual Studio Code Marketplace!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Install on VS Code Marketplace:&lt;/strong&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=Zyrndotio.ghost-trace" rel="noopener noreferrer"&gt;Vscode Marketplace&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source Code (MIT License):&lt;/strong&gt; &lt;a href="https://github.com/zyrndotio/Ghost-Trace" rel="noopener noreferrer"&gt;Github&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Quick Install in VS Code
&lt;/h2&gt;

&lt;p&gt;Search &lt;strong&gt;&lt;code&gt;ghost-trace&lt;/code&gt;&lt;/strong&gt; (&lt;code&gt;Zyrndotio&lt;/code&gt;) directly in your VS Code Extensions sidebar, or press &lt;code&gt;Ctrl + P&lt;/code&gt; (&lt;code&gt;Cmd + P&lt;/code&gt; on macOS) and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ext install Zyrndotio.ghost-trace
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  What Ghost Trace Does
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Ghost Trace&lt;/strong&gt; hooks into GitHub Copilot Chat to trace cascading syntax and structural bugs back to their true origin—across any language supported by VS Code diagnostics.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Multi-File Tracing (Including Closed Files):&lt;/strong&gt; In &lt;strong&gt;v0.3.0&lt;/strong&gt;, you don't even need files open in editor tabs. Pin or attach one or more files in Copilot Chat (using &lt;code&gt;#file&lt;/code&gt; or the paperclip icon), ask &lt;code&gt;@trace&lt;/code&gt; or &lt;code&gt;#ghostTrace&lt;/code&gt; to investigate, and it analyzes all of them together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Structured, Per-File Breakdowns:&lt;/strong&gt; Instead of dumping a wall of text, Ghost Trace organizes its response under clean per-file sections covering &lt;strong&gt;Overview&lt;/strong&gt;, &lt;strong&gt;Status&lt;/strong&gt;, &lt;strong&gt;Root-Cause Location&lt;/strong&gt;, &lt;strong&gt;Cascade Explanation&lt;/strong&gt;, and &lt;strong&gt;Fix Guidance&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guidance-First, Zero Auto-Edits:&lt;/strong&gt; Ghost Trace is strictly read-only—it never edits or applies changes to your workspace files. It shows you &lt;em&gt;where&lt;/em&gt; and &lt;em&gt;why&lt;/em&gt; the error cascaded so you fix it yourself and actually retain the skill.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-File Clickable Line-Jump Links &amp;amp; Follow-Ups:&lt;/strong&gt; Referenced line numbers render as interactive &lt;code&gt;[Line X]&lt;/code&gt; links. Clicking one opens that file (even if it was closed), jumps your cursor straight to the root-cause line, and briefly highlights it—followed by one-click learning prompts about error cascades and prevention.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Under the Hood: Bun + VS Code Language Model Tools
&lt;/h2&gt;

&lt;p&gt;Since I dislike heavy &lt;code&gt;npm&lt;/code&gt;/&lt;code&gt;yarn&lt;/code&gt; boilerplate for developer tools, I built the entire project with &lt;strong&gt;Bun&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;10ms Builds:&lt;/strong&gt; &lt;code&gt;bun build&lt;/code&gt; bundles the TypeScript extension straight to CommonJS (&lt;code&gt;--target=node --format=cjs --external=vscode&lt;/code&gt;) in milliseconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modern Copilot Architecture:&lt;/strong&gt; Alongside the &lt;code&gt;@trace&lt;/code&gt; chat participant, Ghost Trace registers a native &lt;strong&gt;Language Model Tool (&lt;code&gt;#ghostTrace&lt;/code&gt; / &lt;code&gt;ghost_trace_diagnose&lt;/code&gt;)&lt;/strong&gt; via &lt;code&gt;vscode.lm.registerTool&lt;/code&gt; so VS Code's Copilot Agent harness can invoke it directly—supporting optional &lt;code&gt;filePaths&lt;/code&gt; (workspace-relative or absolute) and &lt;code&gt;targetLine&lt;/code&gt; inputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is a look at how Ghost Trace captures numbered file contents alongside live diagnostics before handing context to the model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;diagnostics&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vscode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;languages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getDiagnostics&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;errorList&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;diagnostics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
  &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;diagnostics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`- Line ${d.range.start.line + 1}: [${d.source || 'Compiler'}] ${d.message}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'No active compiler errors detected in this file.'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;numberedCode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lineText&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;idx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`${idx + 1}: ${lineText}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Try It Out &amp;amp; Share Feedback
&lt;/h2&gt;

&lt;p&gt;Ghost Trace is open source under the &lt;strong&gt;MIT License&lt;/strong&gt;, and I'm planning to keep expanding it with editor gutter markers and targeted structural checks in future releases.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Install from Marketplace:&lt;/strong&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=Zyrndotio.ghost-trace" rel="noopener noreferrer"&gt;Ghost Trace on VS Code Marketplace&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/zyrndotio/Ghost-Trace" rel="noopener noreferrer"&gt;Github&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portfolio &amp;amp; Other Projects:&lt;/strong&gt; &lt;a href="https://github.com/zyrndotio" rel="noopener noreferrer"&gt;Github Profile&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've ever wasted ten minutes hunting down a missing &lt;code&gt;}&lt;/code&gt; or &lt;code&gt;&amp;lt;/div&amp;gt;&lt;/code&gt; on a blank line, install it, give it a spin, and let me know in the comments what features or languages I should tackle next!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>typescript</category>
      <category>opensource</category>
      <category>firstpost</category>
    </item>
  </channel>
</rss>
