Skip to content

Fix format cwd fallback #525

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mshr-h
Copy link
Owner

@mshr-h mshr-h commented Jun 11, 2025

Summary

  • avoid workspaceFolders[0] when none are open
  • add fallback to document directory for formatting
  • ensure linters and ctags check workspaceFolders
  • add dev dependency for testing
  • add test for formatting without workspace

Testing

  • npm run lint
  • npm test

https://chatgpt.com/codex/tasks/task_e_6848e6d846788324a5b6fa7dc16a828a

@mshr-h mshr-h added the codex label Jun 11, 2025 — with ChatGPT Connector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant