@adecore/editor-react 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/CallHierarchyPanel.js +177 -181
  2. package/dist/EditorContextMenu.js +118 -105
  3. package/dist/LanguagePopups.js +7 -0
  4. package/dist/PickPopup.js +245 -104
  5. package/dist/WrapCard.d.ts +8 -0
  6. package/dist/WrapCard.js +172 -0
  7. package/dist/call-hierarchy-model.d.ts +4 -2
  8. package/dist/call-hierarchy-model.js +20 -0
  9. package/dist/call-hierarchy.d.ts +3 -0
  10. package/dist/call-hierarchy.js +54 -22
  11. package/dist/clipboard-history.d.ts +31 -0
  12. package/dist/clipboard-history.js +70 -0
  13. package/dist/code-actions.d.ts +3 -1
  14. package/dist/code-actions.js +50 -10
  15. package/dist/code-vision.js +2 -3
  16. package/dist/completion.d.ts +28 -0
  17. package/dist/completion.js +83 -27
  18. package/dist/context-menu-rows.d.ts +1 -1
  19. package/dist/context-menu-rows.js +4 -0
  20. package/dist/definition-link.js +15 -5
  21. package/dist/document-colors.d.ts +24 -0
  22. package/dist/document-colors.js +194 -0
  23. package/dist/document-links.d.ts +22 -0
  24. package/dist/document-links.js +133 -0
  25. package/dist/document-query.d.ts +15 -0
  26. package/dist/document-query.js +54 -0
  27. package/dist/edit-locations.d.ts +20 -0
  28. package/dist/edit-locations.js +136 -0
  29. package/dist/editor-language.d.ts +23 -1
  30. package/dist/editor-language.js +83 -2
  31. package/dist/emmet.d.ts +13 -0
  32. package/dist/emmet.js +62 -0
  33. package/dist/folding.js +2 -3
  34. package/dist/format-on-type.js +3 -5
  35. package/dist/highlights.js +2 -3
  36. package/dist/history.d.ts +7 -0
  37. package/dist/history.js +79 -1
  38. package/dist/host-types.d.ts +10 -0
  39. package/dist/index.d.ts +13 -2
  40. package/dist/index.js +10 -0
  41. package/dist/inlay-hints.js +2 -2
  42. package/dist/inline-completion.d.ts +39 -0
  43. package/dist/inline-completion.js +221 -0
  44. package/dist/key-priority.d.ts +9 -5
  45. package/dist/key-priority.js +11 -6
  46. package/dist/linked-editing.d.ts +26 -0
  47. package/dist/linked-editing.js +215 -0
  48. package/dist/live-templates.d.ts +16 -0
  49. package/dist/live-templates.js +289 -0
  50. package/dist/locales/en.json +61 -2
  51. package/dist/locales/nl.json +61 -2
  52. package/dist/markup-context.d.ts +55 -0
  53. package/dist/markup-context.js +408 -0
  54. package/dist/markup.d.ts +39 -0
  55. package/dist/markup.js +465 -0
  56. package/dist/navigation.js +4 -6
  57. package/dist/paste-history.d.ts +7 -0
  58. package/dist/paste-history.js +104 -0
  59. package/dist/peek.js +3 -4
  60. package/dist/pick.d.ts +21 -2
  61. package/dist/pick.js +152 -19
  62. package/dist/popups.d.ts +10 -0
  63. package/dist/popups.js +2 -1
  64. package/dist/postfix.d.ts +21 -0
  65. package/dist/postfix.js +212 -0
  66. package/dist/project-language.d.ts +20 -1
  67. package/dist/project-language.js +132 -18
  68. package/dist/rename.js +8 -11
  69. package/dist/rendered-docs.js +1 -2
  70. package/dist/selection-ranges.js +2 -3
  71. package/dist/shortcut-keys.d.ts +24 -0
  72. package/dist/signature.js +3 -6
  73. package/dist/snippet-insert.d.ts +10 -0
  74. package/dist/snippet-insert.js +217 -0
  75. package/dist/snippet-session.d.ts +2 -2
  76. package/dist/snippet-session.js +3 -3
  77. package/dist/snippet.d.ts +7 -1
  78. package/dist/snippet.js +65 -8
  79. package/dist/surround-constructs.d.ts +10 -0
  80. package/dist/surround-constructs.js +100 -0
  81. package/dist/surround.d.ts +18 -0
  82. package/dist/surround.js +399 -0
  83. package/dist/symbol-picker.js +4 -6
  84. package/dist/symbols.js +22 -3
  85. package/dist/template-builtins.d.ts +3 -0
  86. package/dist/template-builtins.js +46 -0
  87. package/dist/template-context.d.ts +12 -0
  88. package/dist/template-context.js +56 -0
  89. package/dist/templates.d.ts +59 -0
  90. package/dist/templates.js +103 -0
  91. package/dist/testing.d.ts +23 -1
  92. package/dist/testing.js +114 -0
  93. package/package.json +7 -6
  94. package/src/CallHierarchyPanel.tsx +26 -11
  95. package/src/EditorContextMenu.tsx +7 -0
  96. package/src/LanguagePopups.tsx +4 -0
  97. package/src/PickPopup.tsx +47 -5
  98. package/src/WrapCard.tsx +64 -0
  99. package/src/call-hierarchy-model.ts +25 -3
  100. package/src/call-hierarchy.ts +62 -20
  101. package/src/clipboard-history.ts +102 -0
  102. package/src/code-actions.ts +48 -11
  103. package/src/code-vision.ts +3 -3
  104. package/src/completion.ts +123 -25
  105. package/src/context-menu-rows.ts +3 -2
  106. package/src/definition-link.ts +17 -5
  107. package/src/document-colors.ts +189 -0
  108. package/src/document-links.ts +129 -0
  109. package/src/document-query.ts +71 -0
  110. package/src/edit-locations.ts +162 -0
  111. package/src/editor-language.ts +86 -3
  112. package/src/emmet-module.d.ts +44 -0
  113. package/src/emmet.ts +73 -0
  114. package/src/folding.ts +3 -3
  115. package/src/format-on-type.ts +5 -5
  116. package/src/highlights.ts +3 -3
  117. package/src/history.ts +81 -1
  118. package/src/host-types.ts +17 -0
  119. package/src/index.ts +28 -3
  120. package/src/inlay-hints.ts +2 -2
  121. package/src/inline-completion.ts +221 -0
  122. package/src/key-priority.ts +11 -6
  123. package/src/linked-editing.ts +199 -0
  124. package/src/live-templates.ts +315 -0
  125. package/src/locales/en.json +61 -2
  126. package/src/locales/nl.json +61 -2
  127. package/src/markup-context.ts +387 -0
  128. package/src/markup.ts +377 -0
  129. package/src/navigation.ts +6 -6
  130. package/src/paste-history.ts +111 -0
  131. package/src/peek.ts +4 -4
  132. package/src/pick.ts +218 -20
  133. package/src/popups.ts +21 -1
  134. package/src/postfix.ts +224 -0
  135. package/src/project-language.ts +139 -19
  136. package/src/rename.ts +11 -11
  137. package/src/rendered-docs.ts +2 -2
  138. package/src/selection-ranges.ts +3 -3
  139. package/src/signature.ts +6 -6
  140. package/src/snippet-insert.ts +258 -0
  141. package/src/snippet-session.ts +9 -4
  142. package/src/snippet.ts +82 -7
  143. package/src/surround-constructs.ts +85 -0
  144. package/src/surround.ts +430 -0
  145. package/src/symbol-picker.ts +6 -6
  146. package/src/symbols.ts +30 -4
  147. package/src/template-builtins.ts +94 -0
  148. package/src/template-context.ts +65 -0
  149. package/src/templates.ts +197 -0
  150. package/src/testing.ts +126 -1
@@ -0,0 +1,315 @@
1
+ import type { EditorPosition, EditorRange } from '@adecore/editor';
2
+ import type { CompletionItem } from '@adecore/lsp';
3
+ import type { LocalCompletionItem } from './completion.ts';
4
+ import { identifierPrefix, isIdentifierCharacter } from './completion-model.ts';
5
+ import { comparePositions } from './diagnostics-model.ts';
6
+ import type { EditorLanguage } from './editor-language.ts';
7
+ import { KEY_PRIORITY } from './key-priority.ts';
8
+ import { textBeforeOf } from './line-text.ts';
9
+ import { isShortcut } from './shortcut-keys.ts';
10
+ import { PostfixFeature } from './postfix.ts';
11
+ import { bodyWithIndentUnit, dedentLines, indentUnitOf, insertSnippet, type SnippetPlacement } from './snippet-insert.ts';
12
+ import { escapeSnippetText } from './snippet.ts';
13
+ import { SNIPPET_KIND, sortAfterServer, templateApplies, templateContextAt, type TemplateContext } from './template-context.ts';
14
+ import type { LiveTemplate } from './templates.ts';
15
+
16
+ const TOAST_ID = 'language-templates';
17
+ const IDENTIFIER_START = /[\p{L}_$]/u;
18
+
19
+ /* The live templates that apply at one caret, and where their key starts. */
20
+ interface Match {
21
+ readonly start: EditorPosition;
22
+ readonly templates: readonly LiveTemplate[];
23
+ }
24
+
25
+ /* A key other than a live template's that Tab can expand; `expand` is null where another feature expands it on the same Tab. */
26
+ interface CustomKey {
27
+ readonly start: EditorPosition;
28
+ readonly expand: (() => boolean) | null;
29
+ }
30
+
31
+ /* Sorts the rows of a list of templates by group, then key. */
32
+ function grouped(template: LiveTemplate): string {
33
+ return `${template.group ?? template.languages[0]}\u0000${template.key}`;
34
+ }
35
+
36
+ /* A key that starts in the middle of a word is no key, unless it starts with a character no word has. */
37
+ function startsInsideWord(before: string, index: number): boolean {
38
+ return index > 0 && IDENTIFIER_START.test(before[index]!) && isIdentifierCharacter(before[index - 1]!);
39
+ }
40
+
41
+ /* The longest start of `key` that the text before the caret ends with, as a number of characters; 0 when none. */
42
+ function prefixLength(key: string, before: string): number {
43
+ for (let length = Math.min(key.length, before.length); length >= 1; length--) {
44
+ if (before.endsWith(key.slice(0, length)) && !startsInsideWord(before, before.length - length)) {
45
+ return length;
46
+ }
47
+ }
48
+
49
+ return 0;
50
+ }
51
+
52
+ /*
53
+ * Live templates: a key typed before the caret and Tab expands a snippet, Insert Live Template lists the ones that
54
+ * apply, and Save as Live Template hands a selection to the host. The templates come from the registry of the
55
+ * project. Tab comes after a running snippet and before Emmet, and a key that starts before an Emmet abbreviation
56
+ * wins over it, as in IntelliJ.
57
+ */
58
+ export class TemplatesFeature {
59
+ private readonly language: EditorLanguage;
60
+ private readonly postfix: PostfixFeature;
61
+
62
+ constructor(language: EditorLanguage) {
63
+ this.language = language;
64
+ this.postfix = new PostfixFeature(language);
65
+
66
+ language.onDispose(
67
+ language.onKey((event) => {
68
+ if (event.key === 'Tab' && !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey && !event.isComposing) {
69
+ return this.expand();
70
+ }
71
+
72
+ if (isShortcut(language.shortcuts.insertLiveTemplate, event)) {
73
+ this.insert();
74
+
75
+ return true;
76
+ }
77
+
78
+ if (isShortcut(language.shortcuts.saveAsLiveTemplate, event)) {
79
+ this.saveSelection();
80
+
81
+ return true;
82
+ }
83
+
84
+ return false;
85
+ }, KEY_PRIORITY.templates)
86
+ );
87
+
88
+ language.onDispose(language.completion.addSource({ items: (request) => [...this.rows(request.position), ...this.postfix.rows(request.position)] }));
89
+ }
90
+
91
+ /*
92
+ * Expands the template whose key ends at the caret, or lists them when several share the key. False where Tab has
93
+ * nothing to expand, and where the key is an Emmet abbreviation, which the markup feature expands on the same Tab.
94
+ */
95
+ expand(): boolean {
96
+ const { editor, completion } = this.language;
97
+ const selections = editor.getSelections();
98
+
99
+ if (editor.isReadOnly?.() === true || selections.some((selection) => comparePositions(selection.start, selection.end) !== 0)) {
100
+ return false;
101
+ }
102
+
103
+ const match = this.matchAtCarets(selections.map((selection) => selection.start));
104
+ const custom = selections.length === 1 ? this.customKey() : null;
105
+
106
+ if (custom !== null && (match === null || comparePositions(match.start, custom.start) >= 0)) {
107
+ return custom.expand?.() ?? false;
108
+ }
109
+
110
+ if (match === null) {
111
+ return false;
112
+ }
113
+
114
+ if (match.templates.length === 1) {
115
+ this.expandAtCarets(match.templates[0]!, match.start);
116
+
117
+ return true;
118
+ }
119
+
120
+ completion.showItems(
121
+ match.templates.map((template) =>
122
+ this.row(template, template.key, grouped(template), { start: match.start, end: editor.getCaret() }, () =>
123
+ this.expandAtCarets(template, match.start)
124
+ )
125
+ ),
126
+ match.start
127
+ );
128
+
129
+ return true;
130
+ }
131
+
132
+ /* Lists the templates that apply, only the ones whose key or description fits the word before the caret when some do. */
133
+ insert(): void {
134
+ const { editor, completion, project } = this.language;
135
+
136
+ if (editor.isReadOnly?.() === true) {
137
+ return;
138
+ }
139
+
140
+ const selection = editor.getSelection();
141
+ const selected = comparePositions(selection.start, selection.end) !== 0;
142
+ const caret = editor.getCaret();
143
+ const before = textBeforeOf(editor, caret);
144
+ const word = selected ? '' : identifierPrefix(before);
145
+ const wordStart = { line: caret.line, character: caret.character - word.length };
146
+ const context = templateContextAt(this.language, selected ? selection.start : wordStart);
147
+ const applicable = project.templates.live.filter((template) => templateApplies(template, context));
148
+
149
+ if (applicable.length === 0) {
150
+ const title = project.i18n.t('editor:language.templates.none');
151
+
152
+ project.host.notify?.({ id: TOAST_ID, kind: 'error', title });
153
+ editor.announce(title);
154
+
155
+ return;
156
+ }
157
+
158
+ const keyed = (template: LiveTemplate): boolean => word !== '' && prefixLength(template.key, before) > 0;
159
+ const described = (template: LiveTemplate): boolean => word !== '' && (template.description?.toLowerCase().includes(word.toLowerCase()) ?? false);
160
+ const matching = applicable.filter((template) => keyed(template) || described(template));
161
+ const start = matching.length === 0 ? caret : wordStart;
162
+ const text = selected ? editor.textInRange(selection) : '';
163
+
164
+ const rows = (matching.length === 0 ? applicable : matching).map((template) =>
165
+ this.row(template, keyed(template) || matching.length === 0 ? template.key : word, grouped(template), { start, end: caret }, () => {
166
+ const range = selected ? selection : { start, end: editor.getCaret() };
167
+
168
+ void this.run(template, [{ range, selectedText: selected ? dedentLines(text) : undefined }]);
169
+ })
170
+ );
171
+
172
+ completion.showItems(rows, start);
173
+ }
174
+
175
+ /* Hands the selection to the host as a draft of a template; false without a selection or without a host that saves. */
176
+ saveSelection(): boolean {
177
+ const { editor, project } = this.language;
178
+ const selection = editor.getSelection();
179
+
180
+ if (comparePositions(selection.start, selection.end) === 0) {
181
+ editor.announce(project.i18n.t('editor:language.templates.selectToSave'));
182
+
183
+ return false;
184
+ }
185
+
186
+ if (project.host.saveAsLiveTemplate === undefined) {
187
+ return false;
188
+ }
189
+
190
+ const context = templateContextAt(this.language, selection.start);
191
+
192
+ project.host.saveAsLiveTemplate({
193
+ body: escapeSnippetText(dedentLines(editor.textInRange(selection))),
194
+ languages: [context.families[0]!],
195
+ places: [context.place]
196
+ });
197
+
198
+ return true;
199
+ }
200
+
201
+ /* The keys that compete with a live template for Tab: an Emmet abbreviation, then a postfix key. */
202
+ private customKey(): CustomKey | null {
203
+ const abbreviation = this.language.markup.abbreviationAt();
204
+
205
+ return abbreviation === null ? this.postfix.key() : { start: abbreviation, expand: null };
206
+ }
207
+
208
+ /* The templates every caret has the same key of, ending at the caret, in a context they apply in. */
209
+ private matchAtCarets(carets: readonly EditorPosition[]): Match | null {
210
+ const matches = carets.map((caret) => this.matchAt(caret));
211
+ const primary = matches.at(-1);
212
+
213
+ if (primary === null || primary === undefined) {
214
+ return null;
215
+ }
216
+
217
+ const templates = primary.templates.filter((template) => matches.every((match) => match?.templates.some((other) => other.id === template.id) === true));
218
+
219
+ return templates.length === 0 ? null : { start: primary.start, templates };
220
+ }
221
+
222
+ /*
223
+ * The templates whose key is the longest one that ends at the caret, as IntelliJ looks them up: when the longest
224
+ * key found applies nowhere, no shorter key is tried.
225
+ */
226
+ private matchAt(caret: EditorPosition): Match | null {
227
+ const { editor, project } = this.language;
228
+ const { live } = project.templates;
229
+ const before = textBeforeOf(editor, caret);
230
+ const longest = live.reduce((length, template) => Math.max(length, template.key.length), 0);
231
+
232
+ for (let length = Math.min(longest, before.length); length >= 1; length--) {
233
+ const index = before.length - length;
234
+ const key = before.slice(index);
235
+ const found = live.filter((template) => template.key === key);
236
+
237
+ if (found.length === 0 || startsInsideWord(before, index)) {
238
+ continue;
239
+ }
240
+
241
+ const start = { line: caret.line, character: index };
242
+ const context = templateContextAt(this.language, start);
243
+ const templates = found.filter((template) => templateApplies(template, context));
244
+
245
+ return templates.length === 0 ? null : { start, templates };
246
+ }
247
+
248
+ return null;
249
+ }
250
+
251
+ /* Replaces the text between `start` and the caret, as far as the primary caret is from it, at every caret. */
252
+ private expandAtCarets(template: LiveTemplate, start: EditorPosition): void {
253
+ const { editor } = this.language;
254
+ const length = Math.max(0, editor.getCaret().character - start.character);
255
+
256
+ void this.run(
257
+ template,
258
+ editor.getSelections().map((selection) => ({
259
+ range: { start: { line: selection.end.line, character: Math.max(0, selection.end.character - length) }, end: selection.end }
260
+ }))
261
+ );
262
+ }
263
+
264
+ private run(template: LiveTemplate, placements: readonly SnippetPlacement[]): Promise<boolean> {
265
+ return insertSnippet(this.language, bodyWithIndentUnit(template.body, indentUnitOf(this.language.editor)), placements);
266
+ }
267
+
268
+ /* The rows for the word before the caret, each a template whose key starts with it. */
269
+ private rows(position: EditorPosition): readonly LocalCompletionItem[] {
270
+ const { editor, project } = this.language;
271
+
272
+ if (!project.templates.settings.liveInCompletion) {
273
+ return [];
274
+ }
275
+
276
+ const before = textBeforeOf(editor, position);
277
+
278
+ if (identifierPrefix(before) === '') {
279
+ return [];
280
+ }
281
+
282
+ const contexts = new Map<number, TemplateContext>();
283
+
284
+ return project.templates.live.flatMap((template) => {
285
+ const length = prefixLength(template.key, before);
286
+
287
+ if (length === 0) {
288
+ return [];
289
+ }
290
+
291
+ const start = { line: position.line, character: position.character - length };
292
+ const context = contexts.get(length) ?? templateContextAt(this.language, start);
293
+
294
+ contexts.set(length, context);
295
+
296
+ return templateApplies(template, context)
297
+ ? [this.row(template, template.key, sortAfterServer(template.key), { start, end: position }, () => this.expandAtCarets(template, start))]
298
+ : [];
299
+ });
300
+ }
301
+
302
+ private row(template: LiveTemplate, filterText: string, sortText: string, range: EditorRange, accept: () => void): LocalCompletionItem {
303
+ const item: CompletionItem = {
304
+ label: template.key,
305
+ kind: SNIPPET_KIND,
306
+ detail: template.description,
307
+ documentation: { kind: 'markdown', value: `\`\`\`\n${template.body}\n\`\`\`` },
308
+ filterText,
309
+ sortText,
310
+ textEdit: { range, newText: template.key }
311
+ };
312
+
313
+ return { item, accept };
314
+ }
315
+ }
@@ -70,6 +70,12 @@
70
70
  "delete": "Deletes"
71
71
  }
72
72
  },
73
+ "markup": {
74
+ "wrap": "Wrap with abbreviation",
75
+ "placeholder": "Abbreviation, such as div.card>p",
76
+ "apply": "Wrap",
77
+ "invalid": "Not an abbreviation"
78
+ },
73
79
  "navigation": {
74
80
  "unavailable": "Not available here",
75
81
  "none": "Nothing found",
@@ -119,13 +125,30 @@
119
125
  "site": "Call {{current}} of {{total}}",
120
126
  "previousSite": "Previous call",
121
127
  "nextSite": "Next call",
128
+ "typesUnavailable": "Type hierarchy unavailable in this file",
129
+ "typesNone": "No type here",
130
+ "typesFailed": "Could not look up types: {{message}}",
131
+ "typesLabel": "Type hierarchy",
132
+ "supertypes": "Supertypes",
133
+ "subtypes": "Subtypes",
134
+ "noSupertypes": "No supertypes",
135
+ "noSubtypes": "No subtypes",
122
136
  "announce": {
123
137
  "incoming_one": "{{count}} caller of {{name}}",
124
138
  "incoming_other": "{{count}} callers of {{name}}",
125
139
  "outgoing_one": "{{count}} callee of {{name}}",
126
- "outgoing_other": "{{count}} callees of {{name}}"
140
+ "outgoing_other": "{{count}} callees of {{name}}",
141
+ "supertypes_one": "{{count}} supertype of {{name}}",
142
+ "supertypes_other": "{{count}} supertypes of {{name}}",
143
+ "subtypes_one": "{{count}} subtype of {{name}}",
144
+ "subtypes_other": "{{count}} subtypes of {{name}}"
127
145
  }
128
146
  },
147
+ "colors": {
148
+ "swatch": "Color {{color}}",
149
+ "title": "Color",
150
+ "other": "Pick another color…"
151
+ },
129
152
  "codeVision": {
130
153
  "usagesNone": "No usages",
131
154
  "usages_one": "{{formatted}} usage",
@@ -192,6 +215,40 @@
192
215
  "history": {
193
216
  "recent": "Recent locations"
194
217
  },
218
+ "pasteHistory": {
219
+ "title": "Choose Content to Paste",
220
+ "empty": "Nothing was copied yet"
221
+ },
222
+ "templates": {
223
+ "none": "No templates defined in this context",
224
+ "selectToSave": "Select the text to save as a live template"
225
+ },
226
+ "postfix": {
227
+ "expressions": "Expressions"
228
+ },
229
+ "surround": {
230
+ "title": "Surround With",
231
+ "selectTemplate": "Select Template",
232
+ "liveTemplates": "Live templates",
233
+ "configure": "Configure live templates…",
234
+ "comments": "{{construct}} Comments",
235
+ "none": "Couldn't find Surround With variants applicable to the current context",
236
+ "noTemplates": "No surround templates defined in this context",
237
+ "unwrap": {
238
+ "title": "Choose the statement to unwrap/remove",
239
+ "if": "Unwrap 'if...'",
240
+ "else": "Unwrap 'else...'",
241
+ "removeElse": "Remove 'else...'",
242
+ "for": "Unwrap 'for...'",
243
+ "while": "Unwrap 'while...'",
244
+ "do": "Unwrap 'do...'",
245
+ "try": "Unwrap 'try...'",
246
+ "removeCatch": "Remove 'catch...'",
247
+ "removeFinally": "Remove 'finally...'",
248
+ "braces": "Unwrap braces",
249
+ "tag": "Remove enclosing tag: {{name}}"
250
+ }
251
+ },
195
252
  "announce": {
196
253
  "problem": "{{severity}}: {{message}}",
197
254
  "severity": {
@@ -236,10 +293,12 @@
236
293
  "goToTypeDefinition": "Go to type definition",
237
294
  "goToImplementation": "Go to implementation",
238
295
  "callHierarchy": "Call hierarchy",
296
+ "typeHierarchy": "Type hierarchy",
239
297
  "peekReferences": "Peek references",
240
298
  "renameSymbol": "Rename symbol",
241
299
  "codeActions": "Code actions",
242
- "formatDocument": "Format document"
300
+ "formatDocument": "Format document",
301
+ "formatSelection": "Format selection"
243
302
  },
244
303
  "find": {
245
304
  "label": "Find",
@@ -70,6 +70,12 @@
70
70
  "delete": "Verwijdert"
71
71
  }
72
72
  },
73
+ "markup": {
74
+ "wrap": "Omwikkelen met afkorting",
75
+ "placeholder": "Afkorting, zoals div.card>p",
76
+ "apply": "Omwikkelen",
77
+ "invalid": "Geen geldige afkorting"
78
+ },
73
79
  "navigation": {
74
80
  "unavailable": "Hier niet beschikbaar",
75
81
  "none": "Niets gevonden",
@@ -119,13 +125,30 @@
119
125
  "site": "Aanroep {{current}} van {{total}}",
120
126
  "previousSite": "Vorige aanroep",
121
127
  "nextSite": "Volgende aanroep",
128
+ "typesUnavailable": "Typehiërarchie niet beschikbaar in dit bestand",
129
+ "typesNone": "Hier geen type",
130
+ "typesFailed": "Kon de types niet opzoeken: {{message}}",
131
+ "typesLabel": "Typehiërarchie",
132
+ "supertypes": "Supertypes",
133
+ "subtypes": "Subtypes",
134
+ "noSupertypes": "Geen supertypes",
135
+ "noSubtypes": "Geen subtypes",
122
136
  "announce": {
123
137
  "incoming_one": "{{count}} aanroeper van {{name}}",
124
138
  "incoming_other": "{{count}} aanroepers van {{name}}",
125
139
  "outgoing_one": "{{count}} aangeroepen door {{name}}",
126
- "outgoing_other": "{{count}} aangeroepen door {{name}}"
140
+ "outgoing_other": "{{count}} aangeroepen door {{name}}",
141
+ "supertypes_one": "{{count}} supertype van {{name}}",
142
+ "supertypes_other": "{{count}} supertypes van {{name}}",
143
+ "subtypes_one": "{{count}} subtype van {{name}}",
144
+ "subtypes_other": "{{count}} subtypes van {{name}}"
127
145
  }
128
146
  },
147
+ "colors": {
148
+ "swatch": "Kleur {{color}}",
149
+ "title": "Kleur",
150
+ "other": "Andere kleur kiezen…"
151
+ },
129
152
  "codeVision": {
130
153
  "usagesNone": "Niet gebruikt",
131
154
  "usages_one": "{{formatted}} keer gebruikt",
@@ -192,6 +215,40 @@
192
215
  "history": {
193
216
  "recent": "Recente plekken"
194
217
  },
218
+ "pasteHistory": {
219
+ "title": "Kies wat je plakt",
220
+ "empty": "Er is nog niets gekopieerd"
221
+ },
222
+ "templates": {
223
+ "none": "Geen sjablonen gedefinieerd in deze context",
224
+ "selectToSave": "Selecteer de tekst die je als live sjabloon wilt opslaan"
225
+ },
226
+ "postfix": {
227
+ "expressions": "Expressies"
228
+ },
229
+ "surround": {
230
+ "title": "Omring met",
231
+ "selectTemplate": "Kies een sjabloon",
232
+ "liveTemplates": "Live sjablonen",
233
+ "configure": "Live sjablonen instellen…",
234
+ "comments": "{{construct}}-commentaar",
235
+ "none": "Geen Omring met-varianten gevonden voor de huidige context",
236
+ "noTemplates": "Geen omringende sjablonen gedefinieerd in deze context",
237
+ "unwrap": {
238
+ "title": "Kies het statement om uit te pakken of te verwijderen",
239
+ "if": "'if...' uitpakken",
240
+ "else": "'else...' uitpakken",
241
+ "removeElse": "'else...' verwijderen",
242
+ "for": "'for...' uitpakken",
243
+ "while": "'while...' uitpakken",
244
+ "do": "'do...' uitpakken",
245
+ "try": "'try...' uitpakken",
246
+ "removeCatch": "'catch...' verwijderen",
247
+ "removeFinally": "'finally...' verwijderen",
248
+ "braces": "Accolades uitpakken",
249
+ "tag": "Omringende tag verwijderen: {{name}}"
250
+ }
251
+ },
195
252
  "announce": {
196
253
  "problem": "{{severity}}: {{message}}",
197
254
  "severity": {
@@ -236,10 +293,12 @@
236
293
  "goToTypeDefinition": "Ga naar typedefinitie",
237
294
  "goToImplementation": "Ga naar implementatie",
238
295
  "callHierarchy": "Aanroephiërarchie",
296
+ "typeHierarchy": "Typehiërarchie",
239
297
  "peekReferences": "Bekijk referenties",
240
298
  "renameSymbol": "Symbool hernoemen",
241
299
  "codeActions": "Codeacties",
242
- "formatDocument": "Document formatteren"
300
+ "formatDocument": "Document formatteren",
301
+ "formatSelection": "Selectie formatteren"
243
302
  },
244
303
  "find": {
245
304
  "label": "Zoeken",