macOS: Password Prompt and Unnecessary Package Reinstall in VS Code Tizen Extension

Original Created Apr 27, 2026 | Regeneration Apr 27, 2026

Environment:

  • Extension: tizen.vscode-tizen-csharp v10.3.0
  • OS: macOS (Apple Silicon)
  • VS Code: Latest stable version

Issues:

  1. On every VS Code launch, a macOS system password dialog (osascript) appears requesting administrator privileges
  2. A notification "⏳ Installing tizen dev packages..." appears, reinstalling already installed packages

This occurs even when no Tizen project is open, making the extension inconvenient for persistent use.

Root Cause Analysis:

  1. The SDB server start unnecessarily requires admin privileges on macOS:

    • The startSDBServer() method in server/dist/index.js uses osascript with admin privileges
    • However, sdb start-server works fine without elevation
  2. Dev package installation runs unconditionally on every launch:

    • activate() in extension.ts calls initializeServerAsync(), which triggers startInstallDevPkgsWithNotification()
    • No check exists for already installed packages

Expected Behavior:

  • sdb start-server shouldn't require admin privileges on macOS
  • Dev package installation should skip if packages exist
  • Extension should avoid heavy initialization without Tizen projects

Problem Understanding

The VS Code Tizen extension was causing two main issues on macOS:

  1. Unnecessary admin privilege requests for SDB server startup
  2. Redundant package installations on every launch

Solution Methods

  1. Official Fix:

    • Update to extension version 10.3.1 which resolves the package reinstallation issue
    • The update should automatically appear in VS Code's extension marketplace
  2. Temporary Workaround:

    • Modify the extension files manually:
      // In .tizen-extension-platform/server/dist/index.js
      async function shellFileUpdate(shellFile, key, value) {
        return; // Prevent modifying shell rc files
      }
      
      if (false && getOSType() === Constants.OS_TYPE.MACOS) // Disable macOS-specific admin requirement
      

Additional Tips

  • If the update doesn't appear immediately, check back later as extension updates may take time to propagate
  • For persistent issues, consider reporting them through the official GitHub repository
  • When modifying extension files manually, remember that changes may be overwritten by future updates

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.