@adecore/editor-react 0.42.0 → 0.43.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 (122) 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 +190 -70
  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.js +10 -15
  17. package/dist/context-menu-rows.d.ts +1 -1
  18. package/dist/context-menu-rows.js +4 -0
  19. package/dist/definition-link.js +15 -5
  20. package/dist/document-colors.d.ts +24 -0
  21. package/dist/document-colors.js +194 -0
  22. package/dist/document-links.d.ts +22 -0
  23. package/dist/document-links.js +133 -0
  24. package/dist/document-query.d.ts +15 -0
  25. package/dist/document-query.js +54 -0
  26. package/dist/edit-locations.d.ts +20 -0
  27. package/dist/edit-locations.js +136 -0
  28. package/dist/editor-language.d.ts +19 -1
  29. package/dist/editor-language.js +77 -2
  30. package/dist/emmet.d.ts +13 -0
  31. package/dist/emmet.js +62 -0
  32. package/dist/folding.js +2 -3
  33. package/dist/format-on-type.js +3 -5
  34. package/dist/highlights.js +2 -3
  35. package/dist/history.d.ts +7 -0
  36. package/dist/history.js +79 -1
  37. package/dist/host-types.d.ts +6 -0
  38. package/dist/index.d.ts +11 -2
  39. package/dist/index.js +8 -0
  40. package/dist/inlay-hints.js +2 -2
  41. package/dist/inline-completion.d.ts +39 -0
  42. package/dist/inline-completion.js +221 -0
  43. package/dist/key-priority.d.ts +8 -5
  44. package/dist/key-priority.js +9 -6
  45. package/dist/linked-editing.d.ts +26 -0
  46. package/dist/linked-editing.js +215 -0
  47. package/dist/locales/en.json +31 -2
  48. package/dist/locales/nl.json +31 -2
  49. package/dist/markup-context.d.ts +37 -0
  50. package/dist/markup-context.js +291 -0
  51. package/dist/markup.d.ts +36 -0
  52. package/dist/markup.js +453 -0
  53. package/dist/navigation.js +4 -6
  54. package/dist/paste-history.d.ts +7 -0
  55. package/dist/paste-history.js +104 -0
  56. package/dist/peek.js +3 -4
  57. package/dist/pick.d.ts +20 -2
  58. package/dist/pick.js +141 -18
  59. package/dist/popups.d.ts +9 -0
  60. package/dist/popups.js +2 -1
  61. package/dist/project-language.d.ts +18 -1
  62. package/dist/project-language.js +129 -18
  63. package/dist/rename.js +8 -11
  64. package/dist/rendered-docs.js +1 -2
  65. package/dist/selection-ranges.js +2 -3
  66. package/dist/shortcut-keys.d.ts +19 -0
  67. package/dist/signature.js +3 -6
  68. package/dist/snippet-session.d.ts +2 -2
  69. package/dist/snippet-session.js +3 -3
  70. package/dist/symbol-picker.js +4 -6
  71. package/dist/symbols.js +22 -3
  72. package/dist/testing.d.ts +23 -1
  73. package/dist/testing.js +114 -0
  74. package/package.json +7 -6
  75. package/src/CallHierarchyPanel.tsx +26 -11
  76. package/src/EditorContextMenu.tsx +7 -0
  77. package/src/LanguagePopups.tsx +4 -0
  78. package/src/PickPopup.tsx +40 -5
  79. package/src/WrapCard.tsx +64 -0
  80. package/src/call-hierarchy-model.ts +25 -3
  81. package/src/call-hierarchy.ts +62 -20
  82. package/src/clipboard-history.ts +102 -0
  83. package/src/code-actions.ts +48 -11
  84. package/src/code-vision.ts +3 -3
  85. package/src/completion.ts +15 -15
  86. package/src/context-menu-rows.ts +3 -2
  87. package/src/definition-link.ts +17 -5
  88. package/src/document-colors.ts +189 -0
  89. package/src/document-links.ts +129 -0
  90. package/src/document-query.ts +71 -0
  91. package/src/edit-locations.ts +162 -0
  92. package/src/editor-language.ts +80 -3
  93. package/src/emmet-module.d.ts +44 -0
  94. package/src/emmet.ts +73 -0
  95. package/src/folding.ts +3 -3
  96. package/src/format-on-type.ts +5 -5
  97. package/src/highlights.ts +3 -3
  98. package/src/history.ts +81 -1
  99. package/src/host-types.ts +10 -0
  100. package/src/index.ts +12 -3
  101. package/src/inlay-hints.ts +2 -2
  102. package/src/inline-completion.ts +221 -0
  103. package/src/key-priority.ts +9 -6
  104. package/src/linked-editing.ts +199 -0
  105. package/src/locales/en.json +31 -2
  106. package/src/locales/nl.json +31 -2
  107. package/src/markup-context.ts +262 -0
  108. package/src/markup.ts +367 -0
  109. package/src/navigation.ts +6 -6
  110. package/src/paste-history.ts +111 -0
  111. package/src/peek.ts +4 -4
  112. package/src/pick.ts +201 -19
  113. package/src/popups.ts +19 -1
  114. package/src/project-language.ts +136 -19
  115. package/src/rename.ts +11 -11
  116. package/src/rendered-docs.ts +2 -2
  117. package/src/selection-ranges.ts +3 -3
  118. package/src/signature.ts +6 -6
  119. package/src/snippet-session.ts +9 -4
  120. package/src/symbol-picker.ts +6 -6
  121. package/src/symbols.ts +30 -4
  122. package/src/testing.ts +126 -1
@@ -0,0 +1,221 @@
1
+ import type { EditorPosition, EditorTextChange } from '@adecore/editor';
2
+ import type { InlineCompletionItem, InlineCompletionResult, Range } from '@adecore/lsp';
3
+ import { comparePositions } from './diagnostics-model.ts';
4
+ import type { EditorLanguage } from './editor-language.ts';
5
+ import { KEY_PRIORITY } from './key-priority.ts';
6
+ import { isShortcut } from './shortcut-keys.ts';
7
+ import { parseSnippet } from './snippet.ts';
8
+ import { realTimers, type Timers } from './timers.ts';
9
+
10
+ const METHOD = 'textDocument/inlineCompletion';
11
+ /* How long typing rests before a suggestion is asked. */
12
+ const DELAY_MS = 300;
13
+
14
+ /* A suggestion as the text it inserts at the caret: what follows what was already typed of it. */
15
+ export interface InlineSuggestion {
16
+ readonly item: InlineCompletionItem;
17
+ /* What replaces `range` on acceptance. */
18
+ readonly text: string;
19
+ readonly range: Range;
20
+ /* What the ghost shows after the caret. */
21
+ readonly rest: string;
22
+ }
23
+
24
+ export function itemsOf(result: InlineCompletionResult): InlineCompletionItem[] {
25
+ if (result === null) {
26
+ return [];
27
+ }
28
+ return Array.isArray(result) ? result : result.items;
29
+ }
30
+
31
+ /*
32
+ * A server's item as a suggestion at the caret, or null when it does not continue what the line holds: the text the
33
+ * item replaces up to the caret must start its insert text, so the rest can stand after the caret.
34
+ */
35
+ export function suggestionOf(item: InlineCompletionItem, caret: EditorPosition, textOf: (range: Range) => string): InlineSuggestion | null {
36
+ const text = typeof item.insertText === 'string' ? item.insertText : parseSnippet(item.insertText.value).text;
37
+ const range = item.range ?? { start: caret, end: caret };
38
+ if (comparePositions(range.start, caret) > 0 || comparePositions(range.end, caret) < 0) {
39
+ return null;
40
+ }
41
+ const typed = textOf({ start: range.start, end: caret });
42
+ if (!text.startsWith(typed)) {
43
+ return null;
44
+ }
45
+ const rest = text.slice(typed.length);
46
+ return rest === '' ? null : { item, text, range, rest };
47
+ }
48
+
49
+ /*
50
+ * Suggestions a server writes ahead of the caret, drawn as ghost text: asked a moment after typing stops, or at
51
+ * once with the `suggestInline` key of the host. Tab takes the suggestion, Alt+] and Alt+[ step through the others,
52
+ * Escape and any key that moves away put it away. Off unless the host turns it on, since a host may draw
53
+ * suggestions of its own in the same place.
54
+ */
55
+ export class InlineCompletionFeature {
56
+ private readonly language: EditorLanguage;
57
+ private readonly timers: Timers;
58
+ private enabled = false;
59
+ private suggestions: InlineSuggestion[] = [];
60
+ private index = 0;
61
+ private timer: unknown = null;
62
+ private controller: AbortController | null = null;
63
+ private revision = 0;
64
+ private accepting = false;
65
+
66
+ constructor(language: EditorLanguage, timers: Timers = realTimers) {
67
+ this.language = language;
68
+ this.timers = timers;
69
+ const { editor } = language;
70
+ const offs = [
71
+ language.onKey((event) => this.key(event), KEY_PRIORITY.inlineCompletion),
72
+ editor.onTextChange((change) => this.edited(change)),
73
+ editor.onCaret(() => queueMicrotask(() => this.moved()))
74
+ ];
75
+ language.onDispose(() => {
76
+ this.hide();
77
+ for (const off of offs) {
78
+ off();
79
+ }
80
+ });
81
+ }
82
+
83
+ get supported(): boolean {
84
+ const { service } = this.language;
85
+ return service.inlineCompletions !== undefined && service.supports(METHOD, this.language.uri);
86
+ }
87
+
88
+ get isEnabled(): boolean {
89
+ return this.enabled;
90
+ }
91
+
92
+ /* The suggestion drawn now, or null. */
93
+ get current(): InlineSuggestion | null {
94
+ return this.suggestions[this.index] ?? null;
95
+ }
96
+
97
+ configure(settings: { readonly enabled?: boolean }): void {
98
+ this.enabled = settings.enabled === true;
99
+ if (!this.enabled) {
100
+ this.hide();
101
+ }
102
+ }
103
+
104
+ /* Asks for suggestions at the caret now, as a person asking for one does. */
105
+ trigger(): void {
106
+ this.timers.clear(this.timer);
107
+ void this.ask(1);
108
+ }
109
+
110
+ /* Takes the drawn suggestion into the text; false when there is none. */
111
+ accept(): boolean {
112
+ const suggestion = this.current;
113
+ if (suggestion === null) {
114
+ return false;
115
+ }
116
+ const { editor, service, uri } = this.language;
117
+ this.accepting = true;
118
+ try {
119
+ editor.applyEdits([{ range: suggestion.range, text: suggestion.text }]);
120
+ } finally {
121
+ this.accepting = false;
122
+ }
123
+ this.hide();
124
+ const { command } = suggestion.item;
125
+ if (command !== undefined && service.supports('workspace/executeCommand', uri)) {
126
+ void service.executeCommand(uri, command).catch(() => undefined);
127
+ }
128
+ return true;
129
+ }
130
+
131
+ /* Steps to the next or the previous suggestion. */
132
+ cycle(step: 1 | -1): void {
133
+ if (this.suggestions.length > 1) {
134
+ this.index = (this.index + step + this.suggestions.length) % this.suggestions.length;
135
+ this.draw();
136
+ }
137
+ }
138
+
139
+ hide(): void {
140
+ this.revision++;
141
+ this.timers.clear(this.timer);
142
+ this.controller?.abort();
143
+ if (this.suggestions.length > 0) {
144
+ this.suggestions = [];
145
+ this.language.editor.setGhostText(null);
146
+ }
147
+ }
148
+
149
+ private key(event: KeyboardEvent): boolean {
150
+ if (isShortcut(this.language.shortcuts.suggestInline, event) && this.enabled) {
151
+ this.trigger();
152
+ return true;
153
+ }
154
+ if (this.current === null || event.isComposing) {
155
+ return false;
156
+ }
157
+ if (event.key === 'Tab' && !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey) {
158
+ return this.accept();
159
+ }
160
+ if (event.key === 'Escape') {
161
+ this.hide();
162
+ return true;
163
+ }
164
+ if (event.altKey && !event.ctrlKey && !event.metaKey && (event.code === 'BracketRight' || event.code === 'BracketLeft')) {
165
+ this.cycle(event.code === 'BracketRight' ? 1 : -1);
166
+ return true;
167
+ }
168
+ return false;
169
+ }
170
+
171
+ private edited(change: EditorTextChange): void {
172
+ if (this.accepting) {
173
+ return;
174
+ }
175
+ this.hide();
176
+ if (this.enabled && change.source === 'input' && this.supported) {
177
+ this.timer = this.timers.set(() => void this.ask(2), DELAY_MS);
178
+ }
179
+ }
180
+
181
+ /* A caret that left the place of the suggestion puts it away. */
182
+ private moved(): void {
183
+ const suggestion = this.current;
184
+ if (suggestion === null) {
185
+ return;
186
+ }
187
+ const caret = this.language.editor.getCaret();
188
+ const selections = this.language.editor.getSelections();
189
+ if (selections.length !== 1 || suggestionOf(suggestion.item, caret, (range) => this.language.editor.textInRange(range)) === null) {
190
+ this.hide();
191
+ }
192
+ }
193
+
194
+ private async ask(triggerKind: 1 | 2): Promise<void> {
195
+ const { editor, service, uri } = this.language;
196
+ if (!this.enabled || !this.supported || editor.getSelections().length !== 1 || editor.isReadOnly?.() === true) {
197
+ return;
198
+ }
199
+ this.controller?.abort();
200
+ const controller = new AbortController();
201
+ this.controller = controller;
202
+ const revision = this.revision;
203
+ const caret = editor.getCaret();
204
+ try {
205
+ const result = await service.inlineCompletions!(uri, caret, { triggerKind }, { signal: controller.signal });
206
+ if (revision !== this.revision || comparePositions(editor.getCaret(), caret) !== 0) {
207
+ return;
208
+ }
209
+ this.suggestions = itemsOf(result).flatMap((item) => suggestionOf(item, caret, (range) => editor.textInRange(range)) ?? []);
210
+ this.index = 0;
211
+ this.draw();
212
+ } catch {
213
+ // A refusal or a failing server is no suggestion; the next pause asks again.
214
+ }
215
+ }
216
+
217
+ private draw(): void {
218
+ const suggestion = this.current;
219
+ this.language.editor.setGhostText(suggestion === null ? null : { position: this.language.editor.getCaret(), text: suggestion.rest });
220
+ }
221
+ }
@@ -5,11 +5,12 @@ import type { EditorKeyHandler } from '@adecore/editor';
5
5
  * apart, so a handler of the app can stand between two features; 0, the default, comes after all of them.
6
6
  */
7
7
  export const KEY_PRIORITY = {
8
- pick: 1500,
9
- diagnostics: 1400,
10
- hover: 1300,
11
- completion: 1200,
12
- snippets: 1100,
8
+ pick: 1600,
9
+ diagnostics: 1500,
10
+ hover: 1400,
11
+ completion: 1300,
12
+ snippets: 1200,
13
+ markup: 1100,
13
14
  signature: 1000,
14
15
  highlights: 900,
15
16
  codeActions: 800,
@@ -19,7 +20,9 @@ export const KEY_PRIORITY = {
19
20
  callHierarchy: 400,
20
21
  symbolPicker: 300,
21
22
  history: 200,
22
- renderedDocs: 100
23
+ renderedDocs: 100,
24
+ pasteHistory: 50,
25
+ inlineCompletion: 25
23
26
  } as const;
24
27
 
25
28
  interface Entry {
@@ -0,0 +1,199 @@
1
+ import type { EditorTextChange } from '@adecore/editor';
2
+ import type { LinkedEditingRanges } from '@adecore/lsp';
3
+ import type { EditorLanguage } from './editor-language.ts';
4
+ import { realTimers, type Timers } from './timers.ts';
5
+
6
+ const METHOD = 'textDocument/linkedEditingRange';
7
+ /* How long the caret rests before the ranges around it are asked. */
8
+ const DELAY_MS = 100;
9
+
10
+ interface Span {
11
+ from: number;
12
+ to: number;
13
+ }
14
+
15
+ interface Session {
16
+ /* Offsets in the current text, in the order the server gave them. */
17
+ spans: Span[];
18
+ pattern: RegExp | null;
19
+ }
20
+
21
+ /* The server's word pattern, anchored, or null when it gave none or one that does not compile. */
22
+ export function wordPatternOf(ranges: LinkedEditingRanges): RegExp | null {
23
+ if (ranges.wordPattern === undefined) {
24
+ return null;
25
+ }
26
+ try {
27
+ return new RegExp(`^(?:${ranges.wordPattern})$`, 'u');
28
+ } catch {
29
+ return null;
30
+ }
31
+ }
32
+
33
+ /*
34
+ * Ranges a server says are edited together, such as the names of a start tag and its end tag: a change inside
35
+ * one goes into every other, in the undo step of the key. The ranges are asked once the caret rests, and the link
36
+ * ends when an edit falls outside them, the text stops matching the server's word pattern, or there is more
37
+ * than one caret.
38
+ */
39
+ export class LinkedEditingFeature {
40
+ private readonly language: EditorLanguage;
41
+ private readonly timers: Timers;
42
+ private session: Session | null = null;
43
+ private timer: unknown = null;
44
+ private controller: AbortController | null = null;
45
+ private revision = 0;
46
+ private mirroring = false;
47
+ private enabled = true;
48
+
49
+ constructor(language: EditorLanguage, timers: Timers = realTimers) {
50
+ this.language = language;
51
+ this.timers = timers;
52
+ const { editor } = language;
53
+ const offs = [editor.onTextChange((change) => this.edited(change)), editor.onCaret(() => this.moved())];
54
+ language.onDispose(() => {
55
+ this.stop();
56
+ for (const off of offs) {
57
+ off();
58
+ }
59
+ });
60
+ }
61
+
62
+ get supported(): boolean {
63
+ const { service } = this.language;
64
+ return this.enabled && service.linkedEditingRanges !== undefined && service.supports(METHOD, this.language.uri);
65
+ }
66
+
67
+ /* Whether ranges are linked now. */
68
+ get isActive(): boolean {
69
+ return this.session !== null;
70
+ }
71
+
72
+ /* Off, nothing is linked; on unless false. */
73
+ configure(settings: { readonly enabled?: boolean }): void {
74
+ this.enabled = settings.enabled !== false;
75
+ if (!this.enabled) {
76
+ this.stop();
77
+ }
78
+ }
79
+
80
+ private stop(): void {
81
+ this.session = null;
82
+ this.timers.clear(this.timer);
83
+ this.controller?.abort();
84
+ }
85
+
86
+ private caretOffset(): number | null {
87
+ const { editor } = this.language;
88
+ const selections = editor.getSelections();
89
+ if (selections.length !== 1) {
90
+ return null;
91
+ }
92
+ const { start, end } = selections[0]!;
93
+ return start.line === end.line && start.character === end.character ? editor.offsetAt(start) : null;
94
+ }
95
+
96
+ private moved(): void {
97
+ if (this.mirroring) {
98
+ return;
99
+ }
100
+ // The caret moves before the text change of the same key is told, so the session is checked once both are in.
101
+ queueMicrotask(() => {
102
+ const offset = this.caretOffset();
103
+ if (offset !== null && this.session?.spans.some((span) => span.from <= offset && offset <= span.to)) {
104
+ return;
105
+ }
106
+ this.stop();
107
+ if (offset !== null && this.supported) {
108
+ this.timer = this.timers.set(() => void this.ask(offset), DELAY_MS);
109
+ }
110
+ });
111
+ }
112
+
113
+ private async ask(offset: number): Promise<void> {
114
+ const { editor, service, uri } = this.language;
115
+ const revision = this.revision;
116
+ const controller = new AbortController();
117
+ this.controller = controller;
118
+ try {
119
+ const ranges = await service.linkedEditingRanges!(uri, editor.positionAt(offset), { signal: controller.signal });
120
+ if (ranges === null || ranges.ranges.length < 2 || revision !== this.revision || this.caretOffset() !== offset) {
121
+ return;
122
+ }
123
+ this.session = {
124
+ spans: ranges.ranges.map((range) => ({ from: editor.offsetAt(range.start), to: editor.offsetAt(range.end) })),
125
+ pattern: wordPatternOf(ranges)
126
+ };
127
+ } catch {
128
+ // No ranges is no link; the next rest of the caret asks again.
129
+ }
130
+ }
131
+
132
+ private edited(change: EditorTextChange): void {
133
+ const revision = ++this.revision;
134
+ const session = this.session;
135
+ if (this.mirroring || session === null) {
136
+ return;
137
+ }
138
+ const edit = change.changes[0];
139
+ if (change.source === 'external' || change.changes.length !== 1 || edit === undefined || edit.range.start.line !== edit.range.end.line) {
140
+ this.stop();
141
+ return;
142
+ }
143
+ const from = this.language.editor.offsetAt(edit.range.start);
144
+ const removed = edit.range.end.character - edit.range.start.character;
145
+ const own = session.spans.findIndex((span) => span.from <= from && from + removed <= span.to);
146
+ if (own === -1) {
147
+ this.stop();
148
+ return;
149
+ }
150
+ const delta = edit.text.length - removed;
151
+ const edited = session.spans[own]!;
152
+ session.spans = session.spans.map((span, index) =>
153
+ index === own ? { from: span.from, to: span.to + delta } : span.from > edited.from ? { from: span.from + delta, to: span.to + delta } : span
154
+ );
155
+ queueMicrotask(() => this.mirror(own, revision));
156
+ }
157
+
158
+ private mirror(own: number, revision: number): void {
159
+ const session = this.session;
160
+ if (session === null || revision !== this.revision) {
161
+ return;
162
+ }
163
+ const { editor } = this.language;
164
+ const text = editor.getText();
165
+ const source = session.spans[own]!;
166
+ const value = text.slice(source.from, source.to);
167
+ if (session.pattern !== null && value !== '' && !session.pattern.test(value)) {
168
+ this.stop();
169
+ return;
170
+ }
171
+ const others = session.spans
172
+ .map((span, index) => ({ span, index }))
173
+ .filter(({ span, index }) => index !== own && text.slice(span.from, span.to) !== value);
174
+ if (others.length === 0) {
175
+ return;
176
+ }
177
+ this.mirroring = true;
178
+ try {
179
+ const applied = editor.applyEdits(
180
+ others.map(({ span }) => ({ range: { start: editor.positionAt(span.from), end: editor.positionAt(span.to) }, text: value })),
181
+ { mergeUndo: true }
182
+ );
183
+ if (!applied) {
184
+ this.stop();
185
+ return;
186
+ }
187
+ } finally {
188
+ this.mirroring = false;
189
+ }
190
+ // Each replaced span moves every span after it by what its length changed.
191
+ const changed = others.map(({ span }) => ({ at: span.from, delta: value.length - (span.to - span.from) })).sort((left, right) => left.at - right.at);
192
+ const shift = (offset: number): number => offset + changed.filter((entry) => entry.at < offset).reduce((total, entry) => total + entry.delta, 0);
193
+ session.spans = session.spans.map((span, index) => {
194
+ const from = shift(span.from);
195
+ const replaced = others.some((other) => other.index === index);
196
+ return { from, to: replaced ? from + value.length : shift(span.to) };
197
+ });
198
+ }
199
+ }
@@ -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,10 @@
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
+ },
195
222
  "announce": {
196
223
  "problem": "{{severity}}: {{message}}",
197
224
  "severity": {
@@ -236,10 +263,12 @@
236
263
  "goToTypeDefinition": "Go to type definition",
237
264
  "goToImplementation": "Go to implementation",
238
265
  "callHierarchy": "Call hierarchy",
266
+ "typeHierarchy": "Type hierarchy",
239
267
  "peekReferences": "Peek references",
240
268
  "renameSymbol": "Rename symbol",
241
269
  "codeActions": "Code actions",
242
- "formatDocument": "Format document"
270
+ "formatDocument": "Format document",
271
+ "formatSelection": "Format selection"
243
272
  },
244
273
  "find": {
245
274
  "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,10 @@
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
+ },
195
222
  "announce": {
196
223
  "problem": "{{severity}}: {{message}}",
197
224
  "severity": {
@@ -236,10 +263,12 @@
236
263
  "goToTypeDefinition": "Ga naar typedefinitie",
237
264
  "goToImplementation": "Ga naar implementatie",
238
265
  "callHierarchy": "Aanroephiërarchie",
266
+ "typeHierarchy": "Typehiërarchie",
239
267
  "peekReferences": "Bekijk referenties",
240
268
  "renameSymbol": "Symbool hernoemen",
241
269
  "codeActions": "Codeacties",
242
- "formatDocument": "Document formatteren"
270
+ "formatDocument": "Document formatteren",
271
+ "formatSelection": "Selectie formatteren"
243
272
  },
244
273
  "find": {
245
274
  "label": "Zoeken",