Skip to content

Enable basic CMake language services - #4204

Merged
Garrett Campbell (gcampbell-msft) merged 12 commits into
mainfrom
dev/gcampbell/ColorizationAndQuickInfo
Jan 10, 2025
Merged

Garrett Campbell (gcampbell-msft) merged 12 commits into
mainfrom
dev/gcampbell/ColorizationAndQuickInfo

Conversation

@gcampbell-msft

Copy link
Copy Markdown
Collaborator

This PR accomplishes the following:

  • Removes the dependency on the third party twxs.cmake extension. Thanks Nicolas (@twxs) for your work in that extension!
  • Add support into our extension for the following:
    • Quick Info for built-in modules, variables, properties, and functions.
    • Completions for built-in modules, variables, properties, and functions.

This does this by including JSON files in our repository that house information for language services and we load these on activation of the extension. This enhances the performance of providing completions and quick info information.

The main implementation points in this PR:

  • Bundling the language services json assets into the vsix (gulpfile.js, etc.)
  • Integrating with the VS Code Language Service API to implement quick hover and completions (src/languageServices)

Fixes #3559. Fixes #534. Fixes #3560

@Yingzi1234

Copy link
Copy Markdown

This issue has been fixed on CMake tool version 1.20.50, you can get the details below.
image

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

very good code

Comment thread assets/commands.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

	I am really impressed using it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants