@adecore/editor-react 0.0.1 → 0.17.0-beta.2
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/LICENSE +110 -0
- package/README.md +60 -0
- package/dist/AnchoredPopup.d.ts +12 -0
- package/dist/AnchoredPopup.js +27 -0
- package/dist/AttributionCard.d.ts +14 -0
- package/dist/AttributionCard.js +5 -0
- package/dist/BaselineStatus.d.ts +4 -0
- package/dist/BaselineStatus.js +13 -0
- package/dist/ChangeReview.d.ts +12 -0
- package/dist/ChangeReview.js +27 -0
- package/dist/CodeAuthorsCard.d.ts +6 -0
- package/dist/CodeAuthorsCard.js +22 -0
- package/dist/CompletionPopup.d.ts +8 -0
- package/dist/CompletionPopup.js +103 -0
- package/dist/EditorContextMenu.d.ts +8 -0
- package/dist/EditorContextMenu.js +23 -0
- package/dist/EditorView.d.ts +16 -0
- package/dist/EditorView.js +27 -0
- package/dist/FindReplace.d.ts +6 -0
- package/dist/FindReplace.js +44 -0
- package/dist/HoverCard.d.ts +11 -0
- package/dist/HoverCard.js +38 -0
- package/dist/HoverSections.d.ts +21 -0
- package/dist/HoverSections.js +82 -0
- package/dist/LanguagePopups.d.ts +6 -0
- package/dist/LanguagePopups.js +38 -0
- package/dist/Markdown.d.ts +3 -0
- package/dist/Markdown.js +7 -0
- package/dist/PathText.d.ts +4 -0
- package/dist/PathText.js +12 -0
- package/dist/PeekPanel.d.ts +6 -0
- package/dist/PeekPanel.js +111 -0
- package/dist/PickPopup.d.ts +8 -0
- package/dist/PickPopup.js +33 -0
- package/dist/RenameCard.d.ts +9 -0
- package/dist/RenameCard.js +108 -0
- package/dist/SignatureCard.d.ts +4 -0
- package/dist/SignatureCard.js +8 -0
- package/dist/SymbolPicker.d.ts +6 -0
- package/dist/SymbolPicker.js +108 -0
- package/dist/code-actions-model.d.ts +23 -0
- package/dist/code-actions-model.js +114 -0
- package/dist/code-actions.d.ts +30 -0
- package/dist/code-actions.js +326 -0
- package/dist/code-authors.d.ts +18 -0
- package/dist/code-authors.js +79 -0
- package/dist/code-vision-model.d.ts +21 -0
- package/dist/code-vision-model.js +183 -0
- package/dist/code-vision.d.ts +48 -0
- package/dist/code-vision.js +236 -0
- package/dist/completion-call.d.ts +24 -0
- package/dist/completion-call.js +110 -0
- package/dist/completion-model.d.ts +51 -0
- package/dist/completion-model.js +353 -0
- package/dist/completion.d.ts +43 -0
- package/dist/completion.js +463 -0
- package/dist/conflict-model.d.ts +15 -0
- package/dist/conflict-model.js +36 -0
- package/dist/context-menu.d.ts +10 -0
- package/dist/context-menu.js +55 -0
- package/dist/definition-link.d.ts +14 -0
- package/dist/definition-link.js +99 -0
- package/dist/diagnostics-model.d.ts +15 -0
- package/dist/diagnostics-model.js +83 -0
- package/dist/diagnostics.d.ts +23 -0
- package/dist/diagnostics.js +95 -0
- package/dist/editor-language.d.ts +65 -0
- package/dist/editor-language.js +170 -0
- package/dist/editor-react.css +43 -0
- package/dist/find-query.d.ts +26 -0
- package/dist/find-query.js +51 -0
- package/dist/folding.d.ts +16 -0
- package/dist/folding.js +95 -0
- package/dist/highlight-layers.d.ts +10 -0
- package/dist/highlight-layers.js +30 -0
- package/dist/highlights.d.ts +16 -0
- package/dist/highlights.js +102 -0
- package/dist/history.d.ts +8 -0
- package/dist/history.js +46 -0
- package/dist/holder.d.ts +5 -0
- package/dist/holder.js +19 -0
- package/dist/host-types.d.ts +45 -0
- package/dist/host-types.js +1 -0
- package/dist/hover-content.d.ts +45 -0
- package/dist/hover-content.js +198 -0
- package/dist/hover.d.ts +32 -0
- package/dist/hover.js +260 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +28 -0
- package/dist/inlay-hints.d.ts +13 -0
- package/dist/inlay-hints.js +71 -0
- package/dist/language-ids.d.ts +3 -0
- package/dist/language-ids.js +49 -0
- package/dist/line-edits.d.ts +8 -0
- package/dist/line-edits.js +39 -0
- package/dist/locales/en.json +171 -0
- package/dist/locales/nl.json +171 -0
- package/dist/models.d.ts +20 -0
- package/dist/models.js +20 -0
- package/dist/navigation-history.d.ts +16 -0
- package/dist/navigation-history.js +53 -0
- package/dist/navigation.d.ts +23 -0
- package/dist/navigation.js +155 -0
- package/dist/paths.d.ts +1 -0
- package/dist/paths.js +3 -0
- package/dist/peek-model.d.ts +28 -0
- package/dist/peek-model.js +104 -0
- package/dist/peek.d.ts +30 -0
- package/dist/peek.js +215 -0
- package/dist/pick.d.ts +34 -0
- package/dist/pick.js +166 -0
- package/dist/popup-placement.d.ts +23 -0
- package/dist/popup-placement.js +34 -0
- package/dist/popups.d.ts +133 -0
- package/dist/popups.js +14 -0
- package/dist/project-language.d.ts +36 -0
- package/dist/project-language.js +190 -0
- package/dist/project-problems.d.ts +24 -0
- package/dist/project-problems.js +63 -0
- package/dist/proposal-model.d.ts +36 -0
- package/dist/proposal-model.js +197 -0
- package/dist/recent-choices.d.ts +10 -0
- package/dist/recent-choices.js +39 -0
- package/dist/refresher.d.ts +13 -0
- package/dist/refresher.js +50 -0
- package/dist/relative-time.d.ts +1 -0
- package/dist/relative-time.js +9 -0
- package/dist/rename-model.d.ts +25 -0
- package/dist/rename-model.js +93 -0
- package/dist/rename.d.ts +21 -0
- package/dist/rename.js +257 -0
- package/dist/rendering-context.d.ts +6 -0
- package/dist/rendering-context.js +5 -0
- package/dist/rendering.d.ts +6 -0
- package/dist/rendering.js +5 -0
- package/dist/review-group.d.ts +16 -0
- package/dist/review-group.js +54 -0
- package/dist/row-host.d.ts +42 -0
- package/dist/row-host.js +120 -0
- package/dist/selection-ranges.d.ts +7 -0
- package/dist/selection-ranges.js +26 -0
- package/dist/semantic-model.d.ts +4 -0
- package/dist/semantic-model.js +76 -0
- package/dist/semantic-tokens.d.ts +6 -0
- package/dist/semantic-tokens.js +38 -0
- package/dist/shortcut-keys.d.ts +91 -0
- package/dist/shortcut-keys.js +12 -0
- package/dist/signature-model.d.ts +18 -0
- package/dist/signature-model.js +33 -0
- package/dist/signature.d.ts +22 -0
- package/dist/signature.js +150 -0
- package/dist/snippet-session.d.ts +17 -0
- package/dist/snippet-session.js +110 -0
- package/dist/snippet.d.ts +11 -0
- package/dist/snippet.js +134 -0
- package/dist/symbol-links.d.ts +6 -0
- package/dist/symbol-links.js +50 -0
- package/dist/symbol-picker-model.d.ts +44 -0
- package/dist/symbol-picker-model.js +146 -0
- package/dist/symbol-picker.d.ts +12 -0
- package/dist/symbol-picker.js +76 -0
- package/dist/symbols.d.ts +11 -0
- package/dist/symbols.js +95 -0
- package/dist/testing.d.ts +57 -0
- package/dist/testing.js +156 -0
- package/dist/timers.d.ts +14 -0
- package/dist/timers.js +34 -0
- package/dist/use-problem-counts.d.ts +3 -0
- package/dist/use-problem-counts.js +20 -0
- package/dist/view-state.d.ts +21 -0
- package/dist/view-state.js +63 -0
- package/dist/word-diff.d.ts +1 -0
- package/dist/word-diff.js +32 -0
- package/dist/workspace-edit.d.ts +21 -0
- package/dist/workspace-edit.js +147 -0
- package/package.json +74 -2
- package/src/AnchoredPopup.tsx +51 -0
- package/src/AttributionCard.tsx +36 -0
- package/src/BaselineStatus.tsx +20 -0
- package/src/ChangeReview.tsx +43 -0
- package/src/CodeAuthorsCard.tsx +81 -0
- package/src/CompletionPopup.tsx +196 -0
- package/src/EditorContextMenu.tsx +67 -0
- package/src/EditorView.tsx +47 -0
- package/src/FindReplace.tsx +89 -0
- package/src/HoverCard.tsx +121 -0
- package/src/HoverSections.tsx +146 -0
- package/src/LanguagePopups.tsx +65 -0
- package/src/Markdown.tsx +11 -0
- package/src/PathText.tsx +18 -0
- package/src/PeekPanel.tsx +222 -0
- package/src/PickPopup.tsx +102 -0
- package/src/RenameCard.tsx +219 -0
- package/src/SignatureCard.tsx +42 -0
- package/src/SymbolPicker.tsx +219 -0
- package/src/code-actions-model.ts +146 -0
- package/src/code-actions.ts +384 -0
- package/src/code-authors.ts +104 -0
- package/src/code-vision-model.ts +230 -0
- package/src/code-vision.ts +269 -0
- package/src/completion-call.ts +139 -0
- package/src/completion-model.ts +440 -0
- package/src/completion.ts +500 -0
- package/src/conflict-model.ts +56 -0
- package/src/context-menu.ts +63 -0
- package/src/definition-link.ts +106 -0
- package/src/diagnostics-model.ts +102 -0
- package/src/diagnostics.ts +117 -0
- package/src/editor-language.ts +189 -0
- package/src/editor-react.css +43 -0
- package/src/find-query.ts +74 -0
- package/src/folding.ts +110 -0
- package/src/highlight-layers.ts +37 -0
- package/src/highlights.ts +123 -0
- package/src/history.ts +56 -0
- package/src/holder.ts +19 -0
- package/src/host-types.ts +52 -0
- package/src/hover-content.ts +264 -0
- package/src/hover.ts +280 -0
- package/src/index.ts +63 -0
- package/src/inlay-hints.ts +85 -0
- package/src/language-ids.ts +54 -0
- package/src/line-edits.ts +48 -0
- package/src/locales/en.json +171 -0
- package/src/locales/nl.json +171 -0
- package/src/models.ts +157 -0
- package/src/navigation-history.ts +69 -0
- package/src/navigation.ts +168 -0
- package/src/paths.ts +3 -0
- package/src/peek-model.ts +147 -0
- package/src/peek.ts +247 -0
- package/src/pick.ts +197 -0
- package/src/popup-placement.ts +64 -0
- package/src/popups.ts +204 -0
- package/src/project-language.ts +223 -0
- package/src/project-problems.ts +87 -0
- package/src/proposal-model.ts +259 -0
- package/src/recent-choices.ts +48 -0
- package/src/refresher.ts +56 -0
- package/src/relative-time.ts +10 -0
- package/src/rename-model.ts +130 -0
- package/src/rename.ts +290 -0
- package/src/rendering-context.ts +12 -0
- package/src/rendering.tsx +6 -0
- package/src/review-group.ts +70 -0
- package/src/row-host.ts +158 -0
- package/src/selection-ranges.ts +32 -0
- package/src/semantic-model.ts +80 -0
- package/src/semantic-tokens.ts +46 -0
- package/src/shortcut-keys.ts +21 -0
- package/src/signature-model.ts +49 -0
- package/src/signature.ts +164 -0
- package/src/snippet-session.ts +122 -0
- package/src/snippet.ts +147 -0
- package/src/symbol-links.ts +72 -0
- package/src/symbol-picker-model.ts +198 -0
- package/src/symbol-picker.ts +85 -0
- package/src/symbols.ts +110 -0
- package/src/testing.ts +240 -0
- package/src/timers.ts +45 -0
- package/src/use-problem-counts.ts +25 -0
- package/src/view-state.ts +88 -0
- package/src/word-diff.ts +35 -0
- package/src/workspace-edit.ts +194 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": {
|
|
3
|
+
"hover": {
|
|
4
|
+
"quickFix": "Quick fix…",
|
|
5
|
+
"quickFixNone": "This language server offers no quick fixes",
|
|
6
|
+
"definition": "Go to definition",
|
|
7
|
+
"references_one": "{{formatted}} reference",
|
|
8
|
+
"references_other": "{{formatted}} references",
|
|
9
|
+
"none": "No information for this position"
|
|
10
|
+
},
|
|
11
|
+
"edit": {
|
|
12
|
+
"staged_one": "{{count}} file changed and not saved yet",
|
|
13
|
+
"staged_other": "{{count}} files changed and not saved yet",
|
|
14
|
+
"stagedMore": "{{names}} and {{count}} more",
|
|
15
|
+
"saveAll": "Save all",
|
|
16
|
+
"notSaved": "{{name}} could not be saved"
|
|
17
|
+
},
|
|
18
|
+
"actions": {
|
|
19
|
+
"show": "Show code actions",
|
|
20
|
+
"none": "No code actions here",
|
|
21
|
+
"unavailable": "No language server offers code actions here",
|
|
22
|
+
"organized": "The imports are already organized",
|
|
23
|
+
"noFormatter": "No language server formats this file",
|
|
24
|
+
"readOnly": "This file is read only",
|
|
25
|
+
"failed": "Could not apply the action: {{message}}",
|
|
26
|
+
"refused": "The edit was refused",
|
|
27
|
+
"moreLines": "{{count}} more lines",
|
|
28
|
+
"otherFiles_one": "and {{count}} other file",
|
|
29
|
+
"otherFiles_other": "and {{count}} other files",
|
|
30
|
+
"moves_one": "moves {{count}} file",
|
|
31
|
+
"moves_other": "moves {{count}} files",
|
|
32
|
+
"groups": {
|
|
33
|
+
"quickfix": "Quick fix",
|
|
34
|
+
"rewrite": "Rewrite",
|
|
35
|
+
"extract": "Extract",
|
|
36
|
+
"inline": "Inline",
|
|
37
|
+
"move": "Move",
|
|
38
|
+
"refactor": "Refactor",
|
|
39
|
+
"source": "Source",
|
|
40
|
+
"other": "Other"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"rename": {
|
|
44
|
+
"unavailable": "No language server renames in this file",
|
|
45
|
+
"nothing": "There is nothing to rename here",
|
|
46
|
+
"refused": "The language server refused the new name",
|
|
47
|
+
"stale": "The text changed while the rename was being asked for",
|
|
48
|
+
"failed": "Could not rename: {{message}}",
|
|
49
|
+
"occurrences_one": "{{formatted}} occurrence",
|
|
50
|
+
"occurrences_other": "{{formatted}} occurrences",
|
|
51
|
+
"occurrencesFiles_one": "{{formatted}} occurrence in {{files}} files",
|
|
52
|
+
"occurrencesFiles_other": "{{formatted}} occurrences in {{files}} files",
|
|
53
|
+
"rename": "Rename",
|
|
54
|
+
"preview": "Preview",
|
|
55
|
+
"cancel": "Cancel",
|
|
56
|
+
"apply": "Rename",
|
|
57
|
+
"suggestions": "Suggested names",
|
|
58
|
+
"useSuggestion": "Use suggestion"
|
|
59
|
+
},
|
|
60
|
+
"navigation": {
|
|
61
|
+
"unavailable": "No language server answers that here",
|
|
62
|
+
"none": "Nothing found",
|
|
63
|
+
"failed": "Could not look it up: {{message}}",
|
|
64
|
+
"titles": {
|
|
65
|
+
"definition": "Definitions",
|
|
66
|
+
"declaration": "Declarations",
|
|
67
|
+
"typeDefinition": "Type definitions",
|
|
68
|
+
"implementation": "Implementations",
|
|
69
|
+
"symbol": "Matches"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"peek": {
|
|
73
|
+
"unavailable": "No language server finds references in this file",
|
|
74
|
+
"none": "No references found",
|
|
75
|
+
"failed": "Could not look up the references: {{message}}",
|
|
76
|
+
"references_one": "{{formatted}} reference",
|
|
77
|
+
"references_other": "{{formatted}} references",
|
|
78
|
+
"close": "Close",
|
|
79
|
+
"collapse": "Collapse",
|
|
80
|
+
"expand": "Expand",
|
|
81
|
+
"definitions_one": "{{formatted}} definition",
|
|
82
|
+
"definitions_other": "{{formatted}} definitions",
|
|
83
|
+
"noDefinition": "No definition found",
|
|
84
|
+
"unavailableDefinition": "No language server finds definitions in this file"
|
|
85
|
+
},
|
|
86
|
+
"codeVision": {
|
|
87
|
+
"usagesNone": "No usages",
|
|
88
|
+
"usages_one": "{{formatted}} usage",
|
|
89
|
+
"usages_other": "{{formatted}} usages",
|
|
90
|
+
"newCode": "new *",
|
|
91
|
+
"lines_one": "{{formatted}} line",
|
|
92
|
+
"lines_other": "{{formatted}} lines",
|
|
93
|
+
"uncommitted": "Not committed yet",
|
|
94
|
+
"latest": "Latest change",
|
|
95
|
+
"showCommit": "Show commit"
|
|
96
|
+
},
|
|
97
|
+
"symbols": {
|
|
98
|
+
"unavailable": "No language server knows the symbols of this file",
|
|
99
|
+
"failed": "Could not read the symbols: {{message}}",
|
|
100
|
+
"placeholder": "Go to symbol in {{file}}",
|
|
101
|
+
"navigate": "Navigate",
|
|
102
|
+
"open": "Open",
|
|
103
|
+
"workspace": "Workspace symbols",
|
|
104
|
+
"line": "Go to line",
|
|
105
|
+
"none": "No matching symbols",
|
|
106
|
+
"workspaceHint": "Type the name of a symbol in the project",
|
|
107
|
+
"lineHint": "Type a line number",
|
|
108
|
+
"goToLine": "Go to line {{line}}",
|
|
109
|
+
"groups": {
|
|
110
|
+
"namespaces": "Namespaces",
|
|
111
|
+
"classes": "Classes",
|
|
112
|
+
"interfaces": "Interfaces",
|
|
113
|
+
"enums": "Enums",
|
|
114
|
+
"functions": "Functions",
|
|
115
|
+
"methods": "Methods",
|
|
116
|
+
"properties": "Properties",
|
|
117
|
+
"variables": "Variables",
|
|
118
|
+
"constants": "Constants",
|
|
119
|
+
"other": "Other"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"context": {
|
|
123
|
+
"refactor": "Refactor",
|
|
124
|
+
"cut": "Cut",
|
|
125
|
+
"copy": "Copy",
|
|
126
|
+
"paste": "Paste"
|
|
127
|
+
},
|
|
128
|
+
"completion": {
|
|
129
|
+
"insert": "Insert",
|
|
130
|
+
"replace": "Replace",
|
|
131
|
+
"details": "Details",
|
|
132
|
+
"none": "No suggestions"
|
|
133
|
+
},
|
|
134
|
+
"history": {
|
|
135
|
+
"recent": "Recent locations"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"commands": {
|
|
139
|
+
"goToDefinition": "Go to definition",
|
|
140
|
+
"goToTypeDefinition": "Go to type definition",
|
|
141
|
+
"goToImplementation": "Go to implementation",
|
|
142
|
+
"peekReferences": "Peek references",
|
|
143
|
+
"renameSymbol": "Rename symbol",
|
|
144
|
+
"codeActions": "Code actions",
|
|
145
|
+
"formatDocument": "Format document"
|
|
146
|
+
},
|
|
147
|
+
"find": {
|
|
148
|
+
"label": "Find",
|
|
149
|
+
"count": "{{current}} / {{total}}",
|
|
150
|
+
"none": "No results",
|
|
151
|
+
"invalid": "Invalid regular expression",
|
|
152
|
+
"caseSensitive": "Match case",
|
|
153
|
+
"wholeWord": "Match whole word",
|
|
154
|
+
"regex": "Use regular expression",
|
|
155
|
+
"inSelection": "In selection",
|
|
156
|
+
"noSelection": "No selection",
|
|
157
|
+
"selectAll": "Select all matches",
|
|
158
|
+
"previous": "Previous match",
|
|
159
|
+
"next": "Next match",
|
|
160
|
+
"close": "Close",
|
|
161
|
+
"replace": {
|
|
162
|
+
"label": "Replace with",
|
|
163
|
+
"one": "Replace",
|
|
164
|
+
"all": "All",
|
|
165
|
+
"allLabel": "Replace all",
|
|
166
|
+
"preserveCase": "Preserve case",
|
|
167
|
+
"toggle": "Show replace",
|
|
168
|
+
"hide": "Hide replace"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": {
|
|
3
|
+
"hover": {
|
|
4
|
+
"quickFix": "Quick fix…",
|
|
5
|
+
"quickFixNone": "Deze language server biedt geen quick fixes",
|
|
6
|
+
"definition": "Ga naar definitie",
|
|
7
|
+
"references_one": "{{formatted}} referentie",
|
|
8
|
+
"references_other": "{{formatted}} referenties",
|
|
9
|
+
"none": "Geen informatie voor deze plek"
|
|
10
|
+
},
|
|
11
|
+
"edit": {
|
|
12
|
+
"staged_one": "{{count}} bestand gewijzigd en nog niet opgeslagen",
|
|
13
|
+
"staged_other": "{{count}} bestanden gewijzigd en nog niet opgeslagen",
|
|
14
|
+
"stagedMore": "{{names}} en nog {{count}}",
|
|
15
|
+
"saveAll": "Alles opslaan",
|
|
16
|
+
"notSaved": "{{name}} kon niet worden opgeslagen"
|
|
17
|
+
},
|
|
18
|
+
"actions": {
|
|
19
|
+
"show": "Toon code actions",
|
|
20
|
+
"none": "Geen code actions hier",
|
|
21
|
+
"unavailable": "Geen language server biedt hier code actions",
|
|
22
|
+
"organized": "De imports zijn al georganiseerd",
|
|
23
|
+
"noFormatter": "Geen language server formatteert dit bestand",
|
|
24
|
+
"readOnly": "Dit bestand is alleen-lezen",
|
|
25
|
+
"failed": "De actie kon niet worden toegepast: {{message}}",
|
|
26
|
+
"refused": "De wijziging is geweigerd",
|
|
27
|
+
"moreLines": "nog {{count}} regels",
|
|
28
|
+
"otherFiles_one": "en nog {{count}} bestand",
|
|
29
|
+
"otherFiles_other": "en nog {{count}} bestanden",
|
|
30
|
+
"moves_one": "verplaatst {{count}} bestand",
|
|
31
|
+
"moves_other": "verplaatst {{count}} bestanden",
|
|
32
|
+
"groups": {
|
|
33
|
+
"quickfix": "Quick fix",
|
|
34
|
+
"rewrite": "Herschrijven",
|
|
35
|
+
"extract": "Extraheren",
|
|
36
|
+
"inline": "Inline",
|
|
37
|
+
"move": "Verplaatsen",
|
|
38
|
+
"refactor": "Refactor",
|
|
39
|
+
"source": "Source",
|
|
40
|
+
"other": "Overig"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"rename": {
|
|
44
|
+
"unavailable": "Geen language server hernoemt in dit bestand",
|
|
45
|
+
"nothing": "Hier is niets om te hernoemen",
|
|
46
|
+
"refused": "De language server weigerde de nieuwe naam",
|
|
47
|
+
"stale": "De tekst veranderde terwijl de hernoeming werd opgevraagd",
|
|
48
|
+
"failed": "Hernoemen mislukt: {{message}}",
|
|
49
|
+
"occurrences_one": "{{formatted}} voorkomen",
|
|
50
|
+
"occurrences_other": "{{formatted}} voorkomens",
|
|
51
|
+
"occurrencesFiles_one": "{{formatted}} voorkomen in {{files}} bestanden",
|
|
52
|
+
"occurrencesFiles_other": "{{formatted}} voorkomens in {{files}} bestanden",
|
|
53
|
+
"rename": "Hernoem",
|
|
54
|
+
"preview": "Voorbeeld",
|
|
55
|
+
"cancel": "Annuleer",
|
|
56
|
+
"apply": "Hernoem",
|
|
57
|
+
"suggestions": "Voorgestelde namen",
|
|
58
|
+
"useSuggestion": "Suggestie gebruiken"
|
|
59
|
+
},
|
|
60
|
+
"navigation": {
|
|
61
|
+
"unavailable": "Geen language server die dat hier beantwoordt",
|
|
62
|
+
"none": "Niets gevonden",
|
|
63
|
+
"failed": "Opzoeken mislukt: {{message}}",
|
|
64
|
+
"titles": {
|
|
65
|
+
"definition": "Definities",
|
|
66
|
+
"declaration": "Declaraties",
|
|
67
|
+
"typeDefinition": "Typedefinities",
|
|
68
|
+
"implementation": "Implementaties",
|
|
69
|
+
"symbol": "Overeenkomsten"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"peek": {
|
|
73
|
+
"unavailable": "Geen language server vindt referenties in dit bestand",
|
|
74
|
+
"none": "Geen referenties gevonden",
|
|
75
|
+
"failed": "Referenties opzoeken mislukt: {{message}}",
|
|
76
|
+
"references_one": "{{formatted}} referentie",
|
|
77
|
+
"references_other": "{{formatted}} referenties",
|
|
78
|
+
"close": "Sluit",
|
|
79
|
+
"collapse": "Inklappen",
|
|
80
|
+
"expand": "Uitklappen",
|
|
81
|
+
"definitions_one": "{{formatted}} definitie",
|
|
82
|
+
"definitions_other": "{{formatted}} definities",
|
|
83
|
+
"noDefinition": "Geen definitie gevonden",
|
|
84
|
+
"unavailableDefinition": "Geen language server vindt definities in dit bestand"
|
|
85
|
+
},
|
|
86
|
+
"codeVision": {
|
|
87
|
+
"usagesNone": "Niet gebruikt",
|
|
88
|
+
"usages_one": "{{formatted}} keer gebruikt",
|
|
89
|
+
"usages_other": "{{formatted}} keer gebruikt",
|
|
90
|
+
"newCode": "nieuw *",
|
|
91
|
+
"lines_one": "{{formatted}} regel",
|
|
92
|
+
"lines_other": "{{formatted}} regels",
|
|
93
|
+
"uncommitted": "Nog niet gecommit",
|
|
94
|
+
"latest": "Laatste wijziging",
|
|
95
|
+
"showCommit": "Commit tonen"
|
|
96
|
+
},
|
|
97
|
+
"symbols": {
|
|
98
|
+
"unavailable": "Geen language server kent de symbolen van dit bestand",
|
|
99
|
+
"failed": "De symbolen konden niet worden gelezen: {{message}}",
|
|
100
|
+
"placeholder": "Ga naar symbool in {{file}}",
|
|
101
|
+
"navigate": "Navigeer",
|
|
102
|
+
"open": "Open",
|
|
103
|
+
"workspace": "Symbolen in het project",
|
|
104
|
+
"line": "Ga naar regel",
|
|
105
|
+
"none": "Geen symbolen gevonden",
|
|
106
|
+
"workspaceHint": "Typ de naam van een symbool in het project",
|
|
107
|
+
"lineHint": "Typ een regelnummer",
|
|
108
|
+
"goToLine": "Ga naar regel {{line}}",
|
|
109
|
+
"groups": {
|
|
110
|
+
"namespaces": "Namespaces",
|
|
111
|
+
"classes": "Classes",
|
|
112
|
+
"interfaces": "Interfaces",
|
|
113
|
+
"enums": "Enums",
|
|
114
|
+
"functions": "Functies",
|
|
115
|
+
"methods": "Methoden",
|
|
116
|
+
"properties": "Properties",
|
|
117
|
+
"variables": "Variabelen",
|
|
118
|
+
"constants": "Constanten",
|
|
119
|
+
"other": "Overig"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"context": {
|
|
123
|
+
"refactor": "Refactor",
|
|
124
|
+
"cut": "Knip",
|
|
125
|
+
"copy": "Kopieer",
|
|
126
|
+
"paste": "Plak"
|
|
127
|
+
},
|
|
128
|
+
"completion": {
|
|
129
|
+
"insert": "Invoegen",
|
|
130
|
+
"replace": "Vervangen",
|
|
131
|
+
"details": "Details",
|
|
132
|
+
"none": "Geen suggesties"
|
|
133
|
+
},
|
|
134
|
+
"history": {
|
|
135
|
+
"recent": "Recente plekken"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"commands": {
|
|
139
|
+
"goToDefinition": "Ga naar definitie",
|
|
140
|
+
"goToTypeDefinition": "Ga naar typedefinitie",
|
|
141
|
+
"goToImplementation": "Ga naar implementatie",
|
|
142
|
+
"peekReferences": "Bekijk referenties",
|
|
143
|
+
"renameSymbol": "Symbool hernoemen",
|
|
144
|
+
"codeActions": "Codeacties",
|
|
145
|
+
"formatDocument": "Document formatteren"
|
|
146
|
+
},
|
|
147
|
+
"find": {
|
|
148
|
+
"label": "Zoeken",
|
|
149
|
+
"count": "{{current}} / {{total}}",
|
|
150
|
+
"none": "Geen resultaten",
|
|
151
|
+
"invalid": "Ongeldige reguliere expressie",
|
|
152
|
+
"caseSensitive": "Hoofdlettergevoelig",
|
|
153
|
+
"wholeWord": "Heel woord",
|
|
154
|
+
"regex": "Reguliere expressie gebruiken",
|
|
155
|
+
"inSelection": "In selectie",
|
|
156
|
+
"noSelection": "Geen selectie",
|
|
157
|
+
"selectAll": "Alle treffers selecteren",
|
|
158
|
+
"previous": "Vorige treffer",
|
|
159
|
+
"next": "Volgende treffer",
|
|
160
|
+
"close": "Sluiten",
|
|
161
|
+
"replace": {
|
|
162
|
+
"label": "Vervangen door",
|
|
163
|
+
"one": "Vervang",
|
|
164
|
+
"all": "Alles",
|
|
165
|
+
"allLabel": "Alles vervangen",
|
|
166
|
+
"preserveCase": "Hoofdletters behouden",
|
|
167
|
+
"toggle": "Vervangen tonen",
|
|
168
|
+
"hide": "Vervangen verbergen"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
package/src/models.ts
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export {
|
|
2
|
+
isIdentifierCharacter,
|
|
3
|
+
identifierPrefix,
|
|
4
|
+
type MatchDetail,
|
|
5
|
+
matchDetail,
|
|
6
|
+
matchScore,
|
|
7
|
+
editRangeOf,
|
|
8
|
+
itemsOf,
|
|
9
|
+
prefixFor,
|
|
10
|
+
type Ranked,
|
|
11
|
+
rankCompletions,
|
|
12
|
+
matchedCharacters,
|
|
13
|
+
qualifierOf,
|
|
14
|
+
qualifiersOf,
|
|
15
|
+
snippetToText,
|
|
16
|
+
METHOD_KIND,
|
|
17
|
+
FUNCTION_KIND,
|
|
18
|
+
CONSTRUCTOR_KIND,
|
|
19
|
+
CLASS_KIND,
|
|
20
|
+
SNIPPET_FORMAT,
|
|
21
|
+
type Insertion,
|
|
22
|
+
insertionOf,
|
|
23
|
+
mirroredInsertions,
|
|
24
|
+
documentationText,
|
|
25
|
+
completionDocsOf,
|
|
26
|
+
type KindTone,
|
|
27
|
+
kindLetterOf,
|
|
28
|
+
kindToneOf,
|
|
29
|
+
type RowWindow,
|
|
30
|
+
rowWindow
|
|
31
|
+
} from './completion-model.ts';
|
|
32
|
+
export { PARAMETER_HINTS_COMMAND, type CallPlan, type CallSite, isCallItem, hasParameters, planCall, withParentheses } from './completion-call.ts';
|
|
33
|
+
export {
|
|
34
|
+
type Problem,
|
|
35
|
+
severityOf,
|
|
36
|
+
markerOf,
|
|
37
|
+
comparePositions,
|
|
38
|
+
shiftPosition,
|
|
39
|
+
shiftRange,
|
|
40
|
+
rangeHolds,
|
|
41
|
+
problemsAt,
|
|
42
|
+
neighborProblem,
|
|
43
|
+
codeLabelOf
|
|
44
|
+
} from './diagnostics-model.ts';
|
|
45
|
+
export {
|
|
46
|
+
type SignatureBlock,
|
|
47
|
+
type HoverText,
|
|
48
|
+
splitSignatures,
|
|
49
|
+
hoverTextOf,
|
|
50
|
+
isEmptyHover,
|
|
51
|
+
locationsOf,
|
|
52
|
+
sameRange,
|
|
53
|
+
type DocTag,
|
|
54
|
+
splitDocTags,
|
|
55
|
+
type HoverSection,
|
|
56
|
+
type BaselineLevel,
|
|
57
|
+
type Baseline,
|
|
58
|
+
docblockMarkdown,
|
|
59
|
+
type MarkdownPart,
|
|
60
|
+
markdownParts,
|
|
61
|
+
hoverSectionsOf
|
|
62
|
+
} from './hover-content.ts';
|
|
63
|
+
export { type SignatureViewModel, parameterSpan, signatureViewOf } from './signature-model.ts';
|
|
64
|
+
export {
|
|
65
|
+
wordRangeAt,
|
|
66
|
+
type RenameTarget,
|
|
67
|
+
renameTargetOf,
|
|
68
|
+
type Occurrences,
|
|
69
|
+
occurrencesOf,
|
|
70
|
+
type RenameRow,
|
|
71
|
+
type RenameFile,
|
|
72
|
+
renameRowsOf,
|
|
73
|
+
renamePreviewOf
|
|
74
|
+
} from './rename-model.ts';
|
|
75
|
+
export {
|
|
76
|
+
type NameRange,
|
|
77
|
+
type PeekPlace,
|
|
78
|
+
type PeekFile,
|
|
79
|
+
PEEK_READ_FILES,
|
|
80
|
+
peekFilesOf,
|
|
81
|
+
type PeekSnippet,
|
|
82
|
+
snippetOf,
|
|
83
|
+
definitionSnippetOf,
|
|
84
|
+
distinguishingFolders,
|
|
85
|
+
visualColumnOf
|
|
86
|
+
} from './peek-model.ts';
|
|
87
|
+
export {
|
|
88
|
+
type SymbolGroup,
|
|
89
|
+
SYMBOL_GROUPS,
|
|
90
|
+
groupOfKind,
|
|
91
|
+
letterOfKind,
|
|
92
|
+
type SymbolTone,
|
|
93
|
+
toneOfKind,
|
|
94
|
+
type SymbolEntry,
|
|
95
|
+
entriesOf,
|
|
96
|
+
scoreOf,
|
|
97
|
+
filterEntries,
|
|
98
|
+
type EntryGroup,
|
|
99
|
+
groupEntries,
|
|
100
|
+
type PickerMode,
|
|
101
|
+
modeOf,
|
|
102
|
+
type WorkspaceEntry,
|
|
103
|
+
workspaceEntriesOf
|
|
104
|
+
} from './symbol-picker-model.ts';
|
|
105
|
+
export { SYMBOL_LINK_CLASS, isTypeName, linkTypeNames, declaredNameOf, placesOfName } from './symbol-links.ts';
|
|
106
|
+
export { scopesOf, decodeSemanticTokens } from './semantic-model.ts';
|
|
107
|
+
export {
|
|
108
|
+
type ActionGroup,
|
|
109
|
+
ACTION_GROUPS,
|
|
110
|
+
REFACTOR_GROUPS,
|
|
111
|
+
type ActionEntry,
|
|
112
|
+
groupOf,
|
|
113
|
+
actionsOf,
|
|
114
|
+
mergeEntries,
|
|
115
|
+
isHint,
|
|
116
|
+
fixableOnLine,
|
|
117
|
+
diagnosticsAt,
|
|
118
|
+
type EditPreview,
|
|
119
|
+
previewOf
|
|
120
|
+
} from './code-actions-model.ts';
|
|
121
|
+
export { MAX_DECLARATIONS, type CodeVisionDeclaration, type DeclarationSource, startAfterComments, declarationsOf, usagesText } from './code-vision-model.ts';
|
|
122
|
+
export { UNCOMMITTED, mapBlame, type CodeAuthor, type CodeAuthorship, shortName, authorshipOf, authorsText } from './code-authors.ts';
|
|
123
|
+
export { type SnippetStop, type ParsedSnippet, parseSnippet, tabOrder } from './snippet.ts';
|
|
124
|
+
export {
|
|
125
|
+
type LineSpan,
|
|
126
|
+
lineSpanOf,
|
|
127
|
+
isEmptyRange,
|
|
128
|
+
inlineRangeOf,
|
|
129
|
+
type InlineProblem,
|
|
130
|
+
problemsOnLines,
|
|
131
|
+
type InlineAnswer,
|
|
132
|
+
parseAnswer,
|
|
133
|
+
fitReplacement,
|
|
134
|
+
endOfInsertion,
|
|
135
|
+
type DiffSegment,
|
|
136
|
+
diffSegments,
|
|
137
|
+
emphasisOf,
|
|
138
|
+
offsetOf,
|
|
139
|
+
textInRange,
|
|
140
|
+
replaceRange,
|
|
141
|
+
locateSelection
|
|
142
|
+
} from './proposal-model.ts';
|
|
143
|
+
export { type LineReplacement, replaceLines, replaceAllLines } from './line-edits.ts';
|
|
144
|
+
export { replacedWords } from './word-diff.ts';
|
|
145
|
+
export {
|
|
146
|
+
type FindOptions,
|
|
147
|
+
type FindQuery,
|
|
148
|
+
EMPTY_FIND_QUERY,
|
|
149
|
+
type TextMatch,
|
|
150
|
+
type CompiledFind,
|
|
151
|
+
MATCH_LIMIT,
|
|
152
|
+
compileFind,
|
|
153
|
+
matchesIn,
|
|
154
|
+
stepIndex
|
|
155
|
+
} from './find-query.ts';
|
|
156
|
+
export { type PopupSize, type PopupPlacement, type PlaceOptions, placePopup, placeBeside } from './popup-placement.ts';
|
|
157
|
+
export { planConflict, type ConflictStretch, type ConflictPlan } from './conflict-model.ts';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { EditorPosition } from '@adecore/editor';
|
|
2
|
+
|
|
3
|
+
/* A place in a file of the project, as a caret stood there. */
|
|
4
|
+
export interface Place {
|
|
5
|
+
readonly uri: string;
|
|
6
|
+
readonly position: EditorPosition;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const LIMIT = 100;
|
|
10
|
+
|
|
11
|
+
/* 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. */
|
|
12
|
+
function samePlace(left: Place, right: Place): boolean {
|
|
13
|
+
return left.uri === right.uri && left.position.line === right.position.line;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Where the caret was before each jump, for Back and Forward. A jump records the place it left and
|
|
18
|
+
* forgets what Forward knew; walking back moves the place it left onto Forward, and the other way round.
|
|
19
|
+
* One history serves every editor of a project, so it walks across files.
|
|
20
|
+
*/
|
|
21
|
+
export class NavigationHistory {
|
|
22
|
+
private backs: Place[] = [];
|
|
23
|
+
private forwards: Place[] = [];
|
|
24
|
+
|
|
25
|
+
record(from: Place): void {
|
|
26
|
+
if (this.backs.length > 0 && samePlace(this.backs[this.backs.length - 1]!, from)) {
|
|
27
|
+
this.backs[this.backs.length - 1] = from;
|
|
28
|
+
} else {
|
|
29
|
+
this.backs.push(from);
|
|
30
|
+
if (this.backs.length > LIMIT) {
|
|
31
|
+
this.backs.shift();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
this.forwards = [];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* The place before `current`, which Forward then returns to; null when there is none. */
|
|
38
|
+
back(current: Place): Place | null {
|
|
39
|
+
return this.walk(this.backs, this.forwards, current);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
forward(current: Place): Place | null {
|
|
43
|
+
return this.walk(this.forwards, this.backs, current);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
canGoBack(current: Place): boolean {
|
|
47
|
+
return this.backs.some((place) => !samePlace(place, current));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
canGoForward(current: Place): boolean {
|
|
51
|
+
return this.forwards.some((place) => !samePlace(place, current));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Every place in the history but the one the caret is on, the latest first: where Back would go, then where Forward would. */
|
|
55
|
+
recent(current: Place): Place[] {
|
|
56
|
+
return [...this.backs.toReversed(), ...this.forwards.toReversed()].filter((place) => !samePlace(place, current));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private walk(from: Place[], to: Place[], current: Place): Place | null {
|
|
60
|
+
while (from.length > 0) {
|
|
61
|
+
const place = from.pop()!;
|
|
62
|
+
if (!samePlace(place, current)) {
|
|
63
|
+
to.push(current);
|
|
64
|
+
return place;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
}
|