sourcegraph/vscode-css-languageservice

Name: vscode-css-languageservice

Owner: Sourcegraph

Description: CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.

Forked from: Microsoft/vscode-css-languageservice

Created: 2016-11-21 19:29:40.0

Updated: 2016-12-20 16:29:38.0

Pushed: 2017-01-05 14:57:22.0

Homepage: null

Size: 3789

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

vscode-css-languageservice

Language services for CSS, LESS and SCSS forked from Microsoft/vscode-css-languageservice

Why?

The vscode-css-languageservice contains the language smarts behind the CSS, LESS and SCSS editing experience of Visual Studio Code and the Monaco editor.

API
rt interface LanguageService {
configure(raw: LanguageSettings): void;
doValidation(document: TextDocument, stylesheet: Stylesheet): Diagnostic[];
parseStylesheet(document: TextDocument): Stylesheet;
doComplete(document: TextDocument, position: Position, stylesheet: Stylesheet): CompletionList;
findDependencies(stylesheet: Stylesheet): string[];
doHover(thisURI: string, documents: {[uri: string]: {textDoc: TextDocument, styleSheet: Stylesheet}}, position: Position): Hover;
findDefinition(thisURI: string, documents: {[uri: string]: {textDoc: TextDocument, styleSheet: Stylesheet}}, position: Position): Location;
findReferences(thisURI: string, documents: {[uri: string]: {textDoc: TextDocument, styleSheet: Stylesheet}}, position: Position): Location[];
findDocumentHighlights(document: TextDocument, position: Position, stylesheet: Stylesheet): DocumentHighlight[];
findDocumentSymbols(document: TextDocument, stylesheet: Stylesheet): SymbolInformation[];
doCodeActions(document: TextDocument, range: Range, context: CodeActionContext, stylesheet: Stylesheet): Command[];
findColorSymbols(document: TextDocument, stylesheet: Stylesheet): Range[];
doRename(document: TextDocument, position: Position, newName: string, stylesheet: Stylesheet): WorkspaceEdit;


rt interface LanguageSettings {
validate?: boolean;
lint?: any;

Notes
License

(MIT License)

Copyright 2016, Microsoft Copyright 2016, Sourcegraph


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.