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

fix: address kakoune edge cases (builtin docs + diagnostics) #60

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

ndonfris
Copy link
Owner

@ndonfris ndonfris commented Dec 3, 2024

  • Fixed builtin docs such that external commands are not formatted with https://fishshell.com/docs/current/cmds/link.html header. Relevant change occurred in ./src/utils/documentation-cache.ts
  • Fix diagnostics for conditional if/else if syntax blocks which do not require -q/--query/--quiet flag
    if set fishpath (status fish-path)
      echo "fishpath is set: $fishpath"
    end
  • Extend conditional if/else if command support for all default commands shipped with fish shell, that can be used as a conditional expression.
  • Updated ./scripts/build-completions.fish to use $fish_complete_path environment variable to generate
  • Refactored logger from ./src/logger.ts to export a single instance of Logger class, and use it throughout the codebase.
  • Added testing for changes towards diagnostic behavior in ./test-data/diagnostics.test.ts

See bug report here

* Fixed builtin docs such that external commands are not formatted with
  `https://fishshell.com/docs/current/cmds/link.html` header. Relevant
  change occurred in [./src/utils/documentation-cache.ts](./src/utils/documentation-cache.ts)
* Fix diagnostics for conditional `if/else if` syntax blocks which
  do not require `-q/--query/--quiet` flag
  ```fish
  if set fishpath (status fish-path)
      echo "fishpath is set: $fishpath"
  end
  ```
* Extend conditional `if/else if` command support for all default
  commands shipped with fish shell, that can be used as a conditional
  expression.
* Updated [./scripts/build-completions.fish](./scripts/build-completions.fish)
  to use `$fish_complete_path` environment variable to generate
* Refactored `logger` from [./src/logger.ts](./src/logger.ts) to export
  a single instance of `Logger` class, and use it throughout the
  codebase.
* Added testing for changes towards diagnostic behavior in
  [./test-data/diagnostics.test.ts](./test-data/diagnostics.test.ts)

See bug report [here](kakoune-lsp/kakoune-lsp#809)
@ndonfris ndonfris merged commit 25b84b2 into master Dec 3, 2024
2 checks 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.

1 participant