Skip to content

Commit fe6b502

Browse files
authored
Merge pull request #49 from CodinGame/update-doc
Update documentation
2 parents c0d223c + 56a5383 commit fe6b502

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 - CodinGame
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.

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Instead of using `monaco.editor.create`, you should use the `createEditor` expos
5656
By default, monaco-editor contains worker to achieve IntelliSense in CSS, SCSS, JavaScript, TypeScript, JSON and HTML.
5757

5858
To enable them, import the following files:
59-
- JSON: `import '@codingame/monaco-editor-wrapper/dist/jsonContribution'`
60-
- JavaScript/TypeScript: `import '@codingame/monaco-editor-wrapper/dist/typescriptContribution'`
61-
- CSS/SCSS: `import '@codingame/monaco-editor-wrapper/dist/cssContribution'`
62-
- HTML: `import '@codingame/monaco-editor-wrapper/dist/htmlContribution'`
59+
- JSON: `import '@codingame/monaco-editor-wrapper/features/jsonContribution'`
60+
- JavaScript/TypeScript: `import '@codingame/monaco-editor-wrapper/features/typescriptContribution'`
61+
- CSS/SCSS: `import '@codingame/monaco-editor-wrapper/features/cssContribution'`
62+
- HTML: `import '@codingame/monaco-editor-wrapper/features/htmlContribution'`
6363

6464
#### Additional apis
6565

@@ -79,4 +79,5 @@ This library exposed some functions to manage the user global configuration:
7979
- `updateUserConfiguration` Update the user configuration, overrides the default configuration, uses the same syntax as VS Code configuration
8080
- `getConfiguration` allows to get a given configuration key in a given language
8181
- `onConfigurationChanged` listen to configuration change
82-
- `updateEditorKeybindings` allows to update the editor keybindings with the same syntax as in VS Code, or enabled Emacs/Vim keybindings
82+
- `updateKeybindings` allows to update the editor keybindings with the same syntax as in VS Code
83+
- `updateEditorKeybindingsMode` switch between `vim`, `emacs` or `classic` keybindings

0 commit comments

Comments
 (0)