Repository navigation
Conversation
Share one idle timer across buffers with info mode enabled, and unregister buffers when disabling the mode, changing major mode, or killing them. Restrict automatic updates to the selected buffer with info mode enabled and clear cached positions when their buffer is unregistered. Add regression coverage for multiple buffers, repeated enables, cleanup, and selected-buffer updates. Fixes bbatsov#22
The fsharp/documentation response contains a JSON string in its content property. Decode that payload before passing its Data object to the info renderer, and ignore non-documentation responses. Cover the actual response envelope, null and malformed payloads, request failures, and the absence of a server. Verify documentation display and selected-buffer updates against FsAutoComplete 0.86.1 through Eglot.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documentation info panel has two problems: enabling its buffer-local mode repeatedly leaks global idle timers, and real FsAutoComplete documentation responses never reach the renderer because their JSON
contentenvelope is not decoded.This PR fixes them in separate commits:
:contentJSON string returned byfsharp/documentationand render itsDataobject forformattedDocumentationresponses. Ignore empty, invalid, and non-documentation responses.Adds lifecycle and response-parsing regression tests, plus changelog entries.
Validation on GNU Emacs 31.1 / macOS:
fsharp-ts-info.elbyte-compiles with warnings treated as errors; checkdoc andgit diff --checkpass.:content, but the package's fetch function returned nil.The live test ran in batch Emacs; GUI redisplay and the full grammar-dependent test suite were not exercised locally. The existing CI matrix covers Emacs 29.4, 30.1, and snapshot.
Fixes #22.