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

Detect Apama, fix up settings, use stdio LSP, miscellaneous cleanup #63

Merged
merged 32 commits into from
Feb 20, 2025

Conversation

bph-c8y
Copy link
Collaborator

@bph-c8y bph-c8y commented Jan 17, 2025

  • Add in a mechanism for the extension to automatically detect an Apama installation, as opposed to requiring the user to specify a directory. The user can of course override this.
  • Fix up settings to be properly rendered - using CamelCase tells VSCode to separate the words.
  • Use the new stdio interface for communication: requires >=10.15.6.0, but should be a much cleaner way for us to interface with the Language Server, and is the general standard.
  • As a consequence of this, we no longer handle process setup and teardown: this is handled by the LSP library.
  • Other miscellaneous cleanup.

Improve our ability to find Apama processes on the system.
- Default apamahome assumed Windows.
- Various descriptions implied the set value was the default, which is obviously not true if it is configurable.
- Remove option for a "Remote" language server: while it currently works, it will soon be removed, and is antithetical to how MS expect you to run a Language Server.
VSCode automatically parses camel case names to be separate words.
We're going to use this to gate all advanced functionality.
Also, some renaming of things to less generic names.
- Remove all networking artifacts.
- Let the Language Client handle spawning the process (and thus, process
	cleanup).
- Remove language server networking configuration options.
- Remove all process cleanup code, and associated libraries.
@bph-c8y bph-c8y marked this pull request as ready for review February 19, 2025 14:33
Copy link
Collaborator

@ben-c8y ben-c8y 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, just some minor code cleanliness suggestions

Diagnostics was getting confused with the language server - excise that
word, and instead refer to the advanced syntax highlighting features
we're actually proposing users use.
syntax highlighting features we're actually proposing users use
Copy link
Collaborator

@ben-c8y ben-c8y left a comment

Choose a reason for hiding this comment

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

All good, well done! :)

@bph-c8y bph-c8y merged commit a954bfd into master Feb 20, 2025
3 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.

2 participants