-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Description
I'm following along with Corey Schafer's FastAPI tutorial series and decided to install the extension to give a try. Unfortunatelly, the extension is not able to display most endpoints. Only endopoints in app/main.py are included on the tree.
Interestingly, I have other FastAPI projects that have a similar structure of having HTML paths on main.py and the API endpoints are added via routers and the same happened.
I did clone the full-stack-fastapi-template project and there it works perfectly as shown in the extension's docs. So it would appear that the extension fails to keep on looking for endpoints when some are found on the entrypoint.
I have tried setting the entry point both via pyproject.toml and via .vscode/settings.json and makes no difference.
Extension logs
2026-03-02 00:05:02.374 [info] FastAPI extension 0.1.0 activated (VS Code 1.109.5)
2026-03-02 00:05:02.374 [info] Discovering FastAPI apps in 1 workspace folder(s)...
2026-03-02 00:05:02.376 [info] Using custom entry point: app.main:app
2026-03-02 00:05:02.418 [info] Analyzed "file:///Users/daniel.czarnievicz/corey_schafer_fast_api/app/main.py": 3 routes, 1 routers, 2 include_router calls
2026-03-02 00:05:02.418 [info] Resolving include_router: router = users_router (prefix: /api)
2026-03-02 00:05:02.418 [info] No import found for router reference: router = users_router
2026-03-02 00:05:02.418 [info] Resolving include_router: router = posts_router (prefix: /api)
2026-03-02 00:05:02.418 [info] No import found for router reference: router = posts_router
2026-03-02 00:05:02.418 [info] No import found for router reference: app = StaticFiles(directory = "app/static")
2026-03-02 00:05:02.418 [info] No import found for router reference: app = StaticFiles(directory = "app/media")
2026-03-02 00:05:02.418 [info] Found 1 FastAPI app(s) with 3 route(s) in corey_schafer_fast_api
2026-03-02 00:07:13.940 [info] Discovering FastAPI apps in 1 workspace folder(s)...
2026-03-02 00:07:13.940 [info] Using custom entry point: app.main:app
2026-03-02 00:07:13.954 [info] Analyzed "file:///Users/daniel.czarnievicz/corey_schafer_fast_api/app/main.py": 3 routes, 1 routers, 2 include_router calls
2026-03-02 00:07:13.954 [info] Resolving include_router: router = users_router (prefix: /api)
2026-03-02 00:07:13.954 [info] No import found for router reference: router = users_router
2026-03-02 00:07:13.954 [info] Resolving include_router: router = posts_router (prefix: /api)
2026-03-02 00:07:13.954 [info] No import found for router reference: router = posts_router
2026-03-02 00:07:13.954 [info] No import found for router reference: app = StaticFiles(directory = "app/static")
2026-03-02 00:07:13.954 [info] No import found for router reference: app = StaticFiles(directory = "app/media")
2026-03-02 00:07:13.955 [info] Found 1 FastAPI app(s) with 3 route(s) in corey_schafer_fast_api
2026-03-02 00:07:14.109 [info] Discovering FastAPI apps in 1 workspace folder(s)...
2026-03-02 00:07:14.111 [info] Using custom entry point: app.main:app
2026-03-02 00:07:14.122 [info] Analyzed "file:///Users/daniel.czarnievicz/corey_schafer_fast_api/app/main.py": 3 routes, 1 routers, 2 include_router calls
2026-03-02 00:07:14.122 [info] Resolving include_router: router = users_router (prefix: /api)
2026-03-02 00:07:14.122 [info] No import found for router reference: router = users_router
2026-03-02 00:07:14.122 [info] Resolving include_router: router = posts_router (prefix: /api)
2026-03-02 00:07:14.122 [info] No import found for router reference: router = posts_router
2026-03-02 00:07:14.122 [info] No import found for router reference: app = StaticFiles(directory = "app/static")
2026-03-02 00:07:14.122 [info] No import found for router reference: app = StaticFiles(directory = "app/media")
2026-03-02 00:07:14.122 [info] Found 1 FastAPI app(s) with 3 route(s) in corey_schafer_fast_api
2026-03-02 00:07:14.281 [info] Discovering FastAPI apps in 1 workspace folder(s)...
2026-03-02 00:07:14.283 [info] Using custom entry point: app.main:app
2026-03-02 00:07:14.293 [info] Analyzed "file:///Users/daniel.czarnievicz/corey_schafer_fast_api/app/main.py": 3 routes, 1 routers, 2 include_router calls
2026-03-02 00:07:14.293 [info] Resolving include_router: router = users_router (prefix: /api)
2026-03-02 00:07:14.293 [info] No import found for router reference: router = users_router
2026-03-02 00:07:14.293 [info] Resolving include_router: router = posts_router (prefix: /api)
2026-03-02 00:07:14.293 [info] No import found for router reference: router = posts_router
2026-03-02 00:07:14.293 [info] No import found for router reference: app = StaticFiles(directory = "app/static")
2026-03-02 00:07:14.293 [info] No import found for router reference: app = StaticFiles(directory = "app/media")
2026-03-02 00:07:14.293 [info] Found 1 FastAPI app(s) with 3 route(s) in corey_schafer_fast_api
2026-03-02 00:07:14.424 [info] Discovering FastAPI apps in 1 workspace folder(s)...
2026-03-02 00:07:14.426 [info] Using custom entry point: app.main:app
2026-03-02 00:07:14.436 [info] Analyzed "file:///Users/daniel.czarnievicz/corey_schafer_fast_api/app/main.py": 3 routes, 1 routers, 2 include_router calls
2026-03-02 00:07:14.436 [info] Resolving include_router: router = users_router (prefix: /api)
2026-03-02 00:07:14.436 [info] No import found for router reference: router = users_router
2026-03-02 00:07:14.436 [info] Resolving include_router: router = posts_router (prefix: /api)
2026-03-02 00:07:14.436 [info] No import found for router reference: router = posts_router
2026-03-02 00:07:14.436 [info] No import found for router reference: app = StaticFiles(directory = "app/static")
2026-03-02 00:07:14.436 [info] No import found for router reference: app = StaticFiles(directory = "app/media")
2026-03-02 00:07:14.436 [info] Found 1 FastAPI app(s) with 3 route(s) in corey_schafer_fast_api
2026-03-02 00:07:14.574 [info] Discovering FastAPI apps in 1 workspace folder(s)...
2026-03-02 00:07:14.576 [info] Using custom entry point: app.main:app
2026-03-02 00:07:14.586 [info] Analyzed "file:///Users/daniel.czarnievicz/corey_schafer_fast_api/app/main.py": 3 routes, 1 routers, 2 include_router calls
2026-03-02 00:07:14.586 [info] Resolving include_router: router = users_router (prefix: /api)
2026-03-02 00:07:14.586 [info] No import found for router reference: router = users_router
2026-03-02 00:07:14.586 [info] Resolving include_router: router = posts_router (prefix: /api)
2026-03-02 00:07:14.586 [info] No import found for router reference: router = posts_router
2026-03-02 00:07:14.586 [info] No import found for router reference: app = StaticFiles(directory = "app/static")
2026-03-02 00:07:14.586 [info] No import found for router reference: app = StaticFiles(directory = "app/media")
2026-03-02 00:07:14.586 [info] Found 1 FastAPI app(s) with 3 route(s) in corey_schafer_fast_api
Repository link (if open source)
https://github.com/daczarne/corey_schafer_fast_api
Project structure
FastAPI app and router setup
pyproject.toml [tool.fastapi] section (if present)
VS Code version
1.109.5
FastAPI extension version
0.1.0
Python version
3.13.11
FastAPI version
0.128.0
Operating system
macOS Sequoia 15.7.4