Skip to content
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

Get max file size from kited #303

Merged
merged 2 commits into from Oct 6, 2020
Merged

Get max file size from kited #303

merged 2 commits into from Oct 6, 2020

Conversation

@airblade
Copy link
Contributor

@airblade airblade commented Oct 1, 2020

See kiteco/kiteco#11826.

Since my Kite doesn't have the /clientapi/settings/max_file_size_kb endpoint yet, I assumed the endpoint's response would consist solely of the number.

The plugin queries the endpoint synchronously on BufEnter. If the endpoint doesn't respond in time, or responds with a non-200 status code, the plugin falls back to a 1MB max file size.

See #11826 kiteco.
@airblade airblade requested review from jansorg and edzkite Oct 1, 2020
autoload/kite/client.vim Outdated Show resolved Hide resolved
@edzkite
edzkite approved these changes Oct 5, 2020
@airblade airblade merged commit a304282 into master Oct 6, 2020
1 check passed
1 check passed
Travis CI - Pull Request Build Passed
Details
@airblade airblade deleted the 11826-file-size branch Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.