Skip to content

Conversation

@hikycool
Copy link
Contributor

Some indent-offset variable is not a number type for default value. Example:
In c++-ts-mode, "c-basic-offset" is default type of "symbol" and default value is "set-from-style". And in the function of "copilot--infer-indentation-offset" will return value of "set-from-style".

Change: Add a new judgment before returning indent-offset

Some indent-offset variable is not a number type for default value.
Example:
In c++-ts-mode, "c-basic-offset" is default type of "symbol"  and default value is "set-from-style". And in the function of "copilot--infer-indentation-offset" will return value of "set-from-style".

Change: Add a new judgment before returning indent-offset
@zerolfx zerolfx merged commit a68f1ce into copilot-emacs:main Jul 28, 2023
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.

2 participants