"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.activate = activate; exports.deactivate = deactivate; const vscode = __importStar(require("vscode")); const CLAUDE_ARTIFACTS = ['**/.claude', '**/CLAUDE.md', '**/.claude-plugin']; function activate(context) { const config = vscode.workspace.getConfiguration('josie-rice'); // Apply initial settings if (config.get('hideClaudeArtifacts', true)) { hideClaudeArtifacts(); } if (config.get('hideWindowControls', true)) { hideWindowControls(); } // Register toggle commands context.subscriptions.push(vscode.commands.registerCommand('josie-rice.toggleClaudeArtifacts', async () => { const current = config.get('hideClaudeArtifacts', true); await config.update('hideClaudeArtifacts', !current, vscode.ConfigurationTarget.Global); if (!current) { hideClaudeArtifacts(); } else { showClaudeArtifacts(); } vscode.window.showInformationMessage(`Claude artifacts are now ${!current ? 'hidden' : 'visible'}`); })); context.subscriptions.push(vscode.commands.registerCommand('josie-rice.toggleWindowControls', async () => { const current = config.get('hideWindowControls', true); await config.update('hideWindowControls', !current, vscode.ConfigurationTarget.Global); vscode.window.showInformationMessage(`Window controls will be ${!current ? 'hidden' : 'visible'} after reload. Reload now?`, 'Reload').then(selection => { if (selection === 'Reload') { vscode.commands.executeCommand('workbench.action.reloadWindow'); } }); })); // Listen for configuration changes context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(e => { if (e.affectsConfiguration('josie-rice.hideClaudeArtifacts')) { const hide = config.get('hideClaudeArtifacts', true); if (hide) { hideClaudeArtifacts(); } else { showClaudeArtifacts(); } } })); // Hide Claude name in terminal tabs by using process name instead applyTerminalTabSettings(); } function hideClaudeArtifacts() { const config = vscode.workspace.getConfiguration('files'); const exclude = config.get('exclude') || {}; let updated = false; for (const pattern of CLAUDE_ARTIFACTS) { if (!exclude[pattern]) { exclude[pattern] = true; updated = true; } } if (updated) { config.update('exclude', exclude, vscode.ConfigurationTarget.Global); } } function showClaudeArtifacts() { const config = vscode.workspace.getConfiguration('files'); const exclude = config.get('exclude') || {}; let updated = false; for (const pattern of CLAUDE_ARTIFACTS) { if (exclude[pattern] !== undefined) { delete exclude[pattern]; updated = true; } } if (updated) { config.update('exclude', exclude, vscode.ConfigurationTarget.Global); } } async function applyTerminalTabSettings() { const config = vscode.workspace.getConfiguration('terminal.integrated.tabs'); // Force all terminal tabs to show just "Terminal" as a static name await config.update('title', 'Terminal', vscode.ConfigurationTarget.Global); await config.update('description', '', vscode.ConfigurationTarget.Global); } async function hideWindowControls() { const config = vscode.workspace.getConfiguration('window'); const currentStyle = config.get('titleBarStyle'); // Use native title bar - window controls are then managed by the OS/window manager // On Linux, configure your WM to hide window decorations for a cleaner look if (currentStyle !== 'native') { await config.update('titleBarStyle', 'native', vscode.ConfigurationTarget.Global); vscode.window.showInformationMessage('Title bar set to native. Reload VS Code to apply.', 'Reload').then(selection => { if (selection === 'Reload') { vscode.commands.executeCommand('workbench.action.reloadWindow'); } }); } } function deactivate() { // Cleanup: optionally restore Claude artifacts visibility // We leave the settings as-is since user may want them persisted } //# sourceMappingURL=extension.js.map