|
39 | 39 | }
|
40 | 40 | },
|
41 | 41 | "activationEvents": [
|
42 |
| - "onCommand:esReactSnippets.search" |
| 42 | + "onCommand:reactSnippets.search" |
43 | 43 | ],
|
44 | 44 | "contributes": {
|
45 | 45 | "commands": [
|
46 | 46 | {
|
47 |
| - "command": "esReactSnippets.search", |
| 47 | + "command": "reactSnippets.search", |
48 | 48 | "title": "Snippet search"
|
49 | 49 | }
|
50 | 50 | ],
|
51 | 51 | "keybindings": [
|
52 | 52 | {
|
53 |
| - "command": "esReactSnippets.search", |
| 53 | + "command": "reactSnippets.search", |
54 | 54 | "key": "ctrl+alt+r",
|
55 | 55 | "mac": "shift+cmd+r",
|
56 | 56 | "when": "editorTextFocus"
|
|
59 | 59 | "configuration": {
|
60 | 60 | "title": "ES React/React-Native/Redux snippets",
|
61 | 61 | "properties": {
|
62 |
| - "esReactSnippets.settings.prettierEnabled": { |
| 62 | + "reactSnippets.settings.prettierEnabled": { |
63 | 63 | "type": "boolean",
|
64 | 64 | "markdownDescription": "Integrate prettier settings with code generated from snippets.",
|
65 | 65 | "default": false
|
66 | 66 | },
|
67 |
| - "esReactSnippets.settings.importReactOnTop": { |
| 67 | + "reactSnippets.settings.importReactOnTop": { |
68 | 68 | "type": "boolean",
|
69 | 69 | "markdownDescription": "Controls if snippets should add `import React from 'react';` at the top of components.\nUse if you have React +17 and use jsx transform.",
|
70 | 70 | "default": true
|
71 | 71 | },
|
72 |
| - "esReactSnippets.settings.typescript": { |
| 72 | + "reactSnippets.settings.typescript": { |
73 | 73 | "type": "boolean",
|
74 | 74 | "markdownDescription": "Controls if React components have typescript Props typing.",
|
75 | 75 | "default": false
|
76 | 76 | },
|
77 |
| - "esReactSnippets.settings.semiColons": { |
| 77 | + "reactSnippets.settings.semiColons": { |
78 | 78 | "type": "boolean",
|
79 |
| - "markdownDescription": "Controls if snippets should use semi colons.\nOnly applies when `#esReactSnippets.settings.prettierEnabled#` is disabled", |
| 79 | + "markdownDescription": "Controls if snippets should use semi colons.\nOnly applies when `#reactSnippets.settings.prettierEnabled#` is disabled", |
80 | 80 | "default": true
|
81 | 81 | },
|
82 |
| - "esReactSnippets.settings.singleQuote": { |
| 82 | + "reactSnippets.settings.singleQuote": { |
83 | 83 | "type": "boolean",
|
84 |
| - "markdownDescription": "Controls if snippets should use single quotes.\nOnly applies when `#esReactSnippets.settings.prettierEnabled#` is disabled", |
| 84 | + "markdownDescription": "Controls if snippets should use single quotes.\nOnly applies when `#reactSnippets.settings.prettierEnabled#` is disabled", |
85 | 85 | "default": true
|
86 | 86 | },
|
87 |
| - "esReactSnippets.settings.tabWidth": { |
| 87 | + "reactSnippets.settings.tabWidth": { |
88 | 88 | "type": "number",
|
89 |
| - "markdownDescription": "Controls how many spaces snippets will have.\nOnly applies when `#esReactSnippets.settings.prettierEnabled#` is disabled", |
| 89 | + "markdownDescription": "Controls how many spaces snippets will have.\nOnly applies when `#reactSnippets.settings.prettierEnabled#` is disabled", |
90 | 90 | "default": 2
|
91 | 91 | },
|
92 |
| - "esReactSnippets.settings.typescriptComponentPropsStatePrefix": { |
| 92 | + "reactSnippets.settings.typescriptComponentPropsStatePrefix": { |
93 | 93 | "type": "string",
|
94 | 94 | "markdownDescription": "Controls which prefix for typescript snippets should use for props/state.",
|
95 | 95 | "default": "type",
|
|
99 | 99 | ]
|
100 | 100 | }
|
101 | 101 | }
|
102 |
| - } |
| 102 | + }, |
| 103 | + "snippets": [ |
| 104 | + { |
| 105 | + "language": "javascript", |
| 106 | + "path": "./src/snippets/generated.json" |
| 107 | + }, |
| 108 | + { |
| 109 | + "language": "javascriptreact", |
| 110 | + "path": "./src/snippets/generated.json" |
| 111 | + }, |
| 112 | + { |
| 113 | + "language": "typescript", |
| 114 | + "path": "./src/snippets/generated.json" |
| 115 | + }, |
| 116 | + { |
| 117 | + "language": "typescriptreact", |
| 118 | + "path": "./src/snippets/generated.json" |
| 119 | + } |
| 120 | + ] |
103 | 121 | },
|
104 | 122 | "scripts": {
|
105 | 123 | "vscode:prepublish": "yarn compile",
|
|
0 commit comments