Skip to content

Add dynamic FastAPI debug config #19505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

paulacamargo25
Copy link

closed: #19452

@paulacamargo25 paulacamargo25 self-assigned this Jul 20, 2022
@paulacamargo25 paulacamargo25 added area-debugging feature-request Request for new features or functionality skip tests Updates to tests unnecessary labels Jul 20, 2022
@paulacamargo25 paulacamargo25 added this to the July 2022 milestone Jul 20, 2022
@paulacamargo25 paulacamargo25 requested a review from karrtikr July 21, 2022 20:58
Copy link

@karrtikr karrtikr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of Django as well, LGTM.

@paulacamargo25 paulacamargo25 merged commit 7c3498c into microsoft:main Jul 21, 2022
private async getFastApiPath(folder: WorkspaceFolder) {
const possiblePaths = await this.getPossiblePaths(folder, ['main.py', 'app.py', '*/main.py', '*/app.py']);
const regExpression = /app\s*=\s*FastAPI\(/;
const flaskPaths = await asyncFilter(possiblePaths, async (possiblePath) =>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fastapi paths

wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
* Add dynamic FastAPI debug config

* Improve performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-debugging feature-request Request for new features or functionality skip tests Updates to tests unnecessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement automatic configuration for FastAPI
3 participants