@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/src/markup-context.ts
CHANGED
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
/* `vue` and `php` are HTML with interpolations or code blocks a markup feature leaves alone. */
|
|
2
2
|
export type MarkupSyntax = 'html' | 'xml' | 'vue' | 'php';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
interface OpenElement {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
/* The offset of the first character of the name, after the `<`. */
|
|
7
7
|
readonly nameFrom: number;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* The tag an offset is in, from its `<` up to and including its `>`. */
|
|
11
|
-
|
|
11
|
+
interface TagAt {
|
|
12
12
|
readonly start: number;
|
|
13
13
|
readonly closing: boolean;
|
|
14
14
|
readonly name: string;
|
|
15
15
|
readonly nameFrom: number;
|
|
16
16
|
readonly nameTo: number;
|
|
17
|
-
/* The offset is inside a quoted attribute value. */
|
|
18
17
|
readonly inValue: boolean;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
type MarkupPlace =
|
|
22
21
|
| { readonly kind: 'text'; readonly open: readonly OpenElement[] }
|
|
23
22
|
| { readonly kind: 'tag'; readonly tag: TagAt }
|
|
24
23
|
| { readonly kind: 'other' };
|
|
25
24
|
|
|
26
25
|
/* The names of an element that are one start tag and its end tag, which change together. */
|
|
27
|
-
|
|
26
|
+
interface TagPair {
|
|
28
27
|
readonly open: { readonly from: number; readonly to: number };
|
|
29
28
|
readonly close: { readonly from: number; readonly to: number };
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
/* A whole tag, from its `<` up to and after its `>`. */
|
|
33
|
-
|
|
32
|
+
interface TagSpan {
|
|
34
33
|
readonly from: number;
|
|
35
34
|
readonly to: number;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
/* An element as its tags: `close` is null for one that was never closed. */
|
|
39
|
-
|
|
38
|
+
interface EnclosingElement {
|
|
40
39
|
readonly name: string;
|
|
41
40
|
readonly open: TagSpan;
|
|
42
41
|
readonly close: TagSpan | null;
|
|
@@ -258,7 +257,6 @@ class MarkupScanner {
|
|
|
258
257
|
}
|
|
259
258
|
}
|
|
260
259
|
|
|
261
|
-
/* The elements still open at the end of the text. */
|
|
262
260
|
unclosed(): EnclosingElement[] {
|
|
263
261
|
return this.open.map((element) => ({ name: element.name, open: element.tag, close: null }));
|
|
264
262
|
}
|
|
@@ -279,7 +277,6 @@ export function enclosingElements(text: string, offset: number, syntax: MarkupSy
|
|
|
279
277
|
.sort((left, right) => right.open.from - left.open.from);
|
|
280
278
|
}
|
|
281
279
|
|
|
282
|
-
/* A replacement of the text from one offset up to another. */
|
|
283
280
|
export interface TextReplacement {
|
|
284
281
|
readonly from: number;
|
|
285
282
|
readonly to: number;
|
package/src/markup.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { EditorApplyEditsOptions, EditorContentChange, EditorPosition, EditorRange, EditorTextChange, EditorTrackedRange } from '@adecore/editor';
|
|
2
|
-
import type { EditorLanguage } from './editor-language.ts';
|
|
3
2
|
import { abbreviationBefore, expandAbbreviation } from './emmet.ts';
|
|
4
3
|
import { KEY_PRIORITY } from './key-priority.ts';
|
|
4
|
+
import type { LanguageContext } from './language-context.ts';
|
|
5
5
|
import { lineTextOf } from './line-text.ts';
|
|
6
6
|
import { isVoidElement, markupPlaceAt, markupSyntaxOf, tagPairAt, type MarkupSyntax } from './markup-context.ts';
|
|
7
7
|
import { isShortcut } from './shortcut-keys.ts';
|
|
8
8
|
import { indentSnippet } from './snippet-indent.ts';
|
|
9
9
|
import { positionInInsertion } from './snippet-session.ts';
|
|
10
|
+
import type { SnippetFeature } from './snippet-session.ts';
|
|
10
11
|
import { parseSnippet } from './snippet.ts';
|
|
11
12
|
|
|
12
13
|
/* Each is on unless false. */
|
|
@@ -33,6 +34,11 @@ interface Link {
|
|
|
33
34
|
const NAME = /^[\w:.-]*$/;
|
|
34
35
|
const NAME_BEFORE = /<\/?[\w:.-]*$/;
|
|
35
36
|
|
|
37
|
+
/* The sibling features MarkupFeature drives, which the editor language hands over. */
|
|
38
|
+
interface MarkupPeers {
|
|
39
|
+
readonly snippets: Pick<SnippetFeature, 'applyEdits' | 'begin' | 'beginInstances' | 'isActive' | 'token'>;
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
/*
|
|
37
43
|
* Writing HTML, XML, the template of a Vue file and the markup of PHP: Emmet abbreviations, end tags that
|
|
38
44
|
* write themselves and tag names that change in pairs. The edits it adds join the undo step of the key that
|
|
@@ -40,7 +46,8 @@ const NAME_BEFORE = /<\/?[\w:.-]*$/;
|
|
|
40
46
|
* than one caret.
|
|
41
47
|
*/
|
|
42
48
|
export class MarkupFeature {
|
|
43
|
-
private readonly language:
|
|
49
|
+
private readonly language: LanguageContext;
|
|
50
|
+
private readonly peers: MarkupPeers;
|
|
44
51
|
private readonly syntax: MarkupSyntax | null;
|
|
45
52
|
private settings: Required<MarkupSettings> = { emmet: true, closeTags: true, linkedTags: true };
|
|
46
53
|
private link: Link | null = null;
|
|
@@ -49,8 +56,9 @@ export class MarkupFeature {
|
|
|
49
56
|
private revision = 0;
|
|
50
57
|
private mirroring = false;
|
|
51
58
|
|
|
52
|
-
constructor(language:
|
|
59
|
+
constructor(language: LanguageContext, peers: MarkupPeers) {
|
|
53
60
|
this.language = language;
|
|
61
|
+
this.peers = peers;
|
|
54
62
|
this.syntax = markupSyntaxOf(language.languageId);
|
|
55
63
|
if (this.syntax === null) {
|
|
56
64
|
return;
|
|
@@ -69,7 +77,6 @@ export class MarkupFeature {
|
|
|
69
77
|
});
|
|
70
78
|
}
|
|
71
79
|
|
|
72
|
-
/* Whether the language of the document is markup this feature writes. */
|
|
73
80
|
get supported(): boolean {
|
|
74
81
|
return this.syntax !== null;
|
|
75
82
|
}
|
|
@@ -128,7 +135,7 @@ export class MarkupFeature {
|
|
|
128
135
|
}
|
|
129
136
|
this.cancelWrap();
|
|
130
137
|
this.wrapping = editor.trackRange(range);
|
|
131
|
-
popups.
|
|
138
|
+
popups.slot('wrap').set({ anchor: range.start, error: null });
|
|
132
139
|
return true;
|
|
133
140
|
}
|
|
134
141
|
|
|
@@ -143,7 +150,7 @@ export class MarkupFeature {
|
|
|
143
150
|
}
|
|
144
151
|
const expanded = expandAbbreviation(abbreviation.trim(), { syntax, indent: this.indent(), wrap: this.wrapLines(range) });
|
|
145
152
|
if (expanded === null) {
|
|
146
|
-
popups.
|
|
153
|
+
popups.slot('wrap').set({ anchor: range.start, error: project.i18n.t('editor:language.markup.invalid') });
|
|
147
154
|
return false;
|
|
148
155
|
}
|
|
149
156
|
this.cancelWrap();
|
|
@@ -155,8 +162,8 @@ export class MarkupFeature {
|
|
|
155
162
|
cancelWrap(): void {
|
|
156
163
|
this.wrapping?.dispose();
|
|
157
164
|
this.wrapping = null;
|
|
158
|
-
if (this.language.popups.
|
|
159
|
-
this.language.popups.
|
|
165
|
+
if (this.language.popups.slot('wrap').get() !== null) {
|
|
166
|
+
this.language.popups.slot('wrap').set(null);
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
169
|
|
|
@@ -211,7 +218,8 @@ export class MarkupFeature {
|
|
|
211
218
|
}
|
|
212
219
|
|
|
213
220
|
private insert(range: EditorRange, snippet: string, line: string): boolean {
|
|
214
|
-
const { editor
|
|
221
|
+
const { editor } = this.language;
|
|
222
|
+
const { snippets } = this.peers;
|
|
215
223
|
const parsed = indentSnippet(parseSnippet(snippet), line);
|
|
216
224
|
if (parsed.limited === true) {
|
|
217
225
|
return false;
|
|
@@ -229,7 +237,8 @@ export class MarkupFeature {
|
|
|
229
237
|
|
|
230
238
|
/* Through the snippet session while one runs, so an edit inside its field keeps it going. */
|
|
231
239
|
private apply(changes: readonly EditorContentChange[], options?: EditorApplyEditsOptions): boolean {
|
|
232
|
-
const { editor
|
|
240
|
+
const { editor } = this.language;
|
|
241
|
+
const { snippets } = this.peers;
|
|
233
242
|
return snippets.isActive ? snippets.applyEdits(changes, snippets.token, [], options) : editor.applyEdits(changes, options);
|
|
234
243
|
}
|
|
235
244
|
|
package/src/models.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';
|
|
@@ -6,6 +6,17 @@ export interface Place {
|
|
|
6
6
|
readonly position: EditorPosition;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
/* What the host does with places, documents and addresses. */
|
|
10
|
+
export interface NavigationHost {
|
|
11
|
+
/* How many places Last Edit Location and Next Edit Location remember; 150 without one. */
|
|
12
|
+
readonly editHistoryLimit?: number;
|
|
13
|
+
openPlace?(place: Place): void;
|
|
14
|
+
/* Opens a web address outside the editor, from a link in the text or a server; a new browser window without it. */
|
|
15
|
+
openExternal?(url: string): void;
|
|
16
|
+
pathOfUri?(uri: string): string | null;
|
|
17
|
+
serverNames?(uri: string): readonly string[];
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
const LIMIT = 100;
|
|
10
21
|
|
|
11
22
|
/* Two places on one line of one file are one place: a jump lands wherever, and walking back should not stop twice on the same line. */
|
package/src/navigation.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { EditorPosition } from '@adecore/editor';
|
|
2
|
-
import { StaleResultError,
|
|
3
|
-
import { rangeHolds } from './diagnostics-model.ts';
|
|
4
|
-
import type { EditorLanguage } from './editor-language.ts';
|
|
2
|
+
import { StaleResultError, type LanguageService, type Location, type LocationLink, type NavigationResult, type Range } from '@adecore/lsp';
|
|
5
3
|
import { messageOf } from './error-message.ts';
|
|
6
4
|
import { KEY_PRIORITY } from './key-priority.ts';
|
|
7
|
-
import {
|
|
5
|
+
import type { LanguageContext } from './language-context.ts';
|
|
6
|
+
import type { PickFeature } from './pick.ts';
|
|
7
|
+
import { rangeHolds } from './positions.ts';
|
|
8
8
|
import { isShortcut } from './shortcut-keys.ts';
|
|
9
9
|
import { placesOfName } from './symbol-links.ts';
|
|
10
10
|
import { placeKey, uniqueBy } from './unique.ts';
|
|
@@ -47,21 +47,28 @@ export function uniquePlaces(result: NavigationResult): { location: Location; ta
|
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
export function uniqueLocations(result: NavigationResult): Location[] {
|
|
50
|
+
function uniqueLocations(result: NavigationResult): Location[] {
|
|
52
51
|
return uniquePlaces(result).map(({ location }) => location);
|
|
53
52
|
}
|
|
54
53
|
|
|
54
|
+
/* The sibling features NavigationFeature drives, which the editor language hands over. */
|
|
55
|
+
interface NavigationPeers {
|
|
56
|
+
readonly peek: { open(position: EditorPosition): Promise<void> };
|
|
57
|
+
readonly pick: Pick<PickFeature, 'locations'>;
|
|
58
|
+
}
|
|
59
|
+
|
|
55
60
|
/*
|
|
56
61
|
* Going to where a name is defined, declared, typed or implemented: Mod+click on the name or a shortcut
|
|
57
62
|
* for the caret. One place opens at once, in this file or in the one it lives in, the way a file opens in
|
|
58
63
|
* the host; several are listed under the name to choose from.
|
|
59
64
|
*/
|
|
60
65
|
export class NavigationFeature {
|
|
61
|
-
private readonly language:
|
|
66
|
+
private readonly language: LanguageContext;
|
|
67
|
+
private readonly peers: NavigationPeers;
|
|
62
68
|
|
|
63
|
-
constructor(language:
|
|
69
|
+
constructor(language: LanguageContext, peers: NavigationPeers) {
|
|
64
70
|
this.language = language;
|
|
71
|
+
this.peers = peers;
|
|
65
72
|
const { editor } = language;
|
|
66
73
|
|
|
67
74
|
const offs = [
|
|
@@ -125,11 +132,11 @@ export class NavigationFeature {
|
|
|
125
132
|
this.tell(this.say('none'));
|
|
126
133
|
} else if (kind === 'definition' && places.length === 1 && places[0]!.uri === uri && rangeHolds(places[0]!.range, position)) {
|
|
127
134
|
// The name is its own definition, so what a person wants to see is where it is used.
|
|
128
|
-
void this.
|
|
135
|
+
void this.peers.peek.open(position);
|
|
129
136
|
} else if (places.length === 1) {
|
|
130
137
|
this.language.goTo(places[0]!);
|
|
131
138
|
} else {
|
|
132
|
-
this.
|
|
139
|
+
this.peers.pick.locations(places, position, this.say(`titles.${kind}`));
|
|
133
140
|
}
|
|
134
141
|
|
|
135
142
|
editor.focus();
|
|
@@ -159,7 +166,7 @@ export class NavigationFeature {
|
|
|
159
166
|
if (places.length === 1) {
|
|
160
167
|
this.language.goTo(places[0]!);
|
|
161
168
|
} else if (places.length > 1) {
|
|
162
|
-
this.
|
|
169
|
+
this.peers.pick.locations(places, anchor, this.say('titles.symbol'));
|
|
163
170
|
}
|
|
164
171
|
} catch {
|
|
165
172
|
// A name that cannot be found is a link that does nothing, not an error.
|
|
@@ -174,12 +181,3 @@ export class NavigationFeature {
|
|
|
174
181
|
return this.language.project.i18n.t(`editor:language.navigation.${key}`, options);
|
|
175
182
|
}
|
|
176
183
|
}
|
|
177
|
-
|
|
178
|
-
/* How a place reads in a list: the file and the line, with the folder it is in. */
|
|
179
|
-
export function locationRow(location: Location, stored: string | null): { label: string; detail: string; path: true } {
|
|
180
|
-
const path = stored ?? fileUriToPath(location.uri) ?? location.uri;
|
|
181
|
-
const name = basenameOf(path);
|
|
182
|
-
const folder = path.slice(0, Math.max(0, path.length - name.length)).replace(/\/$/, '');
|
|
183
|
-
|
|
184
|
-
return { label: `${name}:${location.range.start.line + 1}`, detail: folder, path: true };
|
|
185
|
-
}
|
package/src/panel-size.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/* The size of the peek and call hierarchy panels, which a person drags. */
|
|
2
|
+
export interface PanelsHost {
|
|
3
|
+
/* The height in pixels of the list-and-preview area of the peek and the call hierarchy, so a person's drag outlives the panel; 180 without one. */
|
|
4
|
+
readonly panelBodyHeight?: number;
|
|
5
|
+
/* A person finished resizing a peek or call hierarchy panel; the height is already within what the editor allows. */
|
|
6
|
+
onPanelResize?(height: number): void;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
/* The height of the list-and-preview area of a peek or a call hierarchy, which is what a person drags; the bands and the title bar around it stay. */
|
|
2
10
|
export const PANEL_BODY_HEIGHT = 180;
|
|
3
11
|
|