@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.
Files changed (264) hide show
  1. package/README.md +2 -2
  2. package/dist/AnchoredPopup.d.ts +2 -1
  3. package/dist/CompletionPopup.js +0 -2
  4. package/dist/DiffView.d.ts +1 -28
  5. package/dist/EditorView.js +0 -1
  6. package/dist/HoverSections.d.ts +1 -8
  7. package/dist/HoverSections.js +2 -2
  8. package/dist/LanguagePopups.js +30 -14
  9. package/dist/PanelResizeHandle.js +0 -1
  10. package/dist/PeekPanel.js +0 -1
  11. package/dist/PickPopup.js +0 -1
  12. package/dist/RenderedDocs.js +0 -2
  13. package/dist/SplitDiffView.d.ts +1 -1
  14. package/dist/SymbolPicker.js +0 -1
  15. package/dist/call-hierarchy-model.js +0 -4
  16. package/dist/call-hierarchy.d.ts +9 -2
  17. package/dist/call-hierarchy.js +51 -67
  18. package/dist/clipboard-history.d.ts +3 -0
  19. package/dist/clipboard-history.js +0 -1
  20. package/dist/code-actions-model.js +1 -1
  21. package/dist/code-actions.d.ts +14 -2
  22. package/dist/code-actions.js +14 -9
  23. package/dist/code-authors.js +4 -12
  24. package/dist/code-vision-model.d.ts +0 -1
  25. package/dist/code-vision-model.js +1 -2
  26. package/dist/code-vision.d.ts +11 -3
  27. package/dist/code-vision.js +13 -18
  28. package/dist/completion-call.d.ts +1 -1
  29. package/dist/completion-call.js +2 -1
  30. package/dist/completion-model.d.ts +5 -4
  31. package/dist/completion-model.js +4 -4
  32. package/dist/completion.d.ts +13 -4
  33. package/dist/completion.js +19 -18
  34. package/dist/context-menu-rows.d.ts +2 -1
  35. package/dist/context-menu.d.ts +9 -3
  36. package/dist/context-menu.js +17 -19
  37. package/dist/definition-link.d.ts +8 -2
  38. package/dist/definition-link.js +4 -2
  39. package/dist/diagnostics-model.d.ts +6 -8
  40. package/dist/diagnostics-model.js +1 -54
  41. package/dist/diagnostics.d.ts +9 -7
  42. package/dist/diagnostics.js +6 -4
  43. package/dist/diff-view-props.d.ts +28 -0
  44. package/dist/diff-view-props.js +1 -0
  45. package/dist/doc-comment-model.js +0 -2
  46. package/dist/document-colors.d.ts +9 -4
  47. package/dist/document-colors.js +7 -4
  48. package/dist/document-links.d.ts +2 -3
  49. package/dist/document-links.js +2 -3
  50. package/dist/document-query.d.ts +2 -2
  51. package/dist/edit-locations.js +4 -22
  52. package/dist/editor-language.d.ts +12 -7
  53. package/dist/editor-language.js +54 -45
  54. package/dist/emmet.d.ts +3 -2
  55. package/dist/folding.d.ts +2 -4
  56. package/dist/folding.js +1 -2
  57. package/dist/format-on-type.d.ts +8 -2
  58. package/dist/format-on-type.js +8 -6
  59. package/dist/highlights.d.ts +2 -6
  60. package/dist/highlights.js +3 -3
  61. package/dist/history.d.ts +8 -2
  62. package/dist/history.js +4 -2
  63. package/dist/host-types.d.ts +39 -22
  64. package/dist/hover-content.js +0 -1
  65. package/dist/hover.d.ts +13 -2
  66. package/dist/hover.js +25 -28
  67. package/dist/index.d.ts +19 -9
  68. package/dist/index.js +5 -2
  69. package/dist/inlay-hints.d.ts +12 -21
  70. package/dist/inlay-hints.js +16 -15
  71. package/dist/inline-completion.d.ts +30 -10
  72. package/dist/inline-completion.js +346 -102
  73. package/dist/key-priority.d.ts +1 -1
  74. package/dist/key-priority.js +2 -2
  75. package/dist/language-context.d.ts +30 -0
  76. package/dist/language-context.js +1 -0
  77. package/dist/language-ids.d.ts +0 -1
  78. package/dist/language-ids.js +0 -32
  79. package/dist/line-text.js +0 -1
  80. package/dist/linked-editing.d.ts +2 -4
  81. package/dist/linked-editing.js +1 -3
  82. package/dist/live-templates.d.ts +14 -2
  83. package/dist/live-templates.js +15 -10
  84. package/dist/locales/en.d.ts +357 -0
  85. package/dist/locales/en.js +356 -0
  86. package/dist/locales/nl.d.ts +357 -0
  87. package/dist/locales/nl.js +356 -0
  88. package/dist/markup-context.d.ts +7 -6
  89. package/dist/markup-context.js +0 -1
  90. package/dist/markup.d.ts +8 -2
  91. package/dist/markup.js +19 -20
  92. package/dist/models.d.ts +2 -1
  93. package/dist/models.js +2 -1
  94. package/dist/navigation-history.d.ts +7 -0
  95. package/dist/navigation.d.ts +11 -8
  96. package/dist/navigation.js +9 -20
  97. package/dist/panel-size.d.ts +4 -0
  98. package/dist/paste-history.d.ts +8 -2
  99. package/dist/paste-history.js +4 -2
  100. package/dist/patch-layout.d.ts +0 -4
  101. package/dist/patch-layout.js +1 -1
  102. package/dist/peek-model.js +0 -1
  103. package/dist/peek.d.ts +8 -2
  104. package/dist/peek.js +31 -42
  105. package/dist/pick.d.ts +4 -2
  106. package/dist/pick.js +38 -15
  107. package/dist/popups.d.ts +25 -20
  108. package/dist/popups.js +31 -15
  109. package/dist/positions.d.ts +7 -0
  110. package/dist/positions.js +54 -0
  111. package/dist/postfix.d.ts +11 -2
  112. package/dist/postfix.js +10 -6
  113. package/dist/project-language.d.ts +11 -3
  114. package/dist/project-language.js +40 -9
  115. package/dist/project-problems.d.ts +7 -1
  116. package/dist/project-problems.js +2 -1
  117. package/dist/rename-model.js +1 -1
  118. package/dist/rename.d.ts +2 -2
  119. package/dist/rename.js +17 -22
  120. package/dist/rendered-docs.d.ts +8 -2
  121. package/dist/rendered-docs.js +5 -4
  122. package/dist/selection-ranges.d.ts +2 -2
  123. package/dist/semantic-tokens.d.ts +2 -4
  124. package/dist/semantic-tokens.js +2 -2
  125. package/dist/shortcut-keys.d.ts +2 -1
  126. package/dist/signature.d.ts +2 -2
  127. package/dist/signature.js +9 -15
  128. package/dist/snippet-field-transforms.js +1 -1
  129. package/dist/snippet-insert.d.ts +4 -2
  130. package/dist/snippet-insert.js +9 -15
  131. package/dist/snippet-session.d.ts +9 -4
  132. package/dist/snippet-session.js +14 -14
  133. package/dist/snippet-transform-format.d.ts +2 -1
  134. package/dist/snippet-transform-queue.d.ts +2 -4
  135. package/dist/snippet-transform-queue.js +5 -37
  136. package/dist/snippet.d.ts +2 -1
  137. package/dist/surround-constructs.d.ts +1 -1
  138. package/dist/surround.d.ts +13 -2
  139. package/dist/surround.js +15 -8
  140. package/dist/symbol-links.d.ts +0 -1
  141. package/dist/symbol-links.js +1 -1
  142. package/dist/symbol-picker-model.d.ts +0 -1
  143. package/dist/symbol-picker-model.js +1 -2
  144. package/dist/symbol-picker.d.ts +2 -2
  145. package/dist/symbol-picker.js +5 -10
  146. package/dist/symbols.d.ts +4 -3
  147. package/dist/template-builtins.d.ts +1 -1
  148. package/dist/template-builtins.js +0 -1
  149. package/dist/template-context.d.ts +3 -3
  150. package/dist/template-context.js +2 -11
  151. package/dist/template-types.d.ts +20 -0
  152. package/dist/template-types.js +1 -0
  153. package/dist/templates.d.ts +5 -20
  154. package/dist/templates.js +0 -1
  155. package/dist/testing.d.ts +6 -0
  156. package/dist/testing.js +42 -0
  157. package/dist/use-problem-counts.d.ts +1 -1
  158. package/dist/word-diff.d.ts +1 -1
  159. package/dist/word-diff.js +16 -25
  160. package/dist/workspace-edit.d.ts +1 -24
  161. package/dist/workspace-edit.js +0 -1
  162. package/package.json +10 -9
  163. package/src/AnchoredPopup.tsx +1 -1
  164. package/src/CompletionPopup.tsx +0 -2
  165. package/src/DiffView.tsx +6 -38
  166. package/src/EditorView.tsx +0 -1
  167. package/src/HoverSections.tsx +2 -2
  168. package/src/LanguagePopups.tsx +20 -14
  169. package/src/PanelResizeHandle.tsx +0 -1
  170. package/src/PeekPanel.tsx +0 -1
  171. package/src/PickPopup.tsx +0 -1
  172. package/src/RenderedDocs.tsx +0 -2
  173. package/src/SplitDiffView.tsx +1 -1
  174. package/src/SymbolPicker.tsx +0 -1
  175. package/src/call-hierarchy-model.ts +0 -7
  176. package/src/call-hierarchy.ts +32 -31
  177. package/src/clipboard-history.ts +5 -2
  178. package/src/code-actions-model.ts +1 -4
  179. package/src/code-actions.ts +26 -10
  180. package/src/code-authors.ts +4 -15
  181. package/src/code-vision-model.ts +1 -2
  182. package/src/code-vision.ts +23 -19
  183. package/src/completion-call.ts +2 -2
  184. package/src/completion-model.ts +12 -7
  185. package/src/completion.ts +31 -16
  186. package/src/context-menu-rows.ts +1 -1
  187. package/src/context-menu.ts +19 -10
  188. package/src/definition-link.ts +12 -4
  189. package/src/diagnostics-model.ts +8 -55
  190. package/src/diagnostics.ts +11 -20
  191. package/src/diff-view-props.ts +38 -0
  192. package/src/doc-comment-model.ts +0 -2
  193. package/src/document-colors.ts +14 -6
  194. package/src/document-links.ts +5 -6
  195. package/src/document-query.ts +3 -3
  196. package/src/edit-locations.ts +4 -19
  197. package/src/editor-language.ts +74 -39
  198. package/src/emmet.ts +2 -3
  199. package/src/folding.ts +4 -5
  200. package/src/format-on-type.ts +14 -7
  201. package/src/highlights.ts +6 -6
  202. package/src/history.ts +12 -4
  203. package/src/host-types.ts +52 -33
  204. package/src/hover-content.ts +0 -1
  205. package/src/hover.ts +29 -22
  206. package/src/index.ts +25 -14
  207. package/src/inlay-hints.ts +23 -17
  208. package/src/inline-completion.ts +340 -90
  209. package/src/key-priority.ts +2 -2
  210. package/src/language-context.ts +60 -0
  211. package/src/language-ids.ts +0 -34
  212. package/src/line-text.ts +0 -1
  213. package/src/linked-editing.ts +4 -6
  214. package/src/live-templates.ts +27 -13
  215. package/src/locales/en.ts +356 -0
  216. package/src/locales/nl.ts +356 -0
  217. package/src/markup-context.ts +6 -9
  218. package/src/markup.ts +19 -10
  219. package/src/models.ts +2 -1
  220. package/src/navigation-history.ts +11 -0
  221. package/src/navigation.ts +18 -20
  222. package/src/panel-size.ts +8 -0
  223. package/src/paste-history.ts +12 -4
  224. package/src/patch-layout.ts +1 -1
  225. package/src/peek-model.ts +0 -1
  226. package/src/peek.ts +22 -18
  227. package/src/pick.ts +30 -16
  228. package/src/popups.ts +61 -40
  229. package/src/positions.ts +54 -0
  230. package/src/postfix.ts +21 -8
  231. package/src/project-language.ts +63 -14
  232. package/src/project-problems.ts +10 -2
  233. package/src/proposal-model.ts +0 -1
  234. package/src/rename-model.ts +1 -1
  235. package/src/rename.ts +21 -24
  236. package/src/rendered-docs.ts +13 -6
  237. package/src/selection-ranges.ts +2 -2
  238. package/src/semantic-tokens.ts +5 -5
  239. package/src/shortcut-keys.ts +1 -1
  240. package/src/signature.ts +8 -8
  241. package/src/snippet-field-transforms.ts +1 -1
  242. package/src/snippet-insert.ts +21 -14
  243. package/src/snippet-session.ts +25 -24
  244. package/src/snippet-transform-format.ts +1 -1
  245. package/src/snippet-transform-queue.ts +5 -51
  246. package/src/snippet.ts +1 -1
  247. package/src/surround-constructs.ts +1 -1
  248. package/src/surround.ts +24 -12
  249. package/src/symbol-links.ts +1 -1
  250. package/src/symbol-picker-model.ts +1 -4
  251. package/src/symbol-picker.ts +6 -7
  252. package/src/symbols.ts +3 -4
  253. package/src/template-builtins.ts +1 -2
  254. package/src/template-context.ts +5 -14
  255. package/src/template-types.ts +43 -0
  256. package/src/templates.ts +9 -45
  257. package/src/testing.ts +52 -0
  258. package/src/use-problem-counts.ts +1 -1
  259. package/src/word-diff.ts +17 -28
  260. package/src/workspace-edit.ts +1 -34
  261. package/dist/locales/en.json +0 -356
  262. package/dist/locales/nl.json +0 -356
  263. package/src/locales/en.json +0 -356
  264. package/src/locales/nl.json +0 -356
package/src/testing.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { KeyChord } from '@adecore/editor';
1
2
  import {
2
3
  applyContentChanges,
3
4
  ErrorCodes,
@@ -57,9 +58,60 @@ import {
57
58
  type TypeHierarchyItem,
58
59
  type WorkspaceDiagnosticReport
59
60
  } from '@adecore/lsp';
61
+ import { isApplePlatform } from '@adecore/ui';
60
62
 
61
63
  export { ManualTimers } from './timers.ts';
62
64
 
65
+ /* The build has no Node types, and a turn of the event loop is what the fake service needs. */
66
+ declare function setImmediate(callback: () => void): unknown;
67
+
68
+ /* A shortcut as a keymap or a shortcut table gives it; `apple` says which platform's modifier `mod` stands for. */
69
+ export type KeyShortcut = KeyChord & { readonly apple?: boolean };
70
+
71
+ const KEY_CODES: Readonly<Record<string, string>> = {
72
+ ',': 'Comma',
73
+ '.': 'Period',
74
+ '/': 'Slash',
75
+ ';': 'Semicolon',
76
+ "'": 'Quote',
77
+ '`': 'Backquote',
78
+ '\\': 'Backslash',
79
+ '[': 'BracketLeft',
80
+ ']': 'BracketRight',
81
+ '-': 'Minus',
82
+ '=': 'Equal'
83
+ };
84
+
85
+ /*
86
+ * The keydown a person pressing the shortcut sends, as `FakeEditor.press` takes it. `mod` is Meta on an Apple
87
+ * platform and Ctrl elsewhere: the platform of the shortcut, else the one given, else the page's.
88
+ */
89
+ export function keyOf(shortcut: KeyShortcut | null, apple?: boolean): Pick<KeyboardEvent, 'key' | 'code' | 'ctrlKey' | 'metaKey' | 'altKey' | 'shiftKey'> {
90
+ if (shortcut === null) {
91
+ throw new Error('The keymap has no shortcut for this');
92
+ }
93
+
94
+ const { key } = shortcut;
95
+ const onApple = shortcut.apple ?? apple ?? isApplePlatform();
96
+ const letter = /^[A-Z]$/.test(key);
97
+
98
+ return {
99
+ key: letter ? key.toLowerCase() : key === 'Space' ? ' ' : key,
100
+ code: letter ? `Key${key}` : /^[0-9]$/.test(key) ? `Digit${key}` : (KEY_CODES[key] ?? key),
101
+ ctrlKey: shortcut.ctrl || (shortcut.mod && !onApple),
102
+ metaKey: shortcut.meta || (shortcut.mod && onApple),
103
+ altKey: shortcut.alt,
104
+ shiftKey: shortcut.shift
105
+ };
106
+ }
107
+
108
+ /* The fake language service has no I/O; a few event-loop turns drain its promise chains. */
109
+ export async function settle(): Promise<void> {
110
+ for (let i = 0; i < 6; i++) {
111
+ await new Promise<void>((resolve) => setImmediate(resolve));
112
+ }
113
+ }
114
+
63
115
  export interface LanguageCall {
64
116
  method: string;
65
117
  uri: string;
@@ -1,5 +1,5 @@
1
1
  import { useMemo, useSyncExternalStore } from 'react';
2
- import type { ProblemCounts } from './diagnostics.ts';
2
+ import type { ProblemCounts } from './diagnostics-model.ts';
3
3
  import type { EditorLanguage } from './editor-language.ts';
4
4
 
5
5
  const NONE: ProblemCounts = { error: 0, warning: 0, info: 0 };
package/src/word-diff.ts CHANGED
@@ -1,38 +1,27 @@
1
- import { diffLines } from '@adecore/merge';
2
-
3
- /* A word, a run of spaces or one other character, so a change inside a line is found by word and not by letter. */
4
- const TOKEN = /\w+|\s+|[^\w\s]/g;
1
+ import { wordChanges } from '@adecore/merge';
5
2
 
6
3
  /*
7
- * The `[start, end)` ranges of each removed line that the added lines replaced. Lines pair up only when as
8
- * many were added as removed; any other change has no pairing and marks no words.
4
+ * The `[start, end)` ranges of each of `lines` that differ from the line of `replaced` it stands for. Lines pair up
5
+ * only when there are as many of each; any other change has no pairing and marks no words.
9
6
  */
10
- export function replacedWords(removed: readonly string[], added: readonly string[]): Array<Array<[number, number]>> {
11
- return removed.map((line, index) => (removed.length === added.length ? replacedRanges(line, added[index]!) : []));
7
+ export function replacedWords(lines: readonly string[], replaced: readonly string[]): Array<Array<[number, number]>> {
8
+ return lines.map((line, index) => (lines.length === replaced.length ? changedRanges(line, replaced[index]!) : []));
12
9
  }
13
10
 
14
- function replacedRanges(removed: string, added: string): Array<[number, number]> {
15
- const before = removed.match(TOKEN) ?? [];
16
- const after = added.match(TOKEN) ?? [];
17
- const starts: number[] = [];
18
- let offset = 0;
19
-
20
- for (const token of before) {
21
- starts.push(offset);
22
- offset += token.length;
23
- }
11
+ /* The words of `line` that `replaced` does not have, without the space around them; a change of spacing marks nothing. */
12
+ function changedRanges(line: string, replaced: string): Array<[number, number]> {
13
+ const words = wordChanges(replaced, line);
24
14
 
25
- starts.push(offset);
26
- const ranges: Array<[number, number]> = [];
15
+ return (words?.new ?? []).flatMap((range): Array<[number, number]> => {
16
+ const text = line.slice(range.from, range.to);
17
+ const trimmed = text.trim();
27
18
 
28
- for (const change of diffLines(before, after)) {
29
- const text = removed.slice(starts[change.baseStart]!, starts[change.baseEnd]!);
30
-
31
- if (text.trim() !== '') {
32
- const start = starts[change.baseStart]! + (text.length - text.trimStart().length);
33
- ranges.push([start, start + text.trim().length]);
19
+ if (trimmed === '') {
20
+ return [];
34
21
  }
35
- }
36
22
 
37
- return ranges;
23
+ const start = range.from + (text.length - text.trimStart().length);
24
+
25
+ return [[start, start + trimmed.length]];
26
+ });
38
27
  }
@@ -13,37 +13,7 @@ import {
13
13
  type WorkspaceEditStep
14
14
  } from '@adecore/lsp';
15
15
  import { messageOf } from './error-message.ts';
16
- import type { DiskText } from './host-types.ts';
17
-
18
- /* A file that changed without an editor of this project holding it: its new text waits as an unsaved draft. */
19
- export interface StagedFile {
20
- readonly path: string;
21
- readonly disk: DiskText;
22
- readonly text: string;
23
- }
24
-
25
- export interface ProjectFiles {
26
- /* The text of a file that is no open document, as a draft holds it or the machine has it; null when it is not a text file. */
27
- read(path: string): Promise<DiskText | null>;
28
- /* Puts the new texts in the files' drafts and tells the person. Nothing is written to disk. */
29
- stage(files: readonly StagedFile[]): void;
30
- /* Writes the new texts through the machine; the reason of the first file that could not be saved, or null. */
31
- save(files: readonly StagedFile[]): Promise<string | null>;
32
- /* Moves a file or folder on the machine, with what is open on it, and tells the servers it moved; the reason it could not, or null. Without `exists` an edit cannot tell whether the target is there, so refuse a target that is. With `overwrite` the target is there and is replaced, which needs `supportsOverwrite`; what is open on the replaced target is the host's to close or reload. */
33
- rename(from: string, to: string, options?: { readonly overwrite: boolean }): Promise<string | null>;
34
- /* Makes a file with its text, through the machine, and tells the servers it was made; the reason it could not, or null. Without it no edit creates a file. Without `exists`, refuse a file that is there. With `overwrite` the file is there and its content becomes `text`, which needs `supportsOverwrite`; an editor still open on it is set to `text` by the edit itself. */
35
- create?(path: string, text: string, options?: { readonly overwrite: boolean }): Promise<string | null>;
36
- /* Deletes a file, or a folder with what is in it when `recursive`, and tells the servers it is gone; the reason it could not, or null. Without it no edit deletes anything. */
37
- delete?(path: string, options: { readonly recursive: boolean }): Promise<string | null>;
38
- /* Whether `create` and `rename` take `overwrite`. Without it an edit that asks to overwrite a file is refused, since the file is there. */
39
- readonly supportsOverwrite?: boolean;
40
- /* Whether a draft or an open editor at the path, or under it for a folder, holds text that is not saved. A delete that would lose it is refused. */
41
- isUnsaved?(path: string): boolean;
42
- /* Whether anything is at the path, a file of any kind or a folder. Without it, an edit cannot tell whether something that is no text file exists. It may move or delete it and leave the outcome to the machine, and `ignoreIfNotExists` cannot be honored. */
43
- exists?(path: string): Promise<boolean>;
44
- /* Whether the path is a folder. Without it, deleting anything that is no text file needs `recursive`. */
45
- isFolder?(path: string): Promise<boolean>;
46
- }
16
+ import type { DiskText, ProjectFiles, StagedFile } from './host-types.ts';
47
17
 
48
18
  export interface WorkspaceEditHost {
49
19
  /* The editor whose document this is, which takes the edit as one undo step. */
@@ -378,9 +348,7 @@ export async function applyWorkspaceEdit(edit: WorkspaceEdit, host: WorkspaceEdi
378
348
  return { applied: true };
379
349
  }
380
350
 
381
- /* What the steps share while they run. */
382
351
  interface Running {
383
- /* The steps still to run after the current one. */
384
352
  ahead: readonly WorkspaceEditStep[];
385
353
  readonly reads: Reads;
386
354
  /* A rename is in the edit, so the files it edits are saved in order instead of staged as drafts. */
@@ -405,7 +373,6 @@ function driftOf(step: PlannedTextStep, host: WorkspaceEditHost, uri: string, ed
405
373
  return readOnlyAt(host, uri, editor) ? `${step.uri} is read only` : null;
406
374
  }
407
375
 
408
- /* Does one step; the reason it could not, or null. */
409
376
  async function run(step: WorkspaceEditStep, host: WorkspaceEditHost, running: Running): Promise<string | null> {
410
377
  const files = host.files!;
411
378
 
@@ -1,356 +0,0 @@
1
- {
2
- "language": {
3
- "hover": {
4
- "quickFix": "Quick fix…",
5
- "quickFixNone": "No quick fixes",
6
- "definition": "Go to definition",
7
- "references_one": "{{formatted}} reference",
8
- "references_other": "{{formatted}} references",
9
- "line": "Line {{line}}",
10
- "none": "No information here"
11
- },
12
- "inlay": {
13
- "failed": "Could not run hint action: {{message}}"
14
- },
15
- "edit": {
16
- "staged_one": "{{count}} unsaved file",
17
- "staged_other": "{{count}} unsaved files",
18
- "stagedMore": "{{names}} and {{count}} more",
19
- "saveAll": "Save all",
20
- "notSaved": "Could not save {{name}}"
21
- },
22
- "actions": {
23
- "show": "Show code actions",
24
- "none": "No code actions here",
25
- "unavailable": "Code actions unavailable here",
26
- "organized": "Imports already organized",
27
- "noFormatter": "No formatter for this file",
28
- "readOnly": "Read-only file",
29
- "failed": "Could not apply action: {{message}}",
30
- "refused": "Edit refused",
31
- "moreLines": "{{count}} more lines",
32
- "otherFiles_one": "and {{count}} other file",
33
- "otherFiles_other": "and {{count}} other files",
34
- "moves_one": "moves {{count}} file",
35
- "moves_other": "moves {{count}} files",
36
- "creates_one": "creates {{count}} file",
37
- "creates_other": "creates {{count}} files",
38
- "deletes_one": "deletes {{count}} file",
39
- "deletes_other": "deletes {{count}} files",
40
- "groups": {
41
- "quickfix": "Quick fix",
42
- "rewrite": "Rewrite",
43
- "extract": "Extract",
44
- "inline": "Inline",
45
- "move": "Move",
46
- "refactor": "Refactor",
47
- "source": "Source",
48
- "other": "Other"
49
- }
50
- },
51
- "rename": {
52
- "unavailable": "Rename unavailable in this file",
53
- "nothing": "Nothing to rename here",
54
- "refused": "New name refused",
55
- "stale": "The text changed before the rename finished. Try again.",
56
- "failed": "Could not rename: {{message}}",
57
- "occurrences_one": "{{formatted}} occurrence",
58
- "occurrences_other": "{{formatted}} occurrences",
59
- "occurrencesFiles_one": "{{formatted}} occurrence in {{files}} files",
60
- "occurrencesFiles_other": "{{formatted}} occurrences in {{files}} files",
61
- "rename": "Rename",
62
- "preview": "Preview",
63
- "cancel": "Cancel",
64
- "apply": "Rename",
65
- "suggestions": "Suggested names",
66
- "useSuggestion": "Use suggestion",
67
- "operations": {
68
- "create": "Creates",
69
- "rename": "Moves",
70
- "delete": "Deletes"
71
- }
72
- },
73
- "markup": {
74
- "wrap": "Wrap with abbreviation",
75
- "placeholder": "Abbreviation, such as div.card>p",
76
- "apply": "Wrap",
77
- "invalid": "Not an abbreviation"
78
- },
79
- "navigation": {
80
- "unavailable": "Not available here",
81
- "none": "Nothing found",
82
- "failed": "Could not look it up: {{message}}",
83
- "titles": {
84
- "definition": "Definitions",
85
- "declaration": "Declarations",
86
- "typeDefinition": "Type definitions",
87
- "implementation": "Implementations",
88
- "symbol": "Matches"
89
- }
90
- },
91
- "panel": {
92
- "resize": "Resize panel"
93
- },
94
- "peek": {
95
- "unavailable": "References unavailable in this file",
96
- "none": "No references found",
97
- "failed": "Could not look up references: {{message}}",
98
- "references_one": "{{formatted}} reference",
99
- "references_other": "{{formatted}} references",
100
- "close": "Close",
101
- "collapse": "Collapse",
102
- "expand": "Expand",
103
- "definitions_one": "{{formatted}} definition",
104
- "definitions_other": "{{formatted}} definitions",
105
- "noDefinition": "No definition found",
106
- "unavailableDefinition": "Definitions unavailable in this file"
107
- },
108
- "callHierarchy": {
109
- "unavailable": "Calls unavailable in this file",
110
- "none": "No calls here",
111
- "failed": "Could not look up calls: {{message}}",
112
- "label": "Call hierarchy",
113
- "direction": "Direction",
114
- "incoming": "Callers",
115
- "outgoing": "Callees",
116
- "close": "Close",
117
- "loading": "Loading…",
118
- "noIncoming": "No callers",
119
- "noOutgoing": "No callees",
120
- "retry": "Could not load calls: {{message}}. Click to try again",
121
- "more_one": "Show {{formatted}} more call ({{hidden}} left)",
122
- "more_other": "Show {{formatted}} more calls ({{hidden}} left)",
123
- "sites_one": "{{formatted}} call",
124
- "sites_other": "{{formatted}} calls",
125
- "site": "Call {{current}} of {{total}}",
126
- "previousSite": "Previous call",
127
- "nextSite": "Next call",
128
- "typesUnavailable": "Type hierarchy unavailable in this file",
129
- "typesNone": "No type here",
130
- "typesFailed": "Could not look up types: {{message}}",
131
- "typesLabel": "Type hierarchy",
132
- "supertypes": "Supertypes",
133
- "subtypes": "Subtypes",
134
- "noSupertypes": "No supertypes",
135
- "noSubtypes": "No subtypes",
136
- "announce": {
137
- "incoming_one": "{{count}} caller of {{name}}",
138
- "incoming_other": "{{count}} callers of {{name}}",
139
- "outgoing_one": "{{count}} callee of {{name}}",
140
- "outgoing_other": "{{count}} callees of {{name}}",
141
- "supertypes_one": "{{count}} supertype of {{name}}",
142
- "supertypes_other": "{{count}} supertypes of {{name}}",
143
- "subtypes_one": "{{count}} subtype of {{name}}",
144
- "subtypes_other": "{{count}} subtypes of {{name}}"
145
- }
146
- },
147
- "colors": {
148
- "swatch": "Color {{color}}",
149
- "title": "Color",
150
- "other": "Pick another color…"
151
- },
152
- "codeVision": {
153
- "usagesNone": "No usages",
154
- "usages_one": "{{formatted}} usage",
155
- "usages_other": "{{formatted}} usages",
156
- "newCode": "new *",
157
- "lines_one": "{{formatted}} line",
158
- "lines_other": "{{formatted}} lines",
159
- "uncommitted": "Uncommitted",
160
- "latest": "Latest change",
161
- "showCommit": "Show commit"
162
- },
163
- "symbols": {
164
- "unavailable": "Symbols unavailable in this file",
165
- "failed": "Could not read symbols: {{message}}",
166
- "placeholder": "Go to symbol in {{file}}",
167
- "navigate": "Navigate",
168
- "open": "Open",
169
- "workspace": "Workspace symbols",
170
- "line": "Go to line",
171
- "none": "No matching symbols",
172
- "workspaceHint": "Type a symbol name",
173
- "lineHint": "Type a line number",
174
- "goToLine": "Go to line {{line}}",
175
- "groups": {
176
- "namespaces": "Namespaces",
177
- "classes": "Classes",
178
- "interfaces": "Interfaces",
179
- "enums": "Enums",
180
- "functions": "Functions",
181
- "methods": "Methods",
182
- "properties": "Properties",
183
- "variables": "Variables",
184
- "constants": "Constants",
185
- "other": "Other"
186
- }
187
- },
188
- "context": {
189
- "refactor": "Refactor",
190
- "cut": "Cut",
191
- "copy": "Copy",
192
- "paste": "Paste",
193
- "renameSymbol": "Rename symbol…",
194
- "goTo": {
195
- "menu": "Go to",
196
- "definition": "Definition",
197
- "declaration": "Declaration",
198
- "typeDefinition": "Type definition",
199
- "implementation": "Implementation"
200
- }
201
- },
202
- "snippet": {
203
- "choices": "Snippet choice"
204
- },
205
- "completion": {
206
- "tooLarge": "Too large to insert",
207
- "insert": "Insert",
208
- "replace": "Replace",
209
- "details": "Details",
210
- "none": "No suggestions",
211
- "transformBusy": "The snippet is not ready yet. Try again.",
212
- "transformFailed": "Could not fill in the snippet",
213
- "failed": "Could not insert suggestion: {{message}}"
214
- },
215
- "history": {
216
- "recent": "Recent locations"
217
- },
218
- "pasteHistory": {
219
- "title": "Choose content to paste",
220
- "empty": "Nothing copied yet"
221
- },
222
- "templates": {
223
- "none": "No templates defined in this context",
224
- "selectToSave": "Select the text to save as a live template"
225
- },
226
- "postfix": {
227
- "expressions": "Expressions"
228
- },
229
- "surround": {
230
- "title": "Surround with",
231
- "selectTemplate": "Select template",
232
- "liveTemplates": "Live templates",
233
- "configure": "Configure live templates…",
234
- "comments": "{{construct}} comments",
235
- "none": "Surround with has no options here",
236
- "noTemplates": "No surround templates defined in this context",
237
- "unwrap": {
238
- "title": "Choose the statement to unwrap or remove",
239
- "if": "Unwrap 'if...'",
240
- "else": "Unwrap 'else...'",
241
- "removeElse": "Remove 'else...'",
242
- "for": "Unwrap 'for...'",
243
- "while": "Unwrap 'while...'",
244
- "do": "Unwrap 'do...'",
245
- "try": "Unwrap 'try...'",
246
- "removeCatch": "Remove 'catch...'",
247
- "removeFinally": "Remove 'finally...'",
248
- "braces": "Unwrap braces",
249
- "tag": "Remove enclosing tag: {{name}}"
250
- }
251
- },
252
- "announce": {
253
- "problem": "{{severity}}: {{message}}",
254
- "severity": {
255
- "error": "Error",
256
- "warning": "Warning",
257
- "info": "Information",
258
- "hint": "Hint"
259
- },
260
- "field": "Field {{current}} of {{total}}",
261
- "fieldChoices_one": "Field {{current}} of {{total}}, {{count}} choice",
262
- "fieldChoices_other": "Field {{current}} of {{total}}, {{count}} choices"
263
- },
264
- "fold": {
265
- "fold": "Fold lines {{start}} to {{end}}",
266
- "unfold": "Unfold lines {{start}} to {{end}}"
267
- },
268
- "docs": {
269
- "label": "Rendered documentation",
270
- "labelNamed": "Rendered documentation: {{- summary}}",
271
- "render": "Show rendered documentation",
272
- "showSource": "Show documentation source",
273
- "tags": {
274
- "deprecated": "Deprecated",
275
- "template": "Type parameters",
276
- "param": "Parameters",
277
- "property": "Properties",
278
- "type": "Type",
279
- "var": "Variable",
280
- "return": "Returns",
281
- "yield": "Yields",
282
- "throws": "Throws",
283
- "see": "See also",
284
- "example": "Example",
285
- "since": "Since",
286
- "version": "Version",
287
- "author": "Author"
288
- }
289
- }
290
- },
291
- "commands": {
292
- "goToDefinition": "Go to definition",
293
- "goToTypeDefinition": "Go to type definition",
294
- "goToImplementation": "Go to implementation",
295
- "callHierarchy": "Call hierarchy",
296
- "typeHierarchy": "Type hierarchy",
297
- "peekReferences": "Peek references",
298
- "renameSymbol": "Rename symbol",
299
- "codeActions": "Code actions",
300
- "formatDocument": "Format document",
301
- "formatSelection": "Format selection"
302
- },
303
- "find": {
304
- "label": "Find",
305
- "count": "{{current}} / {{total}}",
306
- "countLimited": "{{current}} / {{total}}+",
307
- "none": "No results",
308
- "invalid": "Invalid regular expression",
309
- "caseSensitive": "Match case",
310
- "wholeWord": "Match whole word",
311
- "regex": "Use regular expression",
312
- "inSelection": "In selection",
313
- "noSelection": "No selection",
314
- "selectAll": "Select all matches",
315
- "previous": "Previous match",
316
- "next": "Next match",
317
- "close": "Close",
318
- "replace": {
319
- "label": "Replace with",
320
- "one": "Replace",
321
- "all": "All",
322
- "allLabel": "Replace all",
323
- "preserveCase": "Preserve case",
324
- "toggle": "Show replace",
325
- "hide": "Hide replace",
326
- "failed": {
327
- "limit": "Too much to replace at once (more than {{edits}} matches or {{characters}} characters)",
328
- "timeout": "Replace timed out. Nothing changed",
329
- "unavailable": "Replace is not available right now",
330
- "error": "Could not replace. Nothing changed"
331
- }
332
- },
333
- "countMore": "{{total}}+ matches",
334
- "searching": "Searching…",
335
- "large": "This document is large. Press Enter to search",
336
- "replaced": "Replaced {{count}} matches",
337
- "failed": {
338
- "timeout": "Search timed out. Press Enter to try again",
339
- "unavailable": "Regex search is unavailable",
340
- "invalid": "Invalid regular expression",
341
- "error": "Could not finish the search"
342
- }
343
- },
344
- "diff": {
345
- "hidden": "Show {{count}} hidden lines",
346
- "contextLimit": "Context limit reached",
347
- "oldSide": "Before",
348
- "newSide": "After",
349
- "noNewline": "No final newline",
350
- "added": "Added, new line {{number}}",
351
- "removed": "Removed, old line {{number}}",
352
- "unchanged": "Old line {{old}}, new line {{new}}",
353
- "addedLine": "Added line",
354
- "removedLine": "Removed line"
355
- }
356
- }