.inlayignore file at the project root to stop Inlay from editing selected files. Inlay can still read, search, and reference them. Use it for vendor code, SDKs, and generated output that you want Inlay to consult but not change.
.inlayignore
Write patterns
Patterns use gitignore syntax:
To allow a few files in an otherwise protected directory, protect the directory’s contents rather than the directory itself:
! rule can’t re-allow a file whose parent directory is blocked. config/ followed by !config/public.json keeps public.json protected.
Matching is case-insensitive on macOS and Windows, and case-sensitive on Linux.
Use rules for one package
A.inlayignore in a subdirectory applies to paths below that directory:
packages/legacy/.inlayignore
! rule can allow a path that the root file blocks. When a pattern behaves unexpectedly, check the nested files on the path.
How it relates to .gitignore
The two files are independent:.gitignoredoesn’t protect files from Inlay’s edits. If Git ignores generated output that Inlay shouldn’t change, list it in.inlayignoretoo..inlayignoredoesn’t change what Git tracks, and you can commit it so everyone who opens the project gets the same protection.- In a Git repository, Inlay’s file and text search follow
.gitignore, so ignored files may not appear in search results..inlayignorehas no effect on search. Inlay can still open an ignored file when you name its path.
What is blocked
The block applies in every approval mode, including Skip all approvals. Rules also apply to the target of a symbolic link, so a link inside the project can’t be used to edit a protected file.
To prevent every program from writing to a path, use operating-system permissions or a separate controlled environment.
When an edit is blocked
The action shows Blocked: .inlayignore, and Inlay stops to ask how you want to proceed. There’s no one-time approval that lets the edit through. To permit the edit:- Ask Inlay which rule blocked the path, if it isn’t clear.
- Narrow or remove that rule, or add a
!exception. - Ask Inlay to retry.
.inlayignore apply right away. You don’t need to restart the conversation.