8000 fix(intellij): add dart sdk constraint to language server by vmichalak · Pull Request #4469 · felangel/bloc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(intellij): add dart sdk constraint to language server #4469

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

Merged
merged 8 commits into from
May 7, 2025

Conversation

vmichalak
Copy link
Collaborator
@vmichalak vmichalak commented May 5, 2025

Status

READY

Breaking Changes

NO

Description

Fix #4468 for IntelliJ

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@vmichalak vmichalak marked this pull request as ready for review May 5, 2025 15:18
@vmichalak vmichalak requested a review from felangel as a code owner May 5, 2025 15:18
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class VersionComparatorTest {
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for adding tests! 💯

}

override fun setEnabled(enabled: Boolean, project: Project) {
// TODO: Implement this with settings
Copy link
Owner

Choose a reason for hiding this comment

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

Are you leaving this todo intentionally?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As you can see on the documentation of LSP4IJ, this setter is for permitting to add an option to programmatically set on and off the LSP. We gonna use it to add an option to disable the LSP in near future but it's outside of this PR scope i think.

@felangel felangel added bug Something isn't working extension This issue relates to bloc extensions labels May 5, 2025
@vmichalak
Copy link
Collaborator Author

Little refactor added

@@ -63,4 +71,31 @@ class BlocLanguageServerFactory : LanguageServerFactory {
.createNotification(content, type)
.notify(project)
}

override fun isEnabled(project: Project): Boolean {
val blocToolsVersion = getBlocToolsVersion()
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like this method is being called many times and results in a really laggy user experience so we should probably rework this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, i gonna check to clean this tomorrow.

Copy link
Owner
@felangel felangel left a comment

Choose a reason for hiding this comment

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

LGTM ✅
Thanks as always for the contributions! 🙏

@felangel felangel changed the title fix(intellij): add a dart minimal version requirement to ij plugin fix(intellij): add dart sdk constraint to language server May 7, 2025
@felangel felangel merged commit ffb9da0 into master May 7, 2025
9 checks passed
@felangel felangel deleted the fix/4468-ij branch May 7, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension This issue relates to bloc extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: Unable to install Bloc Tools due to Dart version constraint
2 participants
0