Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
node_modules/
out/


# Added by cargo

/target
339 changes: 339 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "magento2-ls"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bincode = "1.3.3"
glob = "0.3.1"
lsp-server = "0.7.4"
lsp-types = "0.94.1"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
tree-sitter = "0.20.10"
tree-sitter-parsers = "0.0.5"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The Magento 2 Language Server is a tool that acts as a bridge between Magento 2 XML and PHP files. It provides features such as jumping to the definition of PHP classes from XML definitions of plugins, observers, jobs, and similar entities. The goal is to also provide code completion suggestions in XML files when referencing PHP classes and functions, and potentially finding references of PHP classes/methods in XML in the future.

Please note that the current version of the language server is considered to be of alpha quality. While it works and can be used, it may have limited functionality and can be memory-intensive.
Please note that the current version of the language server is considered to be of alpha quality. While it works and can be used, it has limited functionality and things can break.

## Features
- Jump to definition of PHP classes from XML definitions of plugins, observers, jobs, and similar entities.
Expand All @@ -21,7 +21,7 @@ Add the following lines to your init.lua file if you are using Packer as your pl

```lua
use({ 'pbogut/magento2-ls',
run = 'npm install && npm run build',
run = 'cargo build --release',
config = "require'magento2_ls'.setup()"
})
```
Expand Down
2 changes: 0 additions & 2 deletions decs.d.ts

This file was deleted.

Loading