Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/DevLog/
IsBenignEnoent.rs

1//! Recognise known-optional probe paths so `stat ENOENT`
2//! lines for them downgrade to debug-once instead of full
3//! error noise. The list is the union of:
4//!
5//! - VS Code / Copilot / Claude / vim probe paths.
6//! - Per-extension state probes (`globalStorage`, `workspaceStorage`, sqlite
7//!   state files).
8//! - First-run user-config files (`tasks.json`, `mcp.json`, `keybindings.json`,
9//!   …) lazy-created on first write.
10//! - `vscode://schemas-associations/` virtual-resource probes.
11//! - External-editor / vim-config detection paths used by "Open With…" pickers.
12
13const BENIGN_ENOENT_SUBSTRINGS:&[&str] = &[
14	"/.claude",
15	"/.vscode",
16	".claude/agents",
17	".claude/settings.json",
18	".claude/settings.local.json",
19	".copilot/agents",
20	".github/copilot",
21	".github/agents",
22	".vscode/settings.json",
23	".vscode/launch.json",
24	".vscode/extensions.json",
25	".vscode/tasks.json",
26	".vscode/mcp.json",
27	".mcp.json",
28	"agentPlugins",
29	"agent-plugins",
30	"chatEditingSessions",
31	"chatSessions",
32	"machineid",
33	"terminalSuggestGlobalsCacheV2.json",
34	"globalStorage",
35	"/User/tasks.json",
36	"/User/mcp.json",
37	"/User/snippets",
38	"/User/keybindings.json",
39	"aiGeneratedWorkspaces.json",
40	"/.git/config",
41	"chatLanguageModels.json",
42	"configurationDefaultsOverrides",
43	"vscode-chat-images",
44	"/output_20",
45	"/network.log",
46	"/renderer.log",
47	"/views.log",
48	"/notebook.rendering.log",
49	"vscode://schemas-associations/",
50	"vscodevim.vim/.registers",
51	"/User/globalStorage/",
52	"/chatEditingSessions/",
53	"/User/prompts",
54	"languageDetectionWorkerCache.json",
55	"/Applications/Eclipse IDE.app",
56	"/Applications/Eclipse.app",
57	"/Applications/IntelliJ IDEA.app",
58	"/Applications/IntelliJ IDEA CE.app",
59	"/Applications/Sublime Text.app",
60	"/Applications/Notepad++.app",
61	"/Applications/Visual Studio Code.app",
62	"/Applications/Xcode.app",
63	"/.config/nvim/init.lua",
64	"/.config/nvim/init.vim",
65	"/.vimrc",
66	"/.gvimrc",
67	"/state.vscdb",
68	"/state.vscdb-journal",
69	"/User/workspaceStorage/",
70	"/globalStorage/eamodio.gitlens",
71	"/globalStorage/GitHub.copilot",
72	"/globalStorage/GitHub.copilot-chat",
73	"/globalStorage/Anthropic.claude-code",
74	"/globalStorage/RooVeterinaryInc.roo-cline",
75	".registers",
76	"/Sky/Target/product.json",
77	"/Output/Target/product.json",
78];
79
80pub fn Fn(Path:&str) -> bool { BENIGN_ENOENT_SUBSTRINGS.iter().any(|Needle| Path.contains(Needle)) }