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

feat: add new lwc directives as autocomplete options in 242/258 #565

Merged
merged 4 commits into from
Apr 19, 2023

Conversation

CristiCanizales
Copy link
Contributor

@CristiCanizales CristiCanizales commented Apr 18, 2023

What does this PR do?

Adds support (for autocomplete as well) to the following new LWC directives that were released with 242:

  • lwc:if
  • lwc:elseif
  • lwc:else

What issues does this PR fix or reference?

@W-12051474@

Functionality after

  • Autocomplete
    Pasted Graphic 1

  • On hover info
    Pasted Graphic

@CristiCanizales CristiCanizales self-assigned this Apr 18, 2023
@CristiCanizales CristiCanizales marked this pull request as ready for review April 18, 2023 16:43
@@ -49,7 +49,7 @@ npm run compile
Note: complete the install process before this step, or you may receive errors about "Property ‘objType’ does not exist on type ‘Node’." from the Tern Server. This is due to the node_modules being improperly installed at a level above the lightning-language-server. If this does happen to you, simply remove the extra node_modules directory.

```
cd lightning-language-server
cd ../lightning-language-server
Copy link
Contributor

Choose a reason for hiding this comment

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

Does your local setup require moving up a directory? For me this is correct, as my setup looks like:

  • Repos/lightning-language-server
  • Repos/salesforcedx-vscode

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! I have that same structure, but as in the previous set of steps we're standing in salesforcedx-vscode, we need the ../ to go back and then enter lls

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Contributor

@randi274 randi274 left a comment

Choose a reason for hiding this comment

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

Looking great! I especially appreciated the extra notes recommending the usage of the newer directives. Since we are making some doc-style changes, let's get @sbudhirajadoc to take a look before merging in.
Screenshot 2023-04-18 at 6 11 19 PM

Copy link

@sbudhirajadoc sbudhirajadoc left a comment

Choose a reason for hiding this comment

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

change "truthy" and "falsy" to "true" and "false". rest looks good.

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.

3 participants