Skip to content

Commit

Permalink
exclude some modules from auto-import
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Dec 17, 2024
1 parent 62c2f74 commit be80364
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@
"[x]",
"TODO-APP"
],
"typescript.preferences.autoImportFileExcludePatterns": [
// templates reexport many things (see e.g. entry-base.ts), so they clutter import suggestions
"packages/next/src/build/templates/app-page.ts",
"packages/next/src/build/templates/app-route.ts",
"packages/next/src/build/templates/edge-app-route.ts",
"packages/next/src/build/templates/edge-ssr-app.ts",
"packages/next/src/build/templates/edge-ssr.ts",
"packages/next/src/build/templates/middleware.ts",
"packages/next/src/build/templates/pages-api.ts",
"packages/next/src/build/templates/pages-edge-api.ts",
"packages/next/src/build/templates/pages.ts",
"packages/next/src/server/app-render/entry-base.ts",
// singleton modules should always use "*.external" instead of "*-instance"
"packages/next/src/server/app-render/action-async-storage-instance.ts",
"packages/next/src/server/app-render/after-task-async-storage-instance.ts",
"packages/next/src/server/app-render/clean-async-snapshot-instance.ts",
"packages/next/src/server/app-render/work-async-storage-instance.ts",
"packages/next/src/server/app-render/work-unit-async-storage-instance.ts"
],
// Disable TypeScript surveys.
"typescript.surveys.enabled": false,
// Enable file nesting for unit test files.
Expand Down

0 comments on commit be80364

Please sign in to comment.