smuuf / vscode-latte-lang Goto Github PK
View Code? Open in Web Editor NEW☕ Nette Latte extension for VS Code.
License: MIT License
☕ Nette Latte extension for VS Code.
License: MIT License
Currently we have information (we then use, for example, for method name autocompletion) only from a specific class in PHP source code.
We should add support for inheritance, so we know that for class X extends Y
there are methods in class Y
which the class X
also contains.
Type: Bug
In a project with many php files (we have 39000) this extension uses max cpu for many minutes then vscode restarts the extension.
Extension version: 0.0.9
VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:34:12.840Z)
OS version: Linux x64 6.8.5-1-MANJARO
Modes:
Item | Value |
---|---|
CPUs | 13th Gen Intel(R) Core(TM) i9-13900K (32 x 5499) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 6, 5, 3 |
Memory (System) | 31.12GB (25.17GB free) |
Process Argv | dev/vuly.j.jm1.au/public/html/ --crash-reporter-id b4f8ee35-b96f-43b4-878c-87e10259c101 |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | i3 |
XDG_CURRENT_DESKTOP | i3 |
XDG_SESSION_DESKTOP | i3 |
XDG_SESSION_TYPE | x11 |
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
jchc7451:30973076
gee8j676:31009558
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31022790
Currently the workspace is scanned for PHP files (and thus, for example, for class definitions) only once per extension activation.
For the vscode extension to be truly usable, we need to monitor for changes in PHP files (in existing ones or when a PHP file is created or deleted), so we can update our class maps accordingly.
The information that comes out of the scanning (and later monitoring) of PHP files should also be cached in some way (probably via ExtensionContext.workspaceState
).
Thank you for the great extension.
I can't get it to work when using Latte outside the Nette Framework.
Is the definition of a FooTemplateParameters class following the example at https://latte.nette.org/en/type-system required for type hinting to work?
I guess yes. Just wanted to make sure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.