Skip to content

Commit 174c4cb

Browse files
committed
docs: init docs
1 parent 3a504d4 commit 174c4cb

File tree

5 files changed

+5
-75
lines changed

5 files changed

+5
-75
lines changed

README.md

Lines changed: 4 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,10 @@
11
# antd-design-token README
22

3-
This is the README for your extension "antd-design-token". After writing up a brief description, we recommend including the following sections.
3+
VS Code extension for antd v5 design token.
44

55
## Features
66

7-
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
7+
中文
88

9-
For example if there is an image subfolder under your extension project workspace:
10-
11-
\!\[feature X\]\(images/feature-x.png\)
12-
13-
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
14-
15-
## Requirements
16-
17-
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
18-
19-
## Extension Settings
20-
21-
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22-
23-
For example:
24-
25-
This extension contributes the following settings:
26-
27-
* `myExtension.enable`: enable/disable this extension
28-
* `myExtension.thing`: set to `blah` to do something
29-
30-
## Known Issues
31-
32-
Calling out known issues can help limit users opening duplicate issues against your extension.
33-
34-
## Release Notes
35-
36-
Users appreciate release notes as you update your extension.
37-
38-
### 1.0.0
39-
40-
Initial release of ...
41-
42-
### 1.0.1
43-
44-
Fixed issue #.
45-
46-
### 1.1.0
47-
48-
Added features X, Y, and Z.
49-
50-
-----------------------------------------------------------------------------------------------------------
51-
## Following extension guidelines
52-
53-
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
54-
55-
* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)
56-
57-
## Working with Markdown
58-
59-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
60-
61-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
62-
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
63-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
64-
65-
### For more information
66-
67-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
68-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
69-
70-
**Enjoy!**
9+
1. 提供 antd design token 的 hover 值提示,例如:`颜色``数值`
10+
2. 输入时提示 token 值,注意,为了使值提示出现在提示区域前面,在输入 token 前可以先输入一个 `a`。例如输入 `padding...`,可以输入 `apadding...`

assets/hover.gif

5.27 MB
Loading

assets/type.gif

4.51 MB
Loading

package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,9 @@
1010
"Other"
1111
],
1212
"activationEvents": [
13-
"onCommand:antd-design-token.helloWorld",
1413
"onStartupFinished"
1514
],
1615
"main": "./dist/extension.js",
17-
"contributes": {
18-
"commands": [
19-
{
20-
"command": "antd-design-token.helloWorld",
21-
"title": "Hello World"
22-
}
23-
]
24-
},
2516
"scripts": {
2617
"vscode:prepublish": "yarn run package",
2718
"compile": "webpack",

src/extension.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ export function activate(context: vscode.ExtensionContext) {
5252
const value = String(fullToken[key as keyof typeof fullToken]);
5353
const item = new vscode.CompletionItem(`antd-${key}: ${value}`, 11);
5454
item.insertText = key;
55-
item.sortText = `a-${key}`;
56-
item.filterText = `a-${key}`;
55+
item.sortText = `a${key}`;
5756

5857
const colorSpan = genMarkdownString(value);
5958
let documentContent: vscode.MarkdownString | string = "";

0 commit comments

Comments
 (0)