@adecore/editor-react 0.62.1 → 0.63.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.
- package/README.md +2 -2
- package/dist/AnchoredPopup.d.ts +2 -1
- package/dist/CompletionPopup.js +0 -2
- package/dist/DiffView.d.ts +1 -28
- package/dist/EditorView.js +0 -1
- package/dist/HoverSections.d.ts +1 -8
- package/dist/HoverSections.js +2 -2
- package/dist/LanguagePopups.js +30 -14
- package/dist/PanelResizeHandle.js +0 -1
- package/dist/PeekPanel.js +0 -1
- package/dist/PickPopup.js +0 -1
- package/dist/RenderedDocs.js +0 -2
- package/dist/SplitDiffView.d.ts +1 -1
- package/dist/SymbolPicker.js +0 -1
- package/dist/call-hierarchy-model.js +0 -4
- package/dist/call-hierarchy.d.ts +9 -2
- package/dist/call-hierarchy.js +51 -67
- package/dist/clipboard-history.d.ts +3 -0
- package/dist/clipboard-history.js +0 -1
- package/dist/code-actions-model.js +1 -1
- package/dist/code-actions.d.ts +14 -2
- package/dist/code-actions.js +14 -9
- package/dist/code-authors.js +4 -12
- package/dist/code-vision-model.d.ts +0 -1
- package/dist/code-vision-model.js +1 -2
- package/dist/code-vision.d.ts +11 -3
- package/dist/code-vision.js +13 -18
- package/dist/completion-call.d.ts +1 -1
- package/dist/completion-call.js +2 -1
- package/dist/completion-model.d.ts +5 -4
- package/dist/completion-model.js +4 -4
- package/dist/completion.d.ts +13 -4
- package/dist/completion.js +19 -18
- package/dist/context-menu-rows.d.ts +2 -1
- package/dist/context-menu.d.ts +9 -3
- package/dist/context-menu.js +17 -19
- package/dist/definition-link.d.ts +8 -2
- package/dist/definition-link.js +4 -2
- package/dist/diagnostics-model.d.ts +6 -8
- package/dist/diagnostics-model.js +1 -54
- package/dist/diagnostics.d.ts +9 -7
- package/dist/diagnostics.js +6 -4
- package/dist/diff-view-props.d.ts +28 -0
- package/dist/diff-view-props.js +1 -0
- package/dist/doc-comment-model.js +0 -2
- package/dist/document-colors.d.ts +9 -4
- package/dist/document-colors.js +7 -4
- package/dist/document-links.d.ts +2 -3
- package/dist/document-links.js +2 -3
- package/dist/document-query.d.ts +2 -2
- package/dist/edit-locations.js +4 -22
- package/dist/editor-language.d.ts +12 -7
- package/dist/editor-language.js +54 -45
- package/dist/emmet.d.ts +3 -2
- package/dist/folding.d.ts +2 -4
- package/dist/folding.js +1 -2
- package/dist/format-on-type.d.ts +8 -2
- package/dist/format-on-type.js +8 -6
- package/dist/highlights.d.ts +2 -6
- package/dist/highlights.js +3 -3
- package/dist/history.d.ts +8 -2
- package/dist/history.js +4 -2
- package/dist/host-types.d.ts +39 -22
- package/dist/hover-content.js +0 -1
- package/dist/hover.d.ts +13 -2
- package/dist/hover.js +25 -28
- package/dist/index.d.ts +19 -9
- package/dist/index.js +5 -2
- package/dist/inlay-hints.d.ts +12 -21
- package/dist/inlay-hints.js +16 -15
- package/dist/inline-completion.d.ts +30 -10
- package/dist/inline-completion.js +346 -102
- package/dist/key-priority.d.ts +1 -1
- package/dist/key-priority.js +2 -2
- package/dist/language-context.d.ts +30 -0
- package/dist/language-context.js +1 -0
- package/dist/language-ids.d.ts +0 -1
- package/dist/language-ids.js +0 -32
- package/dist/line-text.js +0 -1
- package/dist/linked-editing.d.ts +2 -4
- package/dist/linked-editing.js +1 -3
- package/dist/live-templates.d.ts +14 -2
- package/dist/live-templates.js +15 -10
- package/dist/locales/en.d.ts +357 -0
- package/dist/locales/en.js +356 -0
- package/dist/locales/nl.d.ts +357 -0
- package/dist/locales/nl.js +356 -0
- package/dist/markup-context.d.ts +7 -6
- package/dist/markup-context.js +0 -1
- package/dist/markup.d.ts +8 -2
- package/dist/markup.js +19 -20
- package/dist/models.d.ts +2 -1
- package/dist/models.js +2 -1
- package/dist/navigation-history.d.ts +7 -0
- package/dist/navigation.d.ts +11 -8
- package/dist/navigation.js +9 -20
- package/dist/panel-size.d.ts +4 -0
- package/dist/paste-history.d.ts +8 -2
- package/dist/paste-history.js +4 -2
- package/dist/patch-layout.d.ts +0 -4
- package/dist/patch-layout.js +1 -1
- package/dist/peek-model.js +0 -1
- package/dist/peek.d.ts +8 -2
- package/dist/peek.js +31 -42
- package/dist/pick.d.ts +4 -2
- package/dist/pick.js +38 -15
- package/dist/popups.d.ts +25 -20
- package/dist/popups.js +31 -15
- package/dist/positions.d.ts +7 -0
- package/dist/positions.js +54 -0
- package/dist/postfix.d.ts +11 -2
- package/dist/postfix.js +10 -6
- package/dist/project-language.d.ts +11 -3
- package/dist/project-language.js +40 -9
- package/dist/project-problems.d.ts +7 -1
- package/dist/project-problems.js +2 -1
- package/dist/rename-model.js +1 -1
- package/dist/rename.d.ts +2 -2
- package/dist/rename.js +17 -22
- package/dist/rendered-docs.d.ts +8 -2
- package/dist/rendered-docs.js +5 -4
- package/dist/selection-ranges.d.ts +2 -2
- package/dist/semantic-tokens.d.ts +2 -4
- package/dist/semantic-tokens.js +2 -2
- package/dist/shortcut-keys.d.ts +2 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.js +9 -15
- package/dist/snippet-field-transforms.js +1 -1
- package/dist/snippet-insert.d.ts +4 -2
- package/dist/snippet-insert.js +9 -15
- package/dist/snippet-session.d.ts +9 -4
- package/dist/snippet-session.js +14 -14
- package/dist/snippet-transform-format.d.ts +2 -1
- package/dist/snippet-transform-queue.d.ts +2 -4
- package/dist/snippet-transform-queue.js +5 -37
- package/dist/snippet.d.ts +2 -1
- package/dist/surround-constructs.d.ts +1 -1
- package/dist/surround.d.ts +13 -2
- package/dist/surround.js +15 -8
- package/dist/symbol-links.d.ts +0 -1
- package/dist/symbol-links.js +1 -1
- package/dist/symbol-picker-model.d.ts +0 -1
- package/dist/symbol-picker-model.js +1 -2
- package/dist/symbol-picker.d.ts +2 -2
- package/dist/symbol-picker.js +5 -10
- package/dist/symbols.d.ts +4 -3
- package/dist/template-builtins.d.ts +1 -1
- package/dist/template-builtins.js +0 -1
- package/dist/template-context.d.ts +3 -3
- package/dist/template-context.js +2 -11
- package/dist/template-types.d.ts +20 -0
- package/dist/template-types.js +1 -0
- package/dist/templates.d.ts +5 -20
- package/dist/templates.js +0 -1
- package/dist/testing.d.ts +6 -0
- package/dist/testing.js +42 -0
- package/dist/use-problem-counts.d.ts +1 -1
- package/dist/word-diff.d.ts +1 -1
- package/dist/word-diff.js +16 -25
- package/dist/workspace-edit.d.ts +1 -24
- package/dist/workspace-edit.js +0 -1
- package/package.json +10 -9
- package/src/AnchoredPopup.tsx +1 -1
- package/src/CompletionPopup.tsx +0 -2
- package/src/DiffView.tsx +6 -38
- package/src/EditorView.tsx +0 -1
- package/src/HoverSections.tsx +2 -2
- package/src/LanguagePopups.tsx +20 -14
- package/src/PanelResizeHandle.tsx +0 -1
- package/src/PeekPanel.tsx +0 -1
- package/src/PickPopup.tsx +0 -1
- package/src/RenderedDocs.tsx +0 -2
- package/src/SplitDiffView.tsx +1 -1
- package/src/SymbolPicker.tsx +0 -1
- package/src/call-hierarchy-model.ts +0 -7
- package/src/call-hierarchy.ts +32 -31
- package/src/clipboard-history.ts +5 -2
- package/src/code-actions-model.ts +1 -4
- package/src/code-actions.ts +26 -10
- package/src/code-authors.ts +4 -15
- package/src/code-vision-model.ts +1 -2
- package/src/code-vision.ts +23 -19
- package/src/completion-call.ts +2 -2
- package/src/completion-model.ts +12 -7
- package/src/completion.ts +31 -16
- package/src/context-menu-rows.ts +1 -1
- package/src/context-menu.ts +19 -10
- package/src/definition-link.ts +12 -4
- package/src/diagnostics-model.ts +8 -55
- package/src/diagnostics.ts +11 -20
- package/src/diff-view-props.ts +38 -0
- package/src/doc-comment-model.ts +0 -2
- package/src/document-colors.ts +14 -6
- package/src/document-links.ts +5 -6
- package/src/document-query.ts +3 -3
- package/src/edit-locations.ts +4 -19
- package/src/editor-language.ts +74 -39
- package/src/emmet.ts +2 -3
- package/src/folding.ts +4 -5
- package/src/format-on-type.ts +14 -7
- package/src/highlights.ts +6 -6
- package/src/history.ts +12 -4
- package/src/host-types.ts +52 -33
- package/src/hover-content.ts +0 -1
- package/src/hover.ts +29 -22
- package/src/index.ts +25 -14
- package/src/inlay-hints.ts +23 -17
- package/src/inline-completion.ts +340 -90
- package/src/key-priority.ts +2 -2
- package/src/language-context.ts +60 -0
- package/src/language-ids.ts +0 -34
- package/src/line-text.ts +0 -1
- package/src/linked-editing.ts +4 -6
- package/src/live-templates.ts +27 -13
- package/src/locales/en.ts +356 -0
- package/src/locales/nl.ts +356 -0
- package/src/markup-context.ts +6 -9
- package/src/markup.ts +19 -10
- package/src/models.ts +2 -1
- package/src/navigation-history.ts +11 -0
- package/src/navigation.ts +18 -20
- package/src/panel-size.ts +8 -0
- package/src/paste-history.ts +12 -4
- package/src/patch-layout.ts +1 -1
- package/src/peek-model.ts +0 -1
- package/src/peek.ts +22 -18
- package/src/pick.ts +30 -16
- package/src/popups.ts +61 -40
- package/src/positions.ts +54 -0
- package/src/postfix.ts +21 -8
- package/src/project-language.ts +63 -14
- package/src/project-problems.ts +10 -2
- package/src/proposal-model.ts +0 -1
- package/src/rename-model.ts +1 -1
- package/src/rename.ts +21 -24
- package/src/rendered-docs.ts +13 -6
- package/src/selection-ranges.ts +2 -2
- package/src/semantic-tokens.ts +5 -5
- package/src/shortcut-keys.ts +1 -1
- package/src/signature.ts +8 -8
- package/src/snippet-field-transforms.ts +1 -1
- package/src/snippet-insert.ts +21 -14
- package/src/snippet-session.ts +25 -24
- package/src/snippet-transform-format.ts +1 -1
- package/src/snippet-transform-queue.ts +5 -51
- package/src/snippet.ts +1 -1
- package/src/surround-constructs.ts +1 -1
- package/src/surround.ts +24 -12
- package/src/symbol-links.ts +1 -1
- package/src/symbol-picker-model.ts +1 -4
- package/src/symbol-picker.ts +6 -7
- package/src/symbols.ts +3 -4
- package/src/template-builtins.ts +1 -2
- package/src/template-context.ts +5 -14
- package/src/template-types.ts +43 -0
- package/src/templates.ts +9 -45
- package/src/testing.ts +52 -0
- package/src/use-problem-counts.ts +1 -1
- package/src/word-diff.ts +17 -28
- package/src/workspace-edit.ts +1 -34
- package/dist/locales/en.json +0 -356
- package/dist/locales/nl.json +0 -356
- package/src/locales/en.json +0 -356
- package/src/locales/nl.json +0 -356
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
language: {
|
|
3
|
+
hover: {
|
|
4
|
+
quickFix: 'Quick fix…',
|
|
5
|
+
quickFixNone: 'Geen quick fixes',
|
|
6
|
+
definition: 'Ga naar definitie',
|
|
7
|
+
references_one: '{{formatted}} referentie',
|
|
8
|
+
references_other: '{{formatted}} referenties',
|
|
9
|
+
line: 'Regel {{line}}',
|
|
10
|
+
none: 'Hier geen informatie'
|
|
11
|
+
},
|
|
12
|
+
inlay: {
|
|
13
|
+
failed: 'Kon de hintactie niet uitvoeren: {{message}}'
|
|
14
|
+
},
|
|
15
|
+
edit: {
|
|
16
|
+
staged_one: '{{count}} niet-opgeslagen bestand',
|
|
17
|
+
staged_other: '{{count}} niet-opgeslagen bestanden',
|
|
18
|
+
stagedMore: '{{names}} en nog {{count}}',
|
|
19
|
+
saveAll: 'Alles opslaan',
|
|
20
|
+
notSaved: 'Kon {{name}} niet opslaan'
|
|
21
|
+
},
|
|
22
|
+
actions: {
|
|
23
|
+
show: 'Codeacties tonen',
|
|
24
|
+
none: 'Hier geen codeacties',
|
|
25
|
+
unavailable: 'Hier geen codeacties beschikbaar',
|
|
26
|
+
organized: 'Imports zijn al georganiseerd',
|
|
27
|
+
noFormatter: 'Geen formatter voor dit bestand',
|
|
28
|
+
readOnly: 'Bestand is alleen-lezen',
|
|
29
|
+
failed: 'Kon de actie niet toepassen: {{message}}',
|
|
30
|
+
refused: 'Wijziging geweigerd',
|
|
31
|
+
moreLines: 'nog {{count}} regels',
|
|
32
|
+
otherFiles_one: 'en nog {{count}} bestand',
|
|
33
|
+
otherFiles_other: 'en nog {{count}} bestanden',
|
|
34
|
+
moves_one: 'verplaatst {{count}} bestand',
|
|
35
|
+
moves_other: 'verplaatst {{count}} bestanden',
|
|
36
|
+
creates_one: 'maakt {{count}} bestand aan',
|
|
37
|
+
creates_other: 'maakt {{count}} bestanden aan',
|
|
38
|
+
deletes_one: 'verwijdert {{count}} bestand',
|
|
39
|
+
deletes_other: 'verwijdert {{count}} bestanden',
|
|
40
|
+
groups: {
|
|
41
|
+
quickfix: 'Quick fix',
|
|
42
|
+
rewrite: 'Herschrijven',
|
|
43
|
+
extract: 'Extraheren',
|
|
44
|
+
inline: 'Inline',
|
|
45
|
+
move: 'Verplaatsen',
|
|
46
|
+
refactor: 'Refactor',
|
|
47
|
+
source: 'Source',
|
|
48
|
+
other: 'Overig'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
rename: {
|
|
52
|
+
unavailable: 'Hernoemen niet beschikbaar in dit bestand',
|
|
53
|
+
nothing: 'Niets om te hernoemen',
|
|
54
|
+
refused: 'Nieuwe naam geweigerd',
|
|
55
|
+
stale: 'De tekst veranderde voordat de hernoeming klaar was. Probeer het opnieuw.',
|
|
56
|
+
failed: 'Kon niet hernoemen: {{message}}',
|
|
57
|
+
occurrences_one: '{{formatted}} voorkomen',
|
|
58
|
+
occurrences_other: '{{formatted}} voorkomens',
|
|
59
|
+
occurrencesFiles_one: '{{formatted}} voorkomen in {{files}} bestanden',
|
|
60
|
+
occurrencesFiles_other: '{{formatted}} voorkomens in {{files}} bestanden',
|
|
61
|
+
rename: 'Hernoemen',
|
|
62
|
+
preview: 'Voorbeeld',
|
|
63
|
+
cancel: 'Annuleren',
|
|
64
|
+
apply: 'Hernoemen',
|
|
65
|
+
suggestions: 'Voorgestelde namen',
|
|
66
|
+
useSuggestion: 'Suggestie gebruiken',
|
|
67
|
+
operations: {
|
|
68
|
+
create: 'Maakt aan',
|
|
69
|
+
rename: 'Verplaatst',
|
|
70
|
+
delete: 'Verwijdert'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
markup: {
|
|
74
|
+
wrap: 'Omwikkelen met afkorting',
|
|
75
|
+
placeholder: 'Afkorting, zoals div.card>p',
|
|
76
|
+
apply: 'Omwikkelen',
|
|
77
|
+
invalid: 'Geen geldige afkorting'
|
|
78
|
+
},
|
|
79
|
+
navigation: {
|
|
80
|
+
unavailable: 'Hier niet beschikbaar',
|
|
81
|
+
none: 'Niets gevonden',
|
|
82
|
+
failed: 'Kon het niet opzoeken: {{message}}',
|
|
83
|
+
titles: {
|
|
84
|
+
definition: 'Definities',
|
|
85
|
+
declaration: 'Declaraties',
|
|
86
|
+
typeDefinition: 'Typedefinities',
|
|
87
|
+
implementation: 'Implementaties',
|
|
88
|
+
symbol: 'Overeenkomsten'
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
panel: {
|
|
92
|
+
resize: 'Paneel vergroten of verkleinen'
|
|
93
|
+
},
|
|
94
|
+
peek: {
|
|
95
|
+
unavailable: 'Referenties niet beschikbaar in dit bestand',
|
|
96
|
+
none: 'Geen referenties gevonden',
|
|
97
|
+
failed: 'Kon de referenties niet opzoeken: {{message}}',
|
|
98
|
+
references_one: '{{formatted}} referentie',
|
|
99
|
+
references_other: '{{formatted}} referenties',
|
|
100
|
+
close: 'Sluiten',
|
|
101
|
+
collapse: 'Inklappen',
|
|
102
|
+
expand: 'Uitklappen',
|
|
103
|
+
definitions_one: '{{formatted}} definitie',
|
|
104
|
+
definitions_other: '{{formatted}} definities',
|
|
105
|
+
noDefinition: 'Geen definitie gevonden',
|
|
106
|
+
unavailableDefinition: 'Definities niet beschikbaar in dit bestand'
|
|
107
|
+
},
|
|
108
|
+
callHierarchy: {
|
|
109
|
+
unavailable: 'Aanroepen niet beschikbaar in dit bestand',
|
|
110
|
+
none: 'Hier geen aanroepen',
|
|
111
|
+
failed: 'Kon de aanroepen niet opzoeken: {{message}}',
|
|
112
|
+
label: 'Aanroephiërarchie',
|
|
113
|
+
direction: 'Richting',
|
|
114
|
+
incoming: 'Aanroepers',
|
|
115
|
+
outgoing: 'Aangeroepen',
|
|
116
|
+
close: 'Sluiten',
|
|
117
|
+
loading: 'Laden…',
|
|
118
|
+
noIncoming: 'Geen aanroepers',
|
|
119
|
+
noOutgoing: 'Roept niets aan',
|
|
120
|
+
retry: 'Kon de aanroepen niet laden: {{message}}. Klik om het opnieuw te proberen',
|
|
121
|
+
more_one: 'Toon nog {{formatted}} aanroep ({{hidden}} over)',
|
|
122
|
+
more_other: 'Toon nog {{formatted}} aanroepen ({{hidden}} over)',
|
|
123
|
+
sites_one: '{{formatted}} aanroep',
|
|
124
|
+
sites_other: '{{formatted}} aanroepen',
|
|
125
|
+
site: 'Aanroep {{current}} van {{total}}',
|
|
126
|
+
previousSite: 'Vorige aanroep',
|
|
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',
|
|
136
|
+
announce: {
|
|
137
|
+
incoming_one: '{{count}} aanroeper van {{name}}',
|
|
138
|
+
incoming_other: '{{count}} aanroepers van {{name}}',
|
|
139
|
+
outgoing_one: '{{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}}'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
colors: {
|
|
148
|
+
swatch: 'Kleur {{color}}',
|
|
149
|
+
title: 'Kleur',
|
|
150
|
+
other: 'Andere kleur kiezen…'
|
|
151
|
+
},
|
|
152
|
+
codeVision: {
|
|
153
|
+
usagesNone: 'Niet gebruikt',
|
|
154
|
+
usages_one: '{{formatted}} keer gebruikt',
|
|
155
|
+
usages_other: '{{formatted}} keer gebruikt',
|
|
156
|
+
newCode: 'nieuw *',
|
|
157
|
+
lines_one: '{{formatted}} regel',
|
|
158
|
+
lines_other: '{{formatted}} regels',
|
|
159
|
+
uncommitted: 'Niet gecommit',
|
|
160
|
+
latest: 'Laatste wijziging',
|
|
161
|
+
showCommit: 'Commit tonen'
|
|
162
|
+
},
|
|
163
|
+
symbols: {
|
|
164
|
+
unavailable: 'Symbolen niet beschikbaar in dit bestand',
|
|
165
|
+
failed: 'Kon de symbolen niet lezen: {{message}}',
|
|
166
|
+
placeholder: 'Ga naar symbool in {{file}}',
|
|
167
|
+
navigate: 'Navigeer',
|
|
168
|
+
open: 'Open',
|
|
169
|
+
workspace: 'Symbolen in het project',
|
|
170
|
+
line: 'Ga naar regel',
|
|
171
|
+
none: 'Geen symbolen gevonden',
|
|
172
|
+
workspaceHint: 'Typ een symboolnaam',
|
|
173
|
+
lineHint: 'Typ een regelnummer',
|
|
174
|
+
goToLine: 'Ga naar regel {{line}}',
|
|
175
|
+
groups: {
|
|
176
|
+
namespaces: 'Namespaces',
|
|
177
|
+
classes: 'Classes',
|
|
178
|
+
interfaces: 'Interfaces',
|
|
179
|
+
enums: 'Enums',
|
|
180
|
+
functions: 'Functies',
|
|
181
|
+
methods: 'Methoden',
|
|
182
|
+
properties: 'Properties',
|
|
183
|
+
variables: 'Variabelen',
|
|
184
|
+
constants: 'Constanten',
|
|
185
|
+
other: 'Overig'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
context: {
|
|
189
|
+
refactor: 'Refactor',
|
|
190
|
+
cut: 'Knippen',
|
|
191
|
+
copy: 'Kopiëren',
|
|
192
|
+
paste: 'Plakken',
|
|
193
|
+
renameSymbol: 'Symbool hernoemen…',
|
|
194
|
+
goTo: {
|
|
195
|
+
menu: 'Ga naar',
|
|
196
|
+
definition: 'Definitie',
|
|
197
|
+
declaration: 'Declaratie',
|
|
198
|
+
typeDefinition: 'Typedefinitie',
|
|
199
|
+
implementation: 'Implementatie'
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
snippet: {
|
|
203
|
+
choices: 'Snippetkeuze'
|
|
204
|
+
},
|
|
205
|
+
completion: {
|
|
206
|
+
tooLarge: 'Te groot om in te voegen',
|
|
207
|
+
insert: 'Invoegen',
|
|
208
|
+
replace: 'Vervangen',
|
|
209
|
+
details: 'Details',
|
|
210
|
+
none: 'Geen suggesties',
|
|
211
|
+
transformBusy: 'Het snippet is nog niet klaar. Probeer het opnieuw.',
|
|
212
|
+
transformFailed: 'Kon het snippet niet invullen',
|
|
213
|
+
failed: 'Kon de suggestie niet invoegen: {{message}}'
|
|
214
|
+
},
|
|
215
|
+
history: {
|
|
216
|
+
recent: 'Recente plekken'
|
|
217
|
+
},
|
|
218
|
+
pasteHistory: {
|
|
219
|
+
title: 'Kies wat je plakt',
|
|
220
|
+
empty: '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: 'Omring met heeft hier geen opties',
|
|
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
|
+
},
|
|
252
|
+
announce: {
|
|
253
|
+
problem: '{{severity}}: {{message}}',
|
|
254
|
+
severity: {
|
|
255
|
+
error: 'Fout',
|
|
256
|
+
warning: 'Waarschuwing',
|
|
257
|
+
info: 'Informatie',
|
|
258
|
+
hint: 'Hint'
|
|
259
|
+
},
|
|
260
|
+
field: 'Veld {{current}} van {{total}}',
|
|
261
|
+
fieldChoices_one: 'Veld {{current}} van {{total}}, {{count}} keuze',
|
|
262
|
+
fieldChoices_other: 'Veld {{current}} van {{total}}, {{count}} keuzes'
|
|
263
|
+
},
|
|
264
|
+
fold: {
|
|
265
|
+
fold: 'Regels {{start}} tot {{end}} invouwen',
|
|
266
|
+
unfold: 'Regels {{start}} tot {{end}} uitvouwen'
|
|
267
|
+
},
|
|
268
|
+
docs: {
|
|
269
|
+
label: 'Weergegeven documentatie',
|
|
270
|
+
labelNamed: 'Weergegeven documentatie: {{- summary}}',
|
|
271
|
+
render: 'Toon weergegeven documentatie',
|
|
272
|
+
showSource: 'Toon bron van documentatie',
|
|
273
|
+
tags: {
|
|
274
|
+
deprecated: 'Verouderd',
|
|
275
|
+
template: 'Typeparameters',
|
|
276
|
+
param: 'Parameters',
|
|
277
|
+
property: 'Eigenschappen',
|
|
278
|
+
type: 'Type',
|
|
279
|
+
var: 'Variabele',
|
|
280
|
+
return: 'Geeft terug',
|
|
281
|
+
yield: 'Levert op',
|
|
282
|
+
throws: 'Gooit',
|
|
283
|
+
see: 'Zie ook',
|
|
284
|
+
example: 'Voorbeeld',
|
|
285
|
+
since: 'Sinds',
|
|
286
|
+
version: 'Versie',
|
|
287
|
+
author: 'Auteur'
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
commands: {
|
|
292
|
+
goToDefinition: 'Ga naar definitie',
|
|
293
|
+
goToTypeDefinition: 'Ga naar typedefinitie',
|
|
294
|
+
goToImplementation: 'Ga naar implementatie',
|
|
295
|
+
callHierarchy: 'Aanroephiërarchie',
|
|
296
|
+
typeHierarchy: 'Typehiërarchie',
|
|
297
|
+
peekReferences: 'Bekijk referenties',
|
|
298
|
+
renameSymbol: 'Symbool hernoemen',
|
|
299
|
+
codeActions: 'Codeacties',
|
|
300
|
+
formatDocument: 'Document formatteren',
|
|
301
|
+
formatSelection: 'Selectie formatteren'
|
|
302
|
+
},
|
|
303
|
+
find: {
|
|
304
|
+
label: 'Zoeken',
|
|
305
|
+
count: '{{current}} / {{total}}',
|
|
306
|
+
countLimited: '{{current}} / {{total}}+',
|
|
307
|
+
none: 'Geen resultaten',
|
|
308
|
+
invalid: 'Ongeldige reguliere expressie',
|
|
309
|
+
caseSensitive: 'Hoofdlettergevoelig',
|
|
310
|
+
wholeWord: 'Heel woord',
|
|
311
|
+
regex: 'Reguliere expressie gebruiken',
|
|
312
|
+
inSelection: 'In selectie',
|
|
313
|
+
noSelection: 'Geen selectie',
|
|
314
|
+
selectAll: 'Alle treffers selecteren',
|
|
315
|
+
previous: 'Vorige treffer',
|
|
316
|
+
next: 'Volgende treffer',
|
|
317
|
+
close: 'Sluiten',
|
|
318
|
+
replace: {
|
|
319
|
+
label: 'Vervangen door',
|
|
320
|
+
one: 'Vervangen',
|
|
321
|
+
all: 'Alles',
|
|
322
|
+
allLabel: 'Alles vervangen',
|
|
323
|
+
preserveCase: 'Hoofdletters behouden',
|
|
324
|
+
toggle: 'Vervangen tonen',
|
|
325
|
+
hide: 'Vervangen verbergen',
|
|
326
|
+
failed: {
|
|
327
|
+
limit: 'Te veel om ineens te vervangen (meer dan {{edits}} treffers of {{characters}} tekens)',
|
|
328
|
+
timeout: 'Vervangen duurde te lang. Er is niets gewijzigd',
|
|
329
|
+
unavailable: 'Vervangen is nu niet beschikbaar',
|
|
330
|
+
error: 'Kon niet vervangen. Er is niets gewijzigd'
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
countMore: '{{total}}+ resultaten',
|
|
334
|
+
searching: 'Zoeken…',
|
|
335
|
+
large: 'Dit document is groot. Druk op Enter om te zoeken',
|
|
336
|
+
replaced: '{{count}} resultaten vervangen',
|
|
337
|
+
failed: {
|
|
338
|
+
timeout: 'Zoeken duurde te lang. Druk op Enter om het opnieuw te proberen',
|
|
339
|
+
unavailable: 'Zoeken met regex is niet beschikbaar',
|
|
340
|
+
invalid: 'Ongeldige reguliere expressie',
|
|
341
|
+
error: 'Kon de zoekopdracht niet voltooien'
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
diff: {
|
|
345
|
+
hidden: 'Toon {{count}} verborgen regels',
|
|
346
|
+
contextLimit: 'Limiet voor context bereikt',
|
|
347
|
+
oldSide: 'Voor de wijziging',
|
|
348
|
+
newSide: 'Na de wijziging',
|
|
349
|
+
noNewline: 'Geen afsluitende nieuwe regel',
|
|
350
|
+
added: 'Toegevoegd, nieuwe regel {{number}}',
|
|
351
|
+
removed: 'Verwijderd, oude regel {{number}}',
|
|
352
|
+
unchanged: 'Oude regel {{old}}, nieuwe regel {{new}}',
|
|
353
|
+
addedLine: 'Toegevoegde regel',
|
|
354
|
+
removedLine: 'Verwijderde regel'
|
|
355
|
+
}
|
|
356
|
+
};
|
package/dist/markup-context.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type MarkupSyntax = 'html' | 'xml' | 'vue' | 'php';
|
|
2
|
-
|
|
2
|
+
interface OpenElement {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly nameFrom: number;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface TagAt {
|
|
7
7
|
readonly start: number;
|
|
8
8
|
readonly closing: boolean;
|
|
9
9
|
readonly name: string;
|
|
@@ -11,7 +11,7 @@ export interface TagAt {
|
|
|
11
11
|
readonly nameTo: number;
|
|
12
12
|
readonly inValue: boolean;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
type MarkupPlace = {
|
|
15
15
|
readonly kind: 'text';
|
|
16
16
|
readonly open: readonly OpenElement[];
|
|
17
17
|
} | {
|
|
@@ -20,7 +20,7 @@ export type MarkupPlace = {
|
|
|
20
20
|
} | {
|
|
21
21
|
readonly kind: 'other';
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
interface TagPair {
|
|
24
24
|
readonly open: {
|
|
25
25
|
readonly from: number;
|
|
26
26
|
readonly to: number;
|
|
@@ -30,11 +30,11 @@ export interface TagPair {
|
|
|
30
30
|
readonly to: number;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
interface TagSpan {
|
|
34
34
|
readonly from: number;
|
|
35
35
|
readonly to: number;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
interface EnclosingElement {
|
|
38
38
|
readonly name: string;
|
|
39
39
|
readonly open: TagSpan;
|
|
40
40
|
readonly close: TagSpan | null;
|
|
@@ -53,3 +53,4 @@ export declare function lineEndOf(text: string, offset: number): number;
|
|
|
53
53
|
export declare function removeTagEdits(text: string, element: EnclosingElement, unit: string): TextReplacement[];
|
|
54
54
|
export declare function markupPlaceAt(text: string, offset: number, syntax: MarkupSyntax): MarkupPlace | null;
|
|
55
55
|
export declare function tagPairAt(text: string, offset: number, syntax: MarkupSyntax): TagPair | null;
|
|
56
|
+
export {};
|
package/dist/markup-context.js
CHANGED
package/dist/markup.d.ts
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import type { EditorPosition } from '@adecore/editor';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LanguageContext } from './language-context.ts';
|
|
3
|
+
import type { SnippetFeature } from './snippet-session.ts';
|
|
3
4
|
export interface MarkupSettings {
|
|
4
5
|
readonly emmet?: boolean;
|
|
5
6
|
readonly closeTags?: boolean;
|
|
6
7
|
readonly linkedTags?: boolean;
|
|
7
8
|
}
|
|
9
|
+
interface MarkupPeers {
|
|
10
|
+
readonly snippets: Pick<SnippetFeature, 'applyEdits' | 'begin' | 'beginInstances' | 'isActive' | 'token'>;
|
|
11
|
+
}
|
|
8
12
|
export declare class MarkupFeature {
|
|
9
13
|
private readonly language;
|
|
14
|
+
private readonly peers;
|
|
10
15
|
private readonly syntax;
|
|
11
16
|
private settings;
|
|
12
17
|
private link;
|
|
13
18
|
private wrapping;
|
|
14
19
|
private revision;
|
|
15
20
|
private mirroring;
|
|
16
|
-
constructor(language:
|
|
21
|
+
constructor(language: LanguageContext, peers: MarkupPeers);
|
|
17
22
|
get supported(): boolean;
|
|
18
23
|
configure(settings: MarkupSettings): void;
|
|
19
24
|
expand(): boolean;
|
|
@@ -37,3 +42,4 @@ export declare class MarkupFeature {
|
|
|
37
42
|
private moved;
|
|
38
43
|
private linkAtCaret;
|
|
39
44
|
}
|
|
45
|
+
export {};
|
package/dist/markup.js
CHANGED
|
@@ -16,6 +16,7 @@ const NAME_BEFORE = /<\/?[\w:.-]*$/;
|
|
|
16
16
|
*/
|
|
17
17
|
export class MarkupFeature {
|
|
18
18
|
language;
|
|
19
|
+
peers;
|
|
19
20
|
syntax;
|
|
20
21
|
settings = {
|
|
21
22
|
emmet: true,
|
|
@@ -27,8 +28,9 @@ export class MarkupFeature {
|
|
|
27
28
|
/* Raised by every change of the text, so a follow-up edit for an older text is dropped. */
|
|
28
29
|
revision = 0;
|
|
29
30
|
mirroring = false;
|
|
30
|
-
constructor(language) {
|
|
31
|
+
constructor(language, peers) {
|
|
31
32
|
this.language = language;
|
|
33
|
+
this.peers = peers;
|
|
32
34
|
this.syntax = markupSyntaxOf(language.languageId);
|
|
33
35
|
if (this.syntax === null) {
|
|
34
36
|
return;
|
|
@@ -44,7 +46,6 @@ export class MarkupFeature {
|
|
|
44
46
|
}
|
|
45
47
|
});
|
|
46
48
|
}
|
|
47
|
-
/* Whether the language of the document is markup this feature writes. */
|
|
48
49
|
get supported() {
|
|
49
50
|
return this.syntax !== null;
|
|
50
51
|
}
|
|
@@ -121,11 +122,9 @@ export class MarkupFeature {
|
|
|
121
122
|
}
|
|
122
123
|
this.cancelWrap();
|
|
123
124
|
this.wrapping = editor.trackRange(range);
|
|
124
|
-
popups.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
error: null
|
|
128
|
-
}
|
|
125
|
+
popups.slot('wrap').set({
|
|
126
|
+
anchor: range.start,
|
|
127
|
+
error: null
|
|
129
128
|
});
|
|
130
129
|
return true;
|
|
131
130
|
}
|
|
@@ -150,11 +149,9 @@ export class MarkupFeature {
|
|
|
150
149
|
wrap: this.wrapLines(range)
|
|
151
150
|
});
|
|
152
151
|
if (expanded === null) {
|
|
153
|
-
popups.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
error: project.i18n.t('editor:language.markup.invalid')
|
|
157
|
-
}
|
|
152
|
+
popups.slot('wrap').set({
|
|
153
|
+
anchor: range.start,
|
|
154
|
+
error: project.i18n.t('editor:language.markup.invalid')
|
|
158
155
|
});
|
|
159
156
|
return false;
|
|
160
157
|
}
|
|
@@ -166,10 +163,8 @@ export class MarkupFeature {
|
|
|
166
163
|
cancelWrap() {
|
|
167
164
|
this.wrapping?.dispose();
|
|
168
165
|
this.wrapping = null;
|
|
169
|
-
if (this.language.popups.
|
|
170
|
-
this.language.popups.
|
|
171
|
-
wrap: null
|
|
172
|
-
});
|
|
166
|
+
if (this.language.popups.slot('wrap').get() !== null) {
|
|
167
|
+
this.language.popups.slot('wrap').set(null);
|
|
173
168
|
}
|
|
174
169
|
}
|
|
175
170
|
key(event) {
|
|
@@ -235,9 +230,11 @@ export class MarkupFeature {
|
|
|
235
230
|
}
|
|
236
231
|
insert(range, snippet, line) {
|
|
237
232
|
const {
|
|
238
|
-
editor
|
|
239
|
-
snippets
|
|
233
|
+
editor
|
|
240
234
|
} = this.language;
|
|
235
|
+
const {
|
|
236
|
+
snippets
|
|
237
|
+
} = this.peers;
|
|
241
238
|
const parsed = indentSnippet(parseSnippet(snippet), line);
|
|
242
239
|
if (parsed.limited === true) {
|
|
243
240
|
return false;
|
|
@@ -258,9 +255,11 @@ export class MarkupFeature {
|
|
|
258
255
|
/* Through the snippet session while one runs, so an edit inside its field keeps it going. */
|
|
259
256
|
apply(changes, options) {
|
|
260
257
|
const {
|
|
261
|
-
editor
|
|
262
|
-
snippets
|
|
258
|
+
editor
|
|
263
259
|
} = this.language;
|
|
260
|
+
const {
|
|
261
|
+
snippets
|
|
262
|
+
} = this.peers;
|
|
264
263
|
return snippets.isActive ? snippets.applyEdits(changes, snippets.token, [], options) : editor.applyEdits(changes, options);
|
|
265
264
|
}
|
|
266
265
|
edited(change) {
|
package/dist/models.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { type MatchDetail, type Ranked, type Insertion, type SnippetInsertionOptions, insertionOf, type KindTone, type RowWindow } from './completion-model.ts';
|
|
2
2
|
export { type CallPlan, type CallSite } from './completion-call.ts';
|
|
3
|
-
export { type Problem, severityOf,
|
|
3
|
+
export { type Problem, severityOf, codeLabelOf } from './diagnostics-model.ts';
|
|
4
|
+
export { endOfInsertion } from './positions.ts';
|
|
4
5
|
export { type SignatureBlock, type HoverText, type DocTag, type HoverSection, type BaselineLevel, type Baseline, type MarkdownPart } from './hover-content.ts';
|
|
5
6
|
export { type SignatureViewModel } from './signature-model.ts';
|
|
6
7
|
export { type RenameTarget, type Occurrences, type RenameRow, type RenameFile } from './rename-model.ts';
|
package/dist/models.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { insertionOf } from './completion-model.js';
|
|
2
2
|
export {} from './completion-call.js';
|
|
3
|
-
export { severityOf,
|
|
3
|
+
export { severityOf, codeLabelOf } from './diagnostics-model.js';
|
|
4
|
+
export { endOfInsertion } from './positions.js';
|
|
4
5
|
export {} from './hover-content.js';
|
|
5
6
|
export {} from './signature-model.js';
|
|
6
7
|
export {} from './rename-model.js';
|
|
@@ -3,6 +3,13 @@ export interface Place {
|
|
|
3
3
|
readonly uri: string;
|
|
4
4
|
readonly position: EditorPosition;
|
|
5
5
|
}
|
|
6
|
+
export interface NavigationHost {
|
|
7
|
+
readonly editHistoryLimit?: number;
|
|
8
|
+
openPlace?(place: Place): void;
|
|
9
|
+
openExternal?(url: string): void;
|
|
10
|
+
pathOfUri?(uri: string): string | null;
|
|
11
|
+
serverNames?(uri: string): readonly string[];
|
|
12
|
+
}
|
|
6
13
|
export declare class NavigationHistory {
|
|
7
14
|
private backs;
|
|
8
15
|
private forwards;
|
package/dist/navigation.d.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import type { EditorPosition } from '@adecore/editor';
|
|
2
2
|
import { type Location, type NavigationResult, type Range } from '@adecore/lsp';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LanguageContext } from './language-context.ts';
|
|
4
|
+
import type { PickFeature } from './pick.ts';
|
|
4
5
|
export type NavigationKind = 'definition' | 'declaration' | 'typeDefinition' | 'implementation';
|
|
5
6
|
export declare function uniquePlaces(result: NavigationResult): {
|
|
6
7
|
location: Location;
|
|
7
8
|
target: Range | null;
|
|
8
9
|
}[];
|
|
9
|
-
|
|
10
|
+
interface NavigationPeers {
|
|
11
|
+
readonly peek: {
|
|
12
|
+
open(position: EditorPosition): Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
readonly pick: Pick<PickFeature, 'locations'>;
|
|
15
|
+
}
|
|
10
16
|
export declare class NavigationFeature {
|
|
11
17
|
private readonly language;
|
|
12
|
-
|
|
18
|
+
private readonly peers;
|
|
19
|
+
constructor(language: LanguageContext, peers: NavigationPeers);
|
|
13
20
|
supports(kind: NavigationKind): boolean;
|
|
14
21
|
go(kind: NavigationKind, position?: EditorPosition): Promise<void>;
|
|
15
22
|
goToName(name: string, anchor: EditorPosition, own: Location | null): Promise<void>;
|
|
16
23
|
private tell;
|
|
17
24
|
private say;
|
|
18
25
|
}
|
|
19
|
-
export
|
|
20
|
-
label: string;
|
|
21
|
-
detail: string;
|
|
22
|
-
path: true;
|
|
23
|
-
};
|
|
26
|
+
export {};
|
package/dist/navigation.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { StaleResultError
|
|
2
|
-
import { rangeHolds } from './diagnostics-model.js';
|
|
1
|
+
import { StaleResultError } from '@adecore/lsp';
|
|
3
2
|
import { messageOf } from './error-message.js';
|
|
4
3
|
import { KEY_PRIORITY } from './key-priority.js';
|
|
5
|
-
import {
|
|
4
|
+
import { rangeHolds } from './positions.js';
|
|
6
5
|
import { isShortcut } from './shortcut-keys.js';
|
|
7
6
|
import { placesOfName } from './symbol-links.js';
|
|
8
7
|
import { placeKey, uniqueBy } from './unique.js';
|
|
@@ -36,8 +35,7 @@ export function uniquePlaces(result) {
|
|
|
36
35
|
location
|
|
37
36
|
}) => placeKey(location));
|
|
38
37
|
}
|
|
39
|
-
|
|
40
|
-
export function uniqueLocations(result) {
|
|
38
|
+
function uniqueLocations(result) {
|
|
41
39
|
return uniquePlaces(result).map(({
|
|
42
40
|
location
|
|
43
41
|
}) => location);
|
|
@@ -49,8 +47,10 @@ export function uniqueLocations(result) {
|
|
|
49
47
|
*/
|
|
50
48
|
export class NavigationFeature {
|
|
51
49
|
language;
|
|
52
|
-
|
|
50
|
+
peers;
|
|
51
|
+
constructor(language, peers) {
|
|
53
52
|
this.language = language;
|
|
53
|
+
this.peers = peers;
|
|
54
54
|
const {
|
|
55
55
|
editor
|
|
56
56
|
} = language;
|
|
@@ -102,11 +102,11 @@ export class NavigationFeature {
|
|
|
102
102
|
this.tell(this.say('none'));
|
|
103
103
|
} else if (kind === 'definition' && places.length === 1 && places[0].uri === uri && rangeHolds(places[0].range, position)) {
|
|
104
104
|
// The name is its own definition, so what a person wants to see is where it is used.
|
|
105
|
-
void this.
|
|
105
|
+
void this.peers.peek.open(position);
|
|
106
106
|
} else if (places.length === 1) {
|
|
107
107
|
this.language.goTo(places[0]);
|
|
108
108
|
} else {
|
|
109
|
-
this.
|
|
109
|
+
this.peers.pick.locations(places, position, this.say(`titles.${kind}`));
|
|
110
110
|
}
|
|
111
111
|
editor.focus();
|
|
112
112
|
}
|
|
@@ -132,7 +132,7 @@ export class NavigationFeature {
|
|
|
132
132
|
if (places.length === 1) {
|
|
133
133
|
this.language.goTo(places[0]);
|
|
134
134
|
} else if (places.length > 1) {
|
|
135
|
-
this.
|
|
135
|
+
this.peers.pick.locations(places, anchor, this.say('titles.symbol'));
|
|
136
136
|
}
|
|
137
137
|
} catch {
|
|
138
138
|
// A name that cannot be found is a link that does nothing, not an error.
|
|
@@ -148,15 +148,4 @@ export class NavigationFeature {
|
|
|
148
148
|
say(key, options) {
|
|
149
149
|
return this.language.project.i18n.t(`editor:language.navigation.${key}`, options);
|
|
150
150
|
}
|
|
151
|
-
}
|
|
152
|
-
/* How a place reads in a list: the file and the line, with the folder it is in. */
|
|
153
|
-
export function locationRow(location, stored) {
|
|
154
|
-
const path = stored ?? fileUriToPath(location.uri) ?? location.uri;
|
|
155
|
-
const name = basenameOf(path);
|
|
156
|
-
const folder = path.slice(0, Math.max(0, path.length - name.length)).replace(/\/$/, '');
|
|
157
|
-
return {
|
|
158
|
-
label: `${name}:${location.range.start.line + 1}`,
|
|
159
|
-
detail: folder,
|
|
160
|
-
path: true
|
|
161
|
-
};
|
|
162
151
|
}
|