Skip to content

Commit 635d0ba

Browse files
phatnguyenuitJason3S
authored andcommitted
Add vietnamese-extension
1 parent 69457ac commit 635d0ba

15 files changed

+520
-0
lines changed

extensions/vietnamese/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
out
2+
node_modules
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11+
"stopOnEntry": false,
12+
"sourceMaps": true,
13+
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
14+
"preLaunchTask": "npm: build"
15+
},
16+
{
17+
"name": "Launch Tests",
18+
"type": "extensionHost",
19+
"request": "launch",
20+
"runtimeExecutable": "${execPath}",
21+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
22+
"stopOnEntry": false,
23+
"sourceMaps": true,
24+
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
25+
"preLaunchTask": "npm: build"
26+
}
27+
]
28+
}
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"identifier": "build",
8+
"label": "build",
9+
"type": "npm",
10+
"script": "build",
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"problemMatcher": "$tsc"
16+
},
17+
{
18+
"identifier": "clean-build",
19+
"type": "npm",
20+
"script": "build",
21+
"problemMatcher": "$tsc"
22+
},
23+
{
24+
"identifier": "test",
25+
"type": "npm",
26+
"script": "test",
27+
"group": {
28+
"kind": "test",
29+
"isDefault": true
30+
}
31+
},
32+
{
33+
"identifier": "watch",
34+
"type": "npm",
35+
"script": "watch",
36+
"problemMatcher": ["$tsc-watch"]
37+
}
38+
]
39+
}

extensions/vietnamese/.vscodeignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.vscode/**
2+
.vscode-test/**
3+
out/test/**
4+
test/**
5+
src/**
6+
**/*.map
7+
.gitignore
8+
tsconfig.json
9+
vsc-extension-quickstart.md

extensions/vietnamese/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
All notable changes to the "code-spell-checker-vietnamese" extension will be documented in this file.
3+
4+
## [Unreleased]
5+
- Initial release
6+
7+
## References
8+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
9+

extensions/vietnamese/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Jason Dent
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

extensions/vietnamese/README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Vietnamese - Code Spell Checker
2+
3+
Vietnamese dictionary extension for VS Code.
4+
5+
Imports the Vietnamese spell checking dictionary for [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker).
6+
7+
8+
9+
## Installation
10+
11+
After this extension is installed, it is necessary to tell the spell checker to use it.
12+
13+
### Enable Dictionary
14+
15+
Commands (use `F1` or *View -> Command Palette...*):
16+
- `F1` `Show Spell Checker Configuration Info`
17+
- Select the `Language` tab.
18+
- Enable the language Globally or in just the Workspace.
19+
20+
### Disable Dictionary
21+
22+
Commands (use `F1` or *View -> Command Palette...*):
23+
- `F1` `Show Spell Checker Configuration Info`
24+
- Select the `Language` tab.
25+
- Disable the language Globally or in just the Workspace.
26+
27+
### Manual Settings
28+
29+
This is done with the `language` setting.
30+
31+
*Preferences* -> *Settings*
32+
33+
Adding `vi` to the `cSpell.language` setting, will enable the Vietnamese dictionary.
34+
Example using both English and Vietnamese dictionaries:
35+
```javascript
36+
"cSpell.language": "en,vi",
37+
```
38+
39+
40+
41+
## Requirements
42+
This extension will automatically include [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) extension.
199 KB
Loading

extensions/vietnamese/package-lock.json

+118
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/vietnamese/package.json

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"name": "code-spell-checker-vietnamese",
3+
"description": "Vietnamese dictionary extension for VS Code.",
4+
"version": "0.1.0",
5+
"displayName": "Vietnamese - Code Spell Checker",
6+
"icon": "images/SpellCheck.png",
7+
"preview": true,
8+
"private": true,
9+
"publisher": "streetsidesoftware",
10+
"engines": {
11+
"vscode": "^1.48.0"
12+
},
13+
"extensionKind": [
14+
"workspace"
15+
],
16+
"categories": [
17+
"Linters",
18+
"Other"
19+
],
20+
"keywords": [
21+
"Vietnamese",
22+
"VS Code Extension",
23+
"Spelling Checker",
24+
"dictionary",
25+
"spelling"
26+
],
27+
"activationEvents": [
28+
"*"
29+
],
30+
"qna": "marketplace",
31+
"main": "./out/src/extension",
32+
"contributes": {
33+
"commands": [
34+
{
35+
"command": "cSpellExt_vietnamese.enableVietnamese",
36+
"title": "Enable Vietnamese Spell Checker Dictionary"
37+
},
38+
{
39+
"command": "cSpellExt_vietnamese.disableVietnamese",
40+
"title": "Disable Vietnamese Spell Checker Dictionary"
41+
},
42+
{
43+
"command": "cSpellExt_vietnamese.enableVietnameseWorkspace",
44+
"title": "Enable Vietnamese Spell Checker Dictionary in Workspace"
45+
},
46+
{
47+
"command": "cSpellExt_vietnamese.disableVietnameseWorkspace",
48+
"title": "Disable Vietnamese Spell Checker Dictionary in Workspace"
49+
}
50+
]
51+
},
52+
"extensionDependencies": [
53+
"streetsidesoftware.code-spell-checker"
54+
],
55+
"repository": {
56+
"type": "git",
57+
"url": "https://github.com/streetsidesoftware/vscode-cspell-dict-extensions"
58+
},
59+
"bugs": {
60+
"url": "https://github.com/streetsidesoftware/vscode-cspell-dict-extensions/issues"
61+
},
62+
"license": "MIT",
63+
"scripts": {
64+
"clean": "rimraf out",
65+
"clean-build": "npm run clean && npm run build",
66+
"publish-extension": "vsce publish",
67+
"vscode:prepublish": "npm run build",
68+
"build": "tsc -p ./",
69+
"prepare": "npm run build",
70+
"watch": "tsc -watch -p ./",
71+
"test": "node ../../node_modules/vscode/bin/test"
72+
},
73+
"dependencies": {
74+
"cspell-dict-vi-vn": "^1.0.12"
75+
},
76+
"devDependencies": {
77+
"typescript": "^4.0.3"
78+
}
79+
}

0 commit comments

Comments
 (0)