Skip to main content

Settings

Open Settings (Ctrl+,, or Cmd+, on macOS) and search for FossID, or edit settings.json directly.

Connection​

SettingDefaultDescription
fossid.server.url(empty)Address of your FossID server. Set by the sign-in window, which starts on https://api.scan.fossid.app while the setting is empty. Administrators can pre-set it in workspace settings, which locks it in the sign-in window; see For administrators. Workspace settings are ignored in an untrusted workspace (Restricted Mode).

Automatic scanning​

SettingDefaultDescription
fossid.autoScan.enabledtrueMaster switch for automatic scanning. When off, opening, saving or switching to a file doesn't scan it. The FossID scan commands still work.
fossid.autoScan.onOpentrueScan a file when it is opened.
fossid.autoScan.onSavetrueScan a file when it is saved.
fossid.autoScan.onFocustrueScan a file when it becomes the active editor. Unchanged files aren't scanned again.
fossid.autoScan.onDiskChangetrueScan a file when it changes on disk outside the editor, for example when a coding agent writes it. Files that git ignores aren't scanned. Not in untrusted workspaces.
fossid.autoScan.diskChangeBurstLimit25The most files FossID scans automatically when they change on disk within 2 seconds. When more change, for example after a checkout or an install, FossID scans them when you click the status bar item.

Scan limits​

SettingDefaultDescription
fossid.scan.timeoutSeconds1800How long Scan Workspace may go without progress before it reports a timeout (60–43200). Each progress update restarts the timer.
fossid.scan.depResolveTimeoutSeconds300Time limit for each dependency resolution step when a manifest is scanned as you open, save or rescan it (30–1800). Raise it for very large manifests.

Detection rules​

The detection rules aren't VS Code settings. Set them in the Detection Rules editor, which saves them to your policy. See Where the settings are stored.

Earlier versions of FossID also read fossid.detectionRules.* settings. They have no effect now. If you set one, set the rule in the Detection Rules editor instead.

Local ports​

FossID's two servers listen only on 127.0.0.1. Change these only if the ports clash with something else on your machine. If a port is taken, FossID picks a free one automatically and updates the assistant configuration files. Reload the window after changing them.

Use a whole number from 1 to 65535, or 0 to let FossID pick any free port each time it starts. Other values can stop that server from starting (see Troubleshooting). To go back to the default, select Reset Setting from the gear icon next to the setting; entering the default number yourself works the same way.

SettingDefaultDescription
fossid.port39814Preferred port of the fossid-editor server (editor actions).
fossid.mcpPort39815Preferred port of the fossid-mcp server (the scanner).