Skip to content

Skip formatting for unsupported file types#23

Merged
fourls merged 1 commit into
integrated-application-development:masterfrom
zaneduffield:format-only-delphi-files
May 14, 2025
Merged

Skip formatting for unsupported file types#23
fourls merged 1 commit into
integrated-application-development:masterfrom
zaneduffield:format-only-delphi-files

Conversation

@zaneduffield
Copy link
Copy Markdown
Contributor

Fixes #22.

I wish there was a better way to check a file 'type' rather than checking the extension, but I don't think the ToolsAPI provides it.

I thought there might be a problem where you have a buffer that doesn't have a filename, but as far as I can tell the IDE doesn't let you do this.

@zaneduffield zaneduffield requested a review from fourls April 23, 2025 22:51
Copy link
Copy Markdown
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good! It's a shame that the IDE doesn't expose language information.

@fourls fourls merged commit 25c2706 into integrated-application-development:master May 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Markdown files will be formatted

2 participants