ClassLoom — CSS & LESS IntelliSense
Project-aware style completion, woven into your editor.
Branding and publishing
The extension package is named classloom-less-intellisense. The 256 × 256 Marketplace icon is assets/icon.png; its editable source is assets/icon.svg. The folder stays named autosuggestion, and existing autosuggestion.* settings and command IDs remain compatible.
Before publishing, verify name availability in the Visual Studio Marketplace and confirm that you own the configured publisher ID (karthik). The current package retains its existing private/unlicensed policy; choose the intended distribution license and review that policy before a public release. No Marketplace availability or publisher ownership is claimed here.
Run npm test and npm run check, then package with vsce package --out classloom-less-intellisense-0.1.0.vsix. Test the VSIX in VS Code before publishing. Older autosuggestion installations have a different extension ID: uninstall or disable them to avoid duplicate completions.
Project-aware CSS class and LESS utility completion inside Vue <style> blocks (scoped, module or global), plus standalone .less and .css files. No runtime dependencies, LESS execution, product-code changes or network requests.
Run in VS Code
- Open
autosuggestion.code-workspace in VS Code.
- Select Run ClassLoom Extension in Run and Debug and press F5.
- The Extension Development Host opens the web-components repository.
- Open a Vue component and type
.fl in a LESS style block, or press Control+Space. Select flexM to insert .flexM; inside a rule.
<style lang="less" scoped>
@import (reference) '../../../styles/common.module.less';
.example {
.flexM;
.pL3;
}
</style>
For a normal installation, package this directory with VS Code's official VSCE packaging tool, then use Extensions → … → Install from VSIX. VSCE is not bundled or installed by this project. F5 runs directly from source without installing dependencies.
What is suggested
- Class selector definitions in workspace
.less and .css files.
- Shared generated utilities from
generateCustom, generateMultiClass, generateFontsize, generatePadding, generatemargin, and generatePaddingMargin. Bounds and steps come from the source calls, not a hardcoded utility list.
- Local classes from every style block in the active Vue component.
- Unsaved edits in open LESS and CSS files.
Generated helpers requiring arguments, comments and mixin usages aren't treated as class definitions. Completion details show the generator/property information and source file/line. Selecting a suggestion replaces the current name without duplicating the dot, suffix or existing semicolon. Plain CSS and selectors such as :global(.fl) insert names only. Bare LESS statements inside rules receive a semicolon; use autosuggestion.insertSemicolon: false if you prefer selector-only insertion (an unfinished nested selector can look like a mixin statement).
Nothing changes in template or script blocks, comments, strings, or CSS declaration values. This extension supplies completions; it does not change imports, CSS scoping or build configuration. Using a LESS utility still requires it to be imported or injected by your build. Arbitrary custom LESS generators/interpolation are not evaluated.
Shared sources in another repository
When editing business-client, add web-components to the same VS Code workspace with File → Add Folder to Workspace. Only sources in workspace folders are indexed; installed dependencies and build outputs are excluded by default.
Settings:
| Setting |
Default |
Purpose |
autosuggestion.enabled |
true |
Enable completion |
autosuggestion.include |
["**/*.{less,css}"] |
Workspace-relative source globs |
autosuggestion.exclude |
Common dependency/build folders |
Exclude glob |
autosuggestion.insertSemicolon |
true |
Add ; to bare LESS statements |
Use ClassLoom: Refresh CSS Utilities to refresh manually. File and workspace changes refresh automatically. Indexing errors appear in Output → ClassLoom.
If automatic suggestions are disabled in your editor, enable editor.quickSuggestions.other and editor.suggestOnTriggerCharacters for Vue/LESS, or request completion with Control+Space. Existing word-based suggestions from VS Code may still appear alongside these class suggestions.
Validation
Run npm test and npm run check in this directory. Tests use Node's built-in runner, exercise source generators against the real utility file, and verify completion context and extension wiring without requiring VS Code. Actual VS Code popup behavior should also be checked in the Extension Development Host.