-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: write a usage and contribution guide
A goal is to make it easier for new contributors to get started.
- Loading branch information
Showing
71 changed files
with
16,303 additions
and
13,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vscode-extension/test/e2e/ | ||
vscode-extension/test/web/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: [wkillerud] | ||
ko_fi: williamkillerud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
logs/ | ||
*.log | ||
npm-debug.log* | ||
.cpuprofile | ||
.heapprofile | ||
|
||
# Dependency directory | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"recommendations": ["amodio.tsl-problem-matcher"] | ||
"recommendations": ["vitest.explorer"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"mochaExplorer.cwd": "server", | ||
"somesass.scannerDepth": 30, | ||
"somesass.scannerExclude": [ | ||
"**/.git/**", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
While not an official Sass project, we strive to follow the [Sass Community Guidelines](https://sass-lang.com/community-guidelines/). | ||
|
||
- Be considerate | ||
- Be open and inviting | ||
- Be respectful | ||
- Take responsibility for our words and actions | ||
- Be collaborative | ||
- Value decisiveness, clarity and open communication | ||
- Be responsive and helpful | ||
- Step down considerately |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,48 @@ | ||
# Some Sass | ||
|
||
In this repo you'll find: | ||
Some Sass is a [language server extension][langext] for [Visual Studio Code][vscode]. It brings improved code suggestions, documentation and code navigation for [SCSS][scss]. | ||
|
||
- the [Some Sass](./vscode-extension#readme) extension for VS Code | ||
- the [SCSS language server that powers it](./packages/language-server#readme) | ||
Some features include: | ||
|
||
The language server is [published independently to npm](https://www.npmjs.com/package/some-sass-language-server), and can be used with any editor that has a [language server protocol (LSP)](https://microsoft.github.io/language-server-protocol/) client. | ||
- Full support for [`@use`][use] and [`@forward`][forward], including aliases, prefixes and hiding. | ||
- Workspace-wide code navigation and refactoring, such as Rename Symbol. | ||
- Rich documentation through [SassDoc][sassdoc]. | ||
- Language features for [`%placeholders`][placeholder], both when using them and writing them. | ||
|
||
## Editors with clients | ||
![](./docs/src/images/highlight-reel.gif) | ||
|
||
## Get the extension | ||
|
||
You can find the extension here: | ||
|
||
- On the [Visual Studio Code Marketplace][vsmarketplace]. | ||
- On the [Open VSX Registry][openvsx]. | ||
- In the [Releases section on GitHub][ghreleases]. | ||
|
||
See the User guide section to learn more about what the extension can do. | ||
|
||
## Some Sass Language Server | ||
|
||
Some Sass is also a language server using the [Language Server Protocol (LSP)][lsp]. | ||
|
||
The language server is [published on npm][npm], and can be used with any editor that has an LSP client. See [Getting started](./language-server/getting-started.md) to learn more. | ||
|
||
### Editors with clients | ||
|
||
The language server has clients for | ||
|
||
- [Visual Studio Code](./vscode-extension#readme) | ||
- [Neovim](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#somesass_ls) | ||
|
||
[lsp]: https://microsoft.github.io/language-server-protocol/ | ||
[npm]: https://www.npmjs.com/package/some-sass-language-server | ||
[scss]: https://sass-lang.com/documentation/syntax/ | ||
[use]: https://sass-lang.com/documentation/at-rules/use/ | ||
[forward]: https://sass-lang.com/documentation/at-rules/forward/ | ||
[langext]: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide | ||
[sassdoc]: http://sassdoc.com | ||
[placeholder]: https://sass-lang.com/documentation/style-rules/placeholder-selectors/ | ||
[vscode]: https://code.visualstudio.com/ | ||
[vsmarketplace]: https://marketplace.visualstudio.com/items?itemName=SomewhatStationery.some-sass | ||
[openvsx]: https://open-vsx.org/extension/SomewhatStationery/some-sass | ||
[ghreleases]: https://github.com/wkillerud/some-sass/releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,47 @@ | ||
# Some Sass | ||
|
||
Hello, World! | ||
Some Sass is a [language server extension][langext] for [Visual Studio Code][vscode]. It brings improved code suggestions, documentation and code navigation for [SCSS][scss]. | ||
|
||
Some features include: | ||
|
||
- Full support for [`@use`][use] and [`@forward`][forward], including aliases, prefixes and hiding. | ||
- Workspace-wide code navigation and refactoring, such as Rename Symbol. | ||
- Rich documentation through [SassDoc][sassdoc]. | ||
- Language features for [`%placeholders`][placeholder], both when using them and writing them. | ||
|
||
![](./images/highlight-reel.gif) | ||
|
||
## Get the extension | ||
|
||
You can find the extension here: | ||
|
||
- On the [Visual Studio Code Marketplace][vsmarketplace]. | ||
- On the [Open VSX Registry][openvsx]. | ||
- In the [Releases section on GitHub][ghreleases]. | ||
|
||
See the User guide section to learn more about what the extension can do. | ||
|
||
## Some Sass Language Server | ||
|
||
Some Sass is also a language server using the [Language Server Protocol (LSP)][lsp]. | ||
|
||
The language server is [published on npm][npm], and can be used with any editor that has an LSP client. See [Getting started](./language-server/getting-started.md) to learn more. | ||
|
||
## Navigating the docs | ||
|
||
To navigate between pages you can click the arrow buttons, press the left and right arrow keys on your keyboard, or use the sidebar menu. | ||
|
||
To search click the magnifying class icon to the top left or press `s` on your keyboard. | ||
|
||
[lsp]: https://microsoft.github.io/language-server-protocol/ | ||
[npm]: https://www.npmjs.com/package/some-sass-language-server | ||
[scss]: https://sass-lang.com/documentation/syntax/ | ||
[use]: https://sass-lang.com/documentation/at-rules/use/ | ||
[forward]: https://sass-lang.com/documentation/at-rules/forward/ | ||
[langext]: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide | ||
[sassdoc]: http://sassdoc.com | ||
[placeholder]: https://sass-lang.com/documentation/style-rules/placeholder-selectors/ | ||
[vscode]: https://code.visualstudio.com/ | ||
[vsmarketplace]: https://marketplace.visualstudio.com/items?itemName=SomewhatStationery.some-sass | ||
[openvsx]: https://open-vsx.org/extension/SomewhatStationery/some-sass | ||
[ghreleases]: https://github.com/wkillerud/some-sass/releases |
Oops, something went wrong.