You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,21 +38,23 @@ Execute the script by running:
39
38
npm run ng-vs-snippets
40
39
```
41
40
42
-
The script will generate a ```out.code-snippets``` file containing all the definitions. **Make sure you don't have any file with the same name** since the data contained in that file **is going to be replaced**.
41
+
The script will generate a `out.code-snippets` file containing all the definitions. **Make sure you don't have any file with the same name** since the data contained in that file **is going to be replaced**.
43
42
44
43
## Troubleshooting
45
-
Sometimes, due to VS Code configuration issues, snippets don't appear in the suggestion's dropdown. Make sure to specify, in VS Code ```settings.json``` configuration file the following properties:
44
+
45
+
Sometimes, due to VS Code configuration issues, snippets don't appear in the suggestion's dropdown. Make sure to specify, in VS Code `settings.json` configuration file the following properties:
46
46
47
47
```json
48
48
"editor.tabCompletion": "on",
49
49
"editor.snippetSuggestions": "top"
50
50
```
51
-
If this doesn't fix the problem, open the command palette and search for ```Preferences: Configure User Snippets``` to ensure the editor is considering the fille where your generated snippets are defined.
51
+
52
+
If this doesn't fix the problem, open the command palette and search for `Preferences: Configure User Snippets` to ensure the editor is considering the fille where your generated snippets are defined.
52
53
53
54
## Documentation
54
55
55
56
You can find the [full document design at this url]().
56
57
57
58
## Contributing
58
59
59
-
Pull requests are welcome :) Make sure to create an issue first so anyone's work is overlaped.
60
+
Pull requests are welcome :) Make sure to create an issue first so anyone's work is overlaped.
// we should see if the extended class is in tmp and if not extract the inputs defined inside
266
237
letmatchExtendedClass: Array<string>=
267
-
file?.match(
268
-
extendedClassSelector
269
-
)||[];
238
+
file?.match(extendedClassSelector)||[];
270
239
// resolve the path of the class
271
240
letextendedClass: string=matchExtendedClass[0]
272
241
.replace(/(\s+)/g," ")
273
242
.split(" ")[4];
274
243
logger.log("extendedClassName:",extendedClass);
275
244
letmatchExtendedClassPath: Array<string>=
276
-
file?.match(
277
-
extendedClassPathSelector
278
-
)||[];
279
-
// TODO: Document this in notes. Notice that by using path.join(path.dirname(fullComponentClassPath), relative path of the base path from ComponentClassPath) resolves into the full path of the base path
0 commit comments