![npm version](https://badge.fury.io/js/stylable-intelligence.svg)
Scope
This document is about the stylable-intelligence project setup and development.
Readme for the extension itself is at https://github.com/wix/stylable-intelligence/tree/master/packages/client/README.md
Project Setup
- Clone this repo
- Run
yarn
to install dependencies
- (investigate what's up with
postinstall
and prepublish
hooks)
- Run
yarn vscode:prepublish
?? (needs to investigate further) - Run
yarn test
to test and build (both server and client) - To launch and debug the extension: (needs to investigate further)
- open vscode in packages/client/ and in packages/server/.
- Choose the 'Launch Extension' configuration in the client vscode.
- Once the extension is launched, choose the 'Attach' configuration in the server vscode.
Brain Dump
Client
![Build Status](https://ci.appveyor.com/api/projects/status/6ky876hm9nycyu8m/branch/master?svg=true)
Overview
Stylable Intelligence is an extension implementing the Language Server Protocol that provides IDE support for Stylable.
Stylable Intelligence is currently only supported in VSCode (version 1.18.0 and later). Support for JetBrains IDEs (WebStorm, IntelliJ) is planned.
Currently supported: Code Completions, Diagnostics, Go to Definition, Syntax Highlighting
All CSS language support functionality is also supported (hover hints, inline color picker, etc.). Some CSS diagnostics no longer apply in Stylable and are filtered out.
Other Language Server features will be added in the near future.
Installation
From VSCode Marketplace
Search VSCode Extension Marketplace for 'Stylable Intelligence'.
Install extension.
Reload window when prompted by VsCode.
From .vsix file
In VsCode extension menu, choose 'Install from VSIX'.
Double-click your .vsix file.
Reload window when prompted by VsCode.
Known Issues
Not supported yet (in rough order of priority):
- Mixins and JS imports - WIP
- Variants
- Esoteric syntax (-st-compose, -st-theme, -st-root, -st-global)
- Find References
- Rename/Refactor
Server
stylable-intelligence-server
stylable-intelligence completion provider to be consumed outside
of the context of vscode extension.
import {MinimalDocs, createProvider, Provider } from 'stylable-intelligence-server'