npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vscode-css-languageserver-bin

v1.4.0

Published

Binary version published on npm of vscode-css-languageserver extracted from VSCode tree

Downloads

726

Readme

vscode-css-languageserver-bin

npm Join the chat at https://gitter.im/vscode-langservers/Lobby

Binary version published on npm of vscode-css-languageserver extracted from VSCode tree

Features

  • [x] CSS Support
  • [x] LESS Support
  • [x] SASS Support
  • [x] Completion provider (Need Snippets Support)
  • [x] Color provider
  • [x] Code Actions (rename mispelled properties)
  • [x] Validation (syntax and lint errros)
  • [X] Hover tooltip provider
  • [x] Definition provider
  • [x] Hover provider
  • [x] References provider
  • [x] Document Symbols & Highlights
  • [x] Rename symbol
  • [x] Scoped Settings

Clients

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

To install this Language Server you need npm on your machine

Installing

npm install --global vscode-css-languageserver-bin

Launching the Server

The common way to launch it is by using stdio transport:

css-languageserver --stdio

The server can also be launched with one of the following transports:

css-languageserver --socket={number}
css-languageserver --node-ipc

Settings

This Language Server accepts some settings sent with workspace/didChangeConfiguration

type Level = "ignore" | "error" | "warning"

type LintSettings = {
	// From: https://github.com/Microsoft/vscode-css-languageservice/blob/master/src/services/lintRules.ts#L25

	compatibleVendorPrefixes?: Level, // When using a vendor-specific prefix make sure to also include all other vendor-specific properties. Default: Ignore
	vendorPrefix?: Level, // When using a vendor-specific prefix also include the standard property. Default: Warning
	duplicateProperties?: Level, //, localize('rule.duplicateDeclarations', "Do not use duplicate style definitions. Default: Ignore
	emptyRules?: Level, // Do not use empty rulesets. Default: Warning
	importStatement?: Level, // Import statements do not load in parallel. Default: Ignore
	boxModel?: Level, // Do not use width or height when using padding or border. Default: Ignore
	universalSelector?: Level, // The universal selector (*) is known to be slow. Default: Ignore
	zeroUnits?: Level, // No unit for zero needed. Default: Ignore
	fontFaceProperties?: Level, // @font-face rule must define 'src' and 'font-family' properties. Default: Warning
	hexColorLength?: Level, // Hex colors must consist of three, four, six or eight hex numbers. Default: Error
	argumentsInColorFunction?: Level, // Invalid number of parameters. Default: Error
	unknownProperties?: Level, // Unknown property. Default: Warning
	ieHack?: Level, // IE hacks are only necessary when supporting IE7 and older. Default: Ignore
	unknownVendorSpecificProperties?: Level // Unknown vendor specific property. Default: Ignore
	propertyIgnoredDueToDisplay?: Level, // Property is ignored due to the display. Default: Warning
	important?: Level, // Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored. Default: Ignore
	float?: Level, // Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes. Default: Ignore
	idSelector?: Level // Selectors should not contain IDs because these rules are too tightly coupled with the HTML. Default: Ignore
};

interface LanguageSettings {
	validate?: boolean;
	lint?: LintSettings;
}

interface Settings {
	css?: LanguageSettings,
	scss?: LanguageSettings,
	less?: LanguageSettings
}

Deployment

npm run publish
# or to try locally
npm run pack

Contributing

PRs are welcome. To setup the repo locally run:

git clone --recursive https://github.com/vscode-langservers/vscode-css-languageserver-bin
cd vscode-css-languageserver-bin
npm install
npm run pack

Versioning

We use SemVer for versioning.

Because we can't guess VSCode extention version, we update MINOR when submodule is updated and PATCH when only build method is updated

License

This project is licensed under the MIT License - see the LICENSE file for details

This is a derived work please see VSCode's LICENSE.txt for the original copyright and license.