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
Added tiny screencasts for VS Code editor features
Added small section about ```cds highlighting on GitHub
All videos are ~600 kB total.
See internal version for preview
---------
Co-authored-by: Christian Georgi <[email protected]>
- Navigate to translation definitions from translation IDs like `'{i18n>customerName}'`.
192
-
- Show translations on hover.
193
-
- Quickfix to maintain missing translations
297
+
- Navigate to translation definitions from translation IDs like `'{i18n>customerName}'`
298
+
- Show translations on hover
299
+
300
+
</div>
301
+
302
+
</div>
194
303
195
304
#### And More…
196
305
197
306
- Plugin framework for external handlers of annotation domains
307
+
- Dependency graph visualization
198
308
199
309
200
310
### Settings
201
311
202
-
##### Code formatting settings
312
+
##### Code formatting
203
313
204
314
These are settings coming with the CDS language server implementation.
205
315
Use the command *CDS: Show Formatting Options Configuration*.
@@ -287,29 +397,14 @@ Use the command from the context menu on a folder or CDS file.
287
397
288
398
A selection popup appears to choose one of three modes:
289
399
290
-
1._File to file_ (detailed)
291
-
2._File to file_ (reduced to folders)
292
-
3._Complete folder to complete folder_
293
-
294
-
The _first option_ shows every model file on its own.
295
-
For very large models, the number of files and interdependencies may be too complex to be graphically shown.
296
-
A message about insufficient memory will appear. In this case use the second option.
297
-
298
-
The _second option_ reduces the graph by only showing the folders of all involved files and their interdependencies.
299
-
::: tip
300
-
Only those files are evaluated that are reachable from the start model where the command was invoked on.
301
-
:::
302
-
303
-
The _third option_ always considers all files in a folder and their dependencies.
400
+
1.**_File to file_ (detailed)**: shows every model file on its own. For very large models, the number of files and interdependencies may be too complex to be graphically shown. A message about insufficient memory will appear. In this case use the second option.
401
+
2.**_File to file_ (reduced to folders)**: reduces the graph by only showing the folders of all involved files and their interdependencies. Only the files reachable from the start model where the command was invoked on are evaluated.
402
+
4.**_Complete folder to complete folder_**: always considers all files in a folder and their dependencies.
304
403
This can be useful to understand architectural violations.
305
-
> **Example for architectural violation:**<br>
306
-
> You want a clean layering in your project: _app_ -> _srv_ -> _db_. With this option, you can visualize and identify that there is a dependency from a file in the service layer to an annotation file in the application layer.
307
-
308
-
309
-
Hovering over a node will show the number of files involved and the combined size of all involved files. Use this function to get a rough understanding about the complexity and the compilation speed.
310
-
311
-
The command requires the third-party extension _Graphviz (dot) language support for Visual Studio Code_ (joaompinto.vscode-graphviz). If you haven't installed it already, it will be suggested to install.
404
+
> **Example for architectural violation:**<br>
405
+
> You want a clean layering in your project: _app_ → _srv_ → _db_. With this option, you can visualize and identify that there is a dependency from a file in the service layer to an annotation file in the application layer.
312
406
407
+
Hovering over a node will show the number of files involved and their combined size. Use this function to get a rough understanding about complexity and compilation speed.
313
408
314
409
### Editor Performance
315
410
@@ -372,6 +467,21 @@ Use `-f` switch to force an overwrite without creating a backup.
372
467
This is on your own risk. Should there be problems data loss might occur, especially when formatting in a pre-commit hook.
373
468
Better add _.bak_ to your _.gitignore_ file and not use `-f`.
374
469
470
+
### GitHub Integration
471
+
472
+
CAP is registered with GitHub [`linguist`](https://github.com/github-linguist/linguist) repository, which means you can use Markdown rendering on GitHub in `cds` code fences like so:
0 commit comments