Comments (8)
@deathaxe do you have any thoughts on why this is happening and how to prevent it?
from laravel-blade.
The only special thing of this package is a syntax specific auto_completion_selector
, which intents to enable autocompletions within template tags. It would require a nonwhitespace character to be typed, to open the panel.
see:
- What ST version is it?
- What's the output of
view.settings().get("auto_complete_selector")
view.settings().get("auto_complete_triggers")
- Is any language server involved?
- Any other completion plugins?
Is completion panel directly opened by typing >
? Maybe >
was added to auto_complete_triggers
by a plugin (or user customization)? I am aware of LSP manipulating view-specific auto_complete_triggers
setting based on what it gets from a language servers.
I get this state only by hitting ctrl+space
after the tag.
from laravel-blade.
-
Build 4143
![CleanShot 2023-07-24 at 10 34 29@2x](https://private-user-images.githubusercontent.com/463230/255639370-1bdd5238-0dfc-4b42-bda7-b845c02db35b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMyOTcyNjQsIm5iZiI6MTcxMzI5Njk2NCwicGF0aCI6Ii80NjMyMzAvMjU1NjM5MzcwLTFiZGQ1MjM4LTBkZmMtNGI0Mi1iZGE3LWI4NDVjMDJkYjM1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNDE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDQxNlQxOTQ5MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNzJkMDk1MGZiNDM5M2UyYTVjOWUyMmIwNTdhMjkxYjNhMTY2ZDA3Njk1YjhmYWI1ODNkOTZjMTZiOWI2YzU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.lYFlQ6JH8ReuOAe8pOXLLszyI9OJImodFmKUi1A2nLw)
-
No LSP.
-
Other maybe relevant plugins I have installed: ECMAScript Syntax, PHP Companion, Vue Syntax Highlight
from laravel-blade.
Did you set syntax to "HTML (Blade)" before calling view.settings().get(...)
?
I'd expect
>>> view.settings().get("auto_complete_selector")
'( meta.tag | meta.embedded.directive ) - comment'
>>> view.settings().get("auto_complete_triggers")
[{'characters': '<', 'selector': 'text.html, text.xml'}, {'rhs_empty': True, 'selector': 'punctuation.accessor'}]
Listed syntaxes seem unrelated. Their code doesn't contain hints and I can't reproduce the issue, if they are installed.
You could try to log commands, to see whether anything is triggering auto_complete
command when closing tags.
>>> sublime.log_commands()
Trying that I've not seen any command when typing >
.
from laravel-blade.
Sorry, my settings match yours - forgot I had modified them trying to resolve the issue.
Logging commands doesn't show any commands being fired when the auto-complete window shows up.
So weird. 🙃
from laravel-blade.
Indeed.
Blade is just inherits from ST's PHP and HTML re-using most syntax stuff and the html completion plugin. It extends core syntaxes in the same way as Vue and other packages.
Did you try to setup a completely vanilla ST with only Blade installed? Does it happen then, too?
from laravel-blade.
I have been able to narrow it down to something within Livewire 3's legacy_tests/Browser
directory. When that directory is removed it does not happen. It also does not happen if I tell Sublime to not index "vendor" files (this file I mentioned is in my vendor directory).
Does the Blade plugin attempt to do anything intelligent based on the Blade declarations / components in other files in the application?
from laravel-blade.
This package provide plain syntax definitions and a handful of completions. There's no plugin or any other kind of black magic provided.
from laravel-blade.
Related Issues (20)
- Updating in ST3 Package Control download URL is a 404 HOT 2
- Sometimes it confused php files with blade.php files HOT 1
- Brackets in "if" statement break syntax highlighting HOT 1
- Does not support inline @php HOT 1
- Package does not work when installed alongside 'Naomi' package.
- problem when we have style attribute HOT 1
- Package not working
- Can't update to 1.6.13, zip link broken HOT 1
- Using periods in tags HOT 10
- set highlighting to specific extensions? HOT 1
- Stopped working today HOT 11
- Alpine style syntax is being highlighted as an error HOT 1
- 25000 context sanity limit hit HOT 2
- CSS with media declaration not recognized
- Doesn't highlight alpinejs properly. HOT 4
- blade syntax doesn't work on Sublime 4143 HOT 2
- What is the install command for the plugin HOT 2
- auto complete / hinting not working after installing new laravel blade highlight HOT 1
- Missing newer L10 directives
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-blade.