New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

solidity-ls

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidity-ls

Solidity Language Server

latest
npmnpm
Version
0.5.4
Version published
Weekly downloads
21
-36.36%
Maintainers
1
Weekly downloads
 
Created
Source

solidity-ls npm-badge

imageimageimage

This language server has no error tolerance. Means that some features will only work if sources are no syntax error.

For example:

// should not work
msg.
   ^

// should work
msg.;
   ^

Features

  • completion
    • local variables, state variables, functions image image
    • contracts image
    • globally variables and it's members image image
    • struct members image
    • external contract functions image
  • diagnostics image image
  • hover documention image image
  • references image
  • rename
  • signature help (basic implementation)
  • go to references
  • go to definition

Usage

npm i solidity-ls -g
solidity-ls --stdio

or

npx solidity-ls --stdio

coc.nvim

:CocInstall coc-solidity

neovim lsp

More info: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#solidity

local lspconfig = require 'lspconfig'
lspconfig.solidity.setup({
  -- on_attach = on_attach, -- probably you will need this.
  -- capabilities = capabilities,
  settings = {
    -- example of global remapping
    solidity = {
        includePath = '',
        remapping = { ["@OpenZeppelin/"] = 'OpenZeppelin/openzeppelin-contracts@4.6.0/' },
        -- Array of paths to pass as --allow-paths to solc
        allowPaths = {}
    }
  },
})

foundry supports

run forge remappings > remappings.txt in project root.

FAQs

Package last updated on 10 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts