Skip to content

revert: internal commands with spaces#184

Merged
fdncred merged 1 commit intonushell:mainfrom
blindFS:optim
Feb 22, 2025
Merged

revert: internal commands with spaces#184
fdncred merged 1 commit intonushell:mainfrom
blindFS:optim

Conversation

@blindFS
Copy link
Contributor

@blindFS blindFS commented Feb 22, 2025

In case we might want to revert #161 as discussed

@blindFS
Copy link
Contributor Author

blindFS commented Feb 22, 2025

One way to address the highlighting would be the semantic tokens of lsp, I think it's not very difficult to implement.

And IMO it's definitely a better solution for highlighting, as it will also handle user defined commands.

@blindFS blindFS marked this pull request as ready for review February 22, 2025 03:11
@fdncred
Copy link
Contributor

fdncred commented Feb 22, 2025

100% agree about semantic tokens.

I'm happy to revert this when you're ready. Not sure if you want to wait for max to chime in on the other thread or just pull the trigger. Let me know.

@blindFS
Copy link
Contributor Author

blindFS commented Feb 22, 2025

@fdncred I think it's safe to merge now. The semantic tokens feature might take a while to implement, a little bit tight on my schedule recently.

@fdncred fdncred merged commit ba6db53 into nushell:main Feb 22, 2025
3 checks passed
@fdncred
Copy link
Contributor

fdncred commented Feb 22, 2025

Thanks. Looking forward to seeing (1) how we handle commands with spaces and (2) semantic tokens in the future.

fdncred pushed a commit to nushell/nushell that referenced this pull request Feb 25, 2025
…aces (#15173)

# Description

We decided to move that specific highlighting task from tree-sitter-nu
to lsp for various reasons.
nushell/tree-sitter-nu#184

# User-Facing Changes

Before:
<img width="404" alt="image"
src="https://github.com/user-attachments/assets/79fad167-e424-4411-8aa2-334f08ecc4ab"
/>

After:
<img width="404" alt="image"
src="https://github.com/user-attachments/assets/8eec7c6c-2f63-4a7d-9e98-9e0c397be6bf"
/>


# Tests + Formatting
+1
# After Submitting
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