Troubleshooting AL Extension in VS Code: Phantom Errors
Resolving phantom AL extension errors in VS Code where tables appear marked as missing permission sets despite successful compilation. The issue occurs because file updates are only processed when the AL extension starts, and can be fixed by restarting the extension host.

post Aardvark Labs
"The issue is that some of the files and associated errors are only handled when the AL Extension starts."
Key points
- Red error markers on tables claiming missing permission sets despite successful compilation indicate phantom errors
- Dependency updates or permission set changes may not be recognized until the AL extension restarts
- Restarting the AL extension via Developer: Restart Extension Host or closing and reopening VS Code resolves the issue
Quotes
- “The issue is that some of the files and associated errors are only handled when the AL Extension starts.” (Explains the root cause of phantom errors appearing after dependency or permission updates)
- “To resolve this issue, you could close and reopen VS Code, or you could press CTRL SHIFT P and select “Developer: Restart Extension Host”” (Provides the direct solution that developers can use to clear false error states)
Context
- Features: AL Extension error checking, Permission set validation, Dependency verification, VS Code extension restart
Source: Aardvark Labs, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.