@adecore/editor-react 0.53.3 → 0.54.1

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 (131) hide show
  1. package/dist/AnchoredPopup.d.ts +1 -1
  2. package/dist/AnchoredPopup.js +27 -12
  3. package/dist/AttributionCard.d.ts +1 -1
  4. package/dist/BaselineStatus.js +1 -1
  5. package/dist/CallHierarchyPanel.js +11 -10
  6. package/dist/ChangeReview.d.ts +1 -1
  7. package/dist/CodeAuthorsCard.js +2 -2
  8. package/dist/CompletionPopup.js +18 -14
  9. package/dist/DiffView.d.ts +2 -2
  10. package/dist/DiffView.js +159 -143
  11. package/dist/EditorContextMenu.js +1 -1
  12. package/dist/EditorView.d.ts +2 -2
  13. package/dist/EditorView.js +97 -81
  14. package/dist/FindReplace.js +3 -3
  15. package/dist/HoverCard.d.ts +3 -3
  16. package/dist/HoverCard.js +3 -3
  17. package/dist/HoverSections.js +1 -1
  18. package/dist/LanguagePopups.js +1 -1
  19. package/dist/Markdown.js +15 -3
  20. package/dist/PeekPanel.js +124 -103
  21. package/dist/PickPopup.js +8 -4
  22. package/dist/RenameCard.js +7 -7
  23. package/dist/RenderedDocs.d.ts +1 -1
  24. package/dist/RenderedDocs.js +1 -1
  25. package/dist/SplitDiffView.js +21 -4
  26. package/dist/SymbolPicker.js +93 -89
  27. package/dist/WrapCard.js +1 -1
  28. package/dist/call-hierarchy.d.ts +1 -1
  29. package/dist/call-hierarchy.js +3 -3
  30. package/dist/code-actions.js +2 -2
  31. package/dist/code-vision.d.ts +1 -1
  32. package/dist/completion-model.d.ts +1 -1
  33. package/dist/completion-model.js +2 -2
  34. package/dist/completion.d.ts +1 -1
  35. package/dist/completion.js +12 -12
  36. package/dist/diagnostics.d.ts +1 -1
  37. package/dist/diagnostics.js +1 -1
  38. package/dist/diff-overlays.js +2 -2
  39. package/dist/editor-language.d.ts +12 -12
  40. package/dist/editor-language.js +10 -10
  41. package/dist/editor-react.css +4 -4
  42. package/dist/highlights.d.ts +1 -1
  43. package/dist/highlights.js +2 -2
  44. package/dist/host-types.d.ts +4 -4
  45. package/dist/hover.js +1 -1
  46. package/dist/inlay-hints.js +1 -1
  47. package/dist/live-templates.js +1 -1
  48. package/dist/markup.js +1 -1
  49. package/dist/navigation.d.ts +1 -1
  50. package/dist/navigation.js +3 -3
  51. package/dist/peek.js +1 -1
  52. package/dist/popups.d.ts +5 -5
  53. package/dist/project-language.d.ts +4 -4
  54. package/dist/project-language.js +5 -5
  55. package/dist/rename.js +1 -1
  56. package/dist/rendered-docs.d.ts +1 -1
  57. package/dist/rendered-docs.js +1 -1
  58. package/dist/shortcut-keys.d.ts +1 -1
  59. package/dist/signature.js +1 -1
  60. package/dist/snippet-field-transforms.d.ts +2 -2
  61. package/dist/snippet-insert.js +3 -3
  62. package/dist/snippet-session.d.ts +2 -2
  63. package/dist/snippet-session.js +5 -5
  64. package/dist/snippet-transform-queue.d.ts +1 -1
  65. package/dist/surround.js +1 -1
  66. package/dist/symbol-picker.js +2 -2
  67. package/dist/templates.js +1 -1
  68. package/dist/use-problem-counts.d.ts +1 -1
  69. package/package.json +6 -6
  70. package/src/AnchoredPopup.tsx +7 -3
  71. package/src/AttributionCard.tsx +1 -1
  72. package/src/BaselineStatus.tsx +1 -1
  73. package/src/CallHierarchyPanel.tsx +13 -12
  74. package/src/ChangeReview.tsx +1 -1
  75. package/src/CodeAuthorsCard.tsx +2 -2
  76. package/src/CompletionPopup.tsx +16 -13
  77. package/src/DiffView.tsx +12 -6
  78. package/src/EditorContextMenu.tsx +2 -2
  79. package/src/EditorView.tsx +14 -6
  80. package/src/FindReplace.tsx +3 -3
  81. package/src/HoverCard.tsx +7 -7
  82. package/src/HoverSections.tsx +1 -1
  83. package/src/LanguagePopups.tsx +3 -3
  84. package/src/Markdown.tsx +13 -2
  85. package/src/PeekPanel.tsx +13 -13
  86. package/src/PickPopup.tsx +6 -5
  87. package/src/RenameCard.tsx +8 -8
  88. package/src/RenderedDocs.tsx +3 -3
  89. package/src/SplitDiffView.tsx +14 -5
  90. package/src/SymbolPicker.tsx +6 -6
  91. package/src/WrapCard.tsx +2 -2
  92. package/src/call-hierarchy.ts +5 -5
  93. package/src/code-actions.ts +3 -3
  94. package/src/code-authors.ts +1 -1
  95. package/src/code-vision.ts +3 -3
  96. package/src/completion-model.ts +3 -3
  97. package/src/completion.ts +15 -15
  98. package/src/diagnostics.ts +4 -4
  99. package/src/diff-overlays.tsx +4 -4
  100. package/src/editor-language.ts +13 -13
  101. package/src/editor-react.css +4 -4
  102. package/src/format-on-type.ts +1 -1
  103. package/src/highlights.ts +3 -3
  104. package/src/host-types.ts +4 -4
  105. package/src/hover.ts +3 -3
  106. package/src/inlay-hints.ts +1 -1
  107. package/src/line-edits.ts +1 -1
  108. package/src/live-templates.ts +2 -2
  109. package/src/markup.ts +2 -2
  110. package/src/navigation.ts +5 -5
  111. package/src/patch-decorations.ts +1 -1
  112. package/src/peek.ts +3 -3
  113. package/src/pick.ts +1 -1
  114. package/src/popups.ts +5 -5
  115. package/src/postfix.ts +1 -1
  116. package/src/project-language.ts +7 -7
  117. package/src/proposal-model.ts +1 -1
  118. package/src/rename.ts +3 -3
  119. package/src/rendered-docs.ts +2 -2
  120. package/src/shortcut-keys.ts +1 -1
  121. package/src/signature.ts +3 -3
  122. package/src/snippet-field-transforms.ts +2 -2
  123. package/src/snippet-insert.ts +3 -3
  124. package/src/snippet-session.ts +7 -7
  125. package/src/snippet-transform-queue.ts +1 -1
  126. package/src/surround.ts +1 -1
  127. package/src/symbol-picker-model.ts +1 -1
  128. package/src/symbol-picker.ts +3 -3
  129. package/src/templates.ts +1 -1
  130. package/src/use-problem-counts.ts +1 -1
  131. package/src/workspace-edit.ts +1 -1
package/src/highlights.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { DocumentHighlight } from '@adecore/lsp';
2
- import { KEY_PRIORITY } from './key-priority.ts';
3
1
  import type { EditorHighlight, EditorHighlightKind, EditorPosition, EditorRange } from '@adecore/editor';
4
- import { comparePositions, rangeHolds } from './diagnostics-model.ts';
2
+ import type { DocumentHighlight } from '@adecore/lsp';
5
3
  import { isIdentifierCharacter } from './completion-model.ts';
4
+ import { comparePositions, rangeHolds } from './diagnostics-model.ts';
6
5
  import type { EditorLanguage } from './editor-language.ts';
6
+ import { KEY_PRIORITY } from './key-priority.ts';
7
7
  import { Refresher } from './refresher.ts';
8
8
  import { isShortcut } from './shortcut-keys.ts';
9
9
  import { realTimers, type Timers } from './timers.ts';
package/src/host-types.ts CHANGED
@@ -1,13 +1,13 @@
1
- import type { WorkerRequestPort } from '@adecore/editor/worker-client';
2
1
  import type { EditorPosition, EditorRange } from '@adecore/editor';
3
- import type { i18n } from 'i18next';
4
2
  import type { Keymap } from '@adecore/editor/keymap';
3
+ import type { WorkerRequestPort } from '@adecore/editor/worker-client';
4
+ import type { ServerMessage } from '@adecore/lsp';
5
+ import type { i18n } from 'i18next';
5
6
  import type { ClipboardHistory } from './clipboard-history.ts';
6
- import type { ProjectFiles } from './workspace-edit.ts';
7
7
  import type { Place } from './navigation-history.ts';
8
8
  import type { ProblemSource } from './project-problems.ts';
9
9
  import type { LiveTemplateDraft, TemplateRegistry } from './templates.ts';
10
- import type { ServerMessage } from '@adecore/lsp';
10
+ import type { ProjectFiles } from './workspace-edit.ts';
11
11
 
12
12
  export interface DiskText {
13
13
  text: string;
package/src/hover.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import type { EditorHover, EditorPosition, EditorRange } from '@adecore/editor';
2
- import { KEY_PRIORITY } from './key-priority.ts';
3
- import type { EditorLanguage } from './editor-language.ts';
4
2
  import { rangeHolds, type Problem } from './diagnostics-model.ts';
3
+ import type { EditorLanguage } from './editor-language.ts';
5
4
  import { hoverTextOf, isEmptyHover, locationsOf, type HoverText } from './hover-content.ts';
5
+ import { KEY_PRIORITY } from './key-priority.ts';
6
6
  import { lineTextOf } from './line-text.ts';
7
- import { wordRangeAt } from './rename-model.ts';
8
7
  import type { HoverInfo } from './popups.ts';
8
+ import { wordRangeAt } from './rename-model.ts';
9
9
  import { isShortcut } from './shortcut-keys.ts';
10
10
  import { realTimers, type Timers } from './timers.ts';
11
11
 
@@ -3,9 +3,9 @@ import type { Command, InlayHint, InlayHintLabelPart, Location, MarkupContent, T
3
3
  import { followModKey } from './definition-link.ts';
4
4
  import { comparePositions } from './diagnostics-model.ts';
5
5
  import type { EditorLanguage } from './editor-language.ts';
6
+ import { messageOf } from './error-message.ts';
6
7
  import { hoverTextOf, isEmptyHover, type HoverText } from './hover-content.ts';
7
8
  import { SHOW_DELAY_MS } from './hover.ts';
8
- import { messageOf } from './error-message.ts';
9
9
  import { lineTextOf } from './line-text.ts';
10
10
  import { Refresher } from './refresher.ts';
11
11
  import { realTimers, type Timers } from './timers.ts';
package/src/line-edits.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { shapeOf, splitLines } from '@adecore/merge';
2
1
  import type { EditorContentChange } from '@adecore/editor';
2
+ import { shapeOf, splitLines } from '@adecore/merge';
3
3
 
4
4
  /* A replacement of whole lines, zero-based with `to` exclusive, such as a block a review puts back. */
5
5
  export interface LineReplacement {
@@ -1,13 +1,13 @@
1
1
  import type { EditorPosition, EditorRange } from '@adecore/editor';
2
2
  import type { CompletionItem } from '@adecore/lsp';
3
- import type { LocalCompletionItem } from './completion.ts';
4
3
  import { identifierPrefix, isIdentifierCharacter } from './completion-model.ts';
4
+ import type { LocalCompletionItem } from './completion.ts';
5
5
  import { comparePositions } from './diagnostics-model.ts';
6
6
  import type { EditorLanguage } from './editor-language.ts';
7
7
  import { KEY_PRIORITY } from './key-priority.ts';
8
8
  import { textBeforeOf } from './line-text.ts';
9
- import { isShortcut } from './shortcut-keys.ts';
10
9
  import { PostfixFeature } from './postfix.ts';
10
+ import { isShortcut } from './shortcut-keys.ts';
11
11
  import { bodyWithIndentUnit, dedentLines, indentUnitOf, insertSnippet, type SnippetPlacement } from './snippet-insert.ts';
12
12
  import { escapeSnippetText } from './snippet.ts';
13
13
  import { SNIPPET_KIND, sortAfterServer, templateApplies, templateContextAt, type TemplateContext } from './template-context.ts';
package/src/markup.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import type { EditorApplyEditsOptions, EditorContentChange, EditorPosition, EditorRange, EditorTextChange, EditorTrackedRange } from '@adecore/editor';
2
- import { abbreviationBefore, expandAbbreviation } from './emmet.ts';
3
2
  import type { EditorLanguage } from './editor-language.ts';
3
+ import { abbreviationBefore, expandAbbreviation } from './emmet.ts';
4
4
  import { KEY_PRIORITY } from './key-priority.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
- import { parseSnippet } from './snippet.ts';
9
8
  import { indentSnippet } from './snippet-indent.ts';
10
9
  import { positionInInsertion } from './snippet-session.ts';
10
+ import { parseSnippet } from './snippet.ts';
11
11
 
12
12
  /* Each is on unless false. */
13
13
  export interface MarkupSettings {
package/src/navigation.ts CHANGED
@@ -1,12 +1,12 @@
1
+ import type { EditorPosition } from '@adecore/editor';
1
2
  import { StaleResultError, fileUriToPath, type LanguageService, type Location, type LocationLink, type NavigationResult, type Range } from '@adecore/lsp';
3
+ import { rangeHolds } from './diagnostics-model.ts';
4
+ import type { EditorLanguage } from './editor-language.ts';
5
+ import { messageOf } from './error-message.ts';
2
6
  import { KEY_PRIORITY } from './key-priority.ts';
3
- import type { EditorPosition } from '@adecore/editor';
4
7
  import { basenameOf } from './paths.ts';
5
- import type { EditorLanguage } from './editor-language.ts';
6
- import { rangeHolds } from './diagnostics-model.ts';
7
- import { placesOfName } from './symbol-links.ts';
8
8
  import { isShortcut } from './shortcut-keys.ts';
9
- import { messageOf } from './error-message.ts';
9
+ import { placesOfName } from './symbol-links.ts';
10
10
  import { placeKey, uniqueBy } from './unique.ts';
11
11
 
12
12
  export type NavigationKind = 'definition' | 'declaration' | 'typeDefinition' | 'implementation';
@@ -1,6 +1,6 @@
1
+ import type { Editor, EditorChangeMark, EditorLineHighlight } from '@adecore/editor';
1
2
  import { useEffect, useState } from 'react';
2
3
  import { useTranslation } from 'react-i18next';
3
- import type { Editor, EditorChangeMark, EditorLineHighlight } from '@adecore/editor';
4
4
  import { patchLayoutOf, type PatchLayout, type PatchLayoutLine, type PatchLimits } from './patch-layout.ts';
5
5
 
6
6
  /* The sentences a screen reader reads with a line of the patch, in the host's words. */
package/src/peek.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { StaleResultError, type Location, type Range } from '@adecore/lsp';
2
- import { KEY_PRIORITY } from './key-priority.ts';
3
1
  import type { EditorPosition } from '@adecore/editor';
2
+ import { StaleResultError, type Location, type Range } from '@adecore/lsp';
4
3
  import type { EditorLanguage } from './editor-language.ts';
4
+ import { messageOf } from './error-message.ts';
5
+ import { KEY_PRIORITY } from './key-priority.ts';
5
6
  import { uniquePlaces } from './navigation.ts';
6
7
  import { PEEK_READ_FILES, definitionSnippetOf, peekFilesOf, snippetOf, type PeekFile } from './peek-model.ts';
7
8
  import type { PeekView } from './popups.ts';
8
9
  import { isShortcut } from './shortcut-keys.ts';
9
- import { messageOf } from './error-message.ts';
10
10
  import { realTimers, revealRow, type Timers } from './timers.ts';
11
11
  import { placeKey, uniqueBy } from './unique.ts';
12
12
 
package/src/pick.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { EditorPosition } from '@adecore/editor';
2
- import { KEY_PRIORITY } from './key-priority.ts';
3
2
  import type { EditorLanguage } from './editor-language.ts';
3
+ import { KEY_PRIORITY } from './key-priority.ts';
4
4
  import type { PickGroup, PickPreview } from './popups.ts';
5
5
  import { realTimers, type Timers } from './timers.ts';
6
6
 
package/src/popups.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { createStore, type StoreApi } from 'zustand';
2
1
  import type { EditorPosition, EditorRange, EditorRect } from '@adecore/editor';
3
2
  import type { Location } from '@adecore/lsp';
4
- import type { CodeAuthorship } from './code-authors.ts';
5
- import type { Problem } from './diagnostics-model.ts';
6
- import type { PeekFile, PeekSnippet } from './peek-model.ts';
3
+ import { createStore, type StoreApi } from 'zustand';
7
4
  import type { CallDirection, CallRow } from './call-hierarchy-model.ts';
8
5
  import type { ActionEntry } from './code-actions-model.ts';
9
- import type { SymbolEntry } from './symbol-picker-model.ts';
6
+ import type { CodeAuthorship } from './code-authors.ts';
7
+ import type { Problem } from './diagnostics-model.ts';
10
8
  import type { HoverText } from './hover-content.ts';
9
+ import type { PeekFile, PeekSnippet } from './peek-model.ts';
11
10
  import type { SignatureViewModel } from './signature-model.ts';
11
+ import type { SymbolEntry } from './symbol-picker-model.ts';
12
12
  import type { ResourceOperationView } from './workspace-edit.ts';
13
13
 
14
14
  /* What a hover card shows for the character under the pointer. */
package/src/postfix.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { EditorPosition, EditorPostfixOperand, EditorRange } from '@adecore/editor';
2
2
  import type { CompletionItem } from '@adecore/lsp';
3
- import type { LocalCompletionItem } from './completion.ts';
4
3
  import { isIdentifierCharacter } from './completion-model.ts';
4
+ import type { LocalCompletionItem } from './completion.ts';
5
5
  import { comparePositions } from './diagnostics-model.ts';
6
6
  import type { EditorLanguage } from './editor-language.ts';
7
7
  import { lineTextOf, textBeforeOf } from './line-text.ts';
@@ -1,5 +1,4 @@
1
- import { disposeSnippetTransforms } from './snippet-transform-queue.ts';
2
- import i18next, { type i18n } from 'i18next';
1
+ import type { Editor, EditorPosition } from '@adecore/editor';
3
2
  import {
4
3
  fileUriToPath,
5
4
  pathToFileUri,
@@ -12,16 +11,17 @@ import {
12
11
  type ShowDocumentResult,
13
12
  type WorkspaceEdit
14
13
  } from '@adecore/lsp';
15
- import type { Editor, EditorPosition } from '@adecore/editor';
14
+ import i18next, { type i18n } from 'i18next';
16
15
  import { ClipboardHistory } from './clipboard-history.ts';
17
- import { TemplateRegistry } from './templates.ts';
18
16
  import { EditLocations } from './edit-locations.ts';
17
+ import type { LanguageHost } from './host-types.ts';
19
18
  import { NavigationHistory, type Place } from './navigation-history.ts';
19
+ import { PANEL_BODY_HEIGHT } from './panel-size.ts';
20
+ import { relativeTo } from './paths.ts';
20
21
  import { ProjectProblems, serviceProblems } from './project-problems.ts';
22
+ import { disposeSnippetTransforms } from './snippet-transform-queue.ts';
23
+ import { TemplateRegistry } from './templates.ts';
21
24
  import { applyWorkspaceEdit, type ProjectFiles } from './workspace-edit.ts';
22
- import type { LanguageHost } from './host-types.ts';
23
- import { relativeTo } from './paths.ts';
24
- import { PANEL_BODY_HEIGHT } from './panel-size.ts';
25
25
 
26
26
  export interface LanguageDocumentHandle {
27
27
  readonly uri: string;
@@ -1,5 +1,5 @@
1
- import { diffLines } from '@adecore/merge';
2
1
  import type { EditorPosition, EditorRange } from '@adecore/editor';
2
+ import { diffLines } from '@adecore/merge';
3
3
  import { replacedWords } from './word-diff.ts';
4
4
 
5
5
  /* The one-based lines a range covers; a selection that ends at the start of a line did not take that line. */
package/src/rename.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { StaleResultError, type Location, type PrepareRenameResult, type WorkspaceEdit } from '@adecore/lsp';
2
- import { KEY_PRIORITY } from './key-priority.ts';
3
1
  import type { EditorRange } from '@adecore/editor';
2
+ import { StaleResultError, type Location, type PrepareRenameResult, type WorkspaceEdit } from '@adecore/lsp';
4
3
  import type { EditorLanguage } from './editor-language.ts';
4
+ import { messageOf } from './error-message.ts';
5
+ import { KEY_PRIORITY } from './key-priority.ts';
5
6
  import { lineTextOf } from './line-text.ts';
6
7
  import type { RenameView } from './popups.ts';
7
8
  import { occurrencesOf, renameKindOf, renamePreviewOf, renameTargetOf, wordRangeAt, type RenameTarget } from './rename-model.ts';
8
9
  import { isShortcut } from './shortcut-keys.ts';
9
10
  import { resourceOperationsOf } from './workspace-edit.ts';
10
- import { messageOf } from './error-message.ts';
11
11
 
12
12
  const METHOD = 'textDocument/rename';
13
13
  const TOAST_ID = 'language-rename';
@@ -1,8 +1,8 @@
1
1
  import { findDocComments, type DocComment, type EditorPosition, type EditorRange, type EditorReplacement, type EditorTrackedRange } from '@adecore/editor';
2
2
  import { comparePositions } from './diagnostics-model.ts';
3
- import { KEY_PRIORITY } from './key-priority.ts';
4
- import type { EditorLanguage } from './editor-language.ts';
5
3
  import { parseDocComment, type ParsedDocComment } from './doc-comment-model.ts';
4
+ import type { EditorLanguage } from './editor-language.ts';
5
+ import { KEY_PRIORITY } from './key-priority.ts';
6
6
  import { lineTextOf } from './line-text.ts';
7
7
  import { isShortcut } from './shortcut-keys.ts';
8
8
  import { realTimers, type Timers } from './timers.ts';
@@ -1,5 +1,5 @@
1
- import { chordOf, KEYMAP_IDS, parseChord, type Keymap, typesInsteadOfChord } from '@adecore/editor/keymap';
2
1
  import type { KeyChord } from '@adecore/editor';
2
+ import { chordOf, KEYMAP_IDS, parseChord, type Keymap, typesInsteadOfChord } from '@adecore/editor/keymap';
3
3
  import { matchesShortcut } from '@adecore/ui';
4
4
 
5
5
  export interface LanguageShortcut extends KeyChord {
package/src/signature.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { SignatureHelp, SignatureHelpContext } from '@adecore/lsp';
2
- import { KEY_PRIORITY } from './key-priority.ts';
3
1
  import type { EditorPosition, EditorTextChange } from '@adecore/editor';
2
+ import type { SignatureHelp, SignatureHelpContext } from '@adecore/lsp';
4
3
  import type { EditorLanguage } from './editor-language.ts';
5
- import { signatureViewOf } from './signature-model.ts';
4
+ import { KEY_PRIORITY } from './key-priority.ts';
6
5
  import { isShortcut } from './shortcut-keys.ts';
6
+ import { signatureViewOf } from './signature-model.ts';
7
7
  import { realTimers, type Timers } from './timers.ts';
8
8
 
9
9
  const METHOD = 'textDocument/signatureHelp';
@@ -1,8 +1,8 @@
1
1
  import type { Editor, EditorContentChange, EditorRange } from '@adecore/editor';
2
2
  import { comparePositions, shiftPosition } from './diagnostics-model.ts';
3
- import type { SnippetTransform } from './snippet.ts';
4
- import type { SnippetTransformLease } from './snippet-transform-queue.ts';
5
3
  import type { SnippetTransformJob } from './snippet-transform-protocol.ts';
4
+ import type { SnippetTransformLease } from './snippet-transform-queue.ts';
5
+ import type { SnippetTransform } from './snippet.ts';
6
6
 
7
7
  export interface FieldTransformTarget {
8
8
  readonly id: symbol;
@@ -1,5 +1,5 @@
1
- import { SnippetTransformQueueError } from './snippet-transform-queue.ts';
2
1
  import type { Editor, EditorContentChange, EditorPosition, EditorRange } from '@adecore/editor';
2
+ import { fileUriToPath } from '@adecore/lsp';
3
3
  import { comparePositions, shiftPosition } from './diagnostics-model.ts';
4
4
  import type { EditorLanguage } from './editor-language.ts';
5
5
  import { lineTextOf, textBeforeOf } from './line-text.ts';
@@ -9,9 +9,9 @@ import { indentSnippet } from './snippet-indent.ts';
9
9
  import { positionInInsertion } from './snippet-session.ts';
10
10
  import { SnippetTransformError } from './snippet-transform-client.ts';
11
11
  import { MAX_TRANSFORM_JOBS, MAX_TRANSFORM_WORK } from './snippet-transform-protocol.ts';
12
- import { compileSnippet, tabOrder, type ParsedSnippet, type SnippetTemplate } from './snippet.ts';
12
+ import { SnippetTransformQueueError } from './snippet-transform-queue.ts';
13
13
  import { createSnippetResolver } from './snippet-variables.ts';
14
- import { fileUriToPath } from '@adecore/lsp';
14
+ import { compileSnippet, tabOrder, type ParsedSnippet, type SnippetTemplate } from './snippet.ts';
15
15
 
16
16
  /* The same limits as an inserted completion item. */
17
17
  const MAX_CHARACTERS = 2_000_000;
@@ -1,15 +1,15 @@
1
- import { compareSnippetOrder, snippetOrderOf } from './snippet-range-order.ts';
2
- import { SnippetFieldTransforms, type FieldTransformTarget } from './snippet-field-transforms.ts';
3
- import { SnippetTransformError } from './snippet-transform-client.ts';
4
- import { acquireSnippetTransforms, type SnippetTransformLease } from './snippet-transform-queue.ts';
5
- import { realTimers, type Timers } from './timers.ts';
6
- import { KEY_PRIORITY } from './key-priority.ts';
7
- import { MAX_TRANSFORM_CHARACTERS, type SnippetTransformJob } from './snippet-transform-protocol.ts';
8
1
  import type { EditorApplyEditsOptions, EditorContentChange, EditorPosition, EditorRange, EditorTextChange } from '@adecore/editor';
9
2
  import { comparePositions, endOfInsertion, rangeHolds, sameRange, shiftPosition } from './diagnostics-model.ts';
10
3
  import type { EditorLanguage } from './editor-language.ts';
4
+ import { KEY_PRIORITY } from './key-priority.ts';
11
5
  import { textBeforeOf } from './line-text.ts';
6
+ import { SnippetFieldTransforms, type FieldTransformTarget } from './snippet-field-transforms.ts';
7
+ import { compareSnippetOrder, snippetOrderOf } from './snippet-range-order.ts';
8
+ import { SnippetTransformError } from './snippet-transform-client.ts';
9
+ import { MAX_TRANSFORM_CHARACTERS, type SnippetTransformJob } from './snippet-transform-protocol.ts';
10
+ import { acquireSnippetTransforms, type SnippetTransformLease } from './snippet-transform-queue.ts';
12
11
  import type { SnippetField, SnippetStop, SnippetTransform } from './snippet.ts';
12
+ import { realTimers, type Timers } from './timers.ts';
13
13
 
14
14
  export function positionInInsertion(start: EditorPosition, text: string, offset: number): EditorPosition {
15
15
  return endOfInsertion(start, text.slice(0, offset));
@@ -1,8 +1,8 @@
1
1
  import type { WorkerRequestPort } from '@adecore/editor/worker-client';
2
+ import type { ProjectLanguage } from './project-language.ts';
2
3
  import { createSnippetTransformClient, SnippetTransformError, type SnippetTransformClient } from './snippet-transform-client.ts';
3
4
  import { validateSnippetTransformJobs } from './snippet-transform-format.ts';
4
5
  import { MAX_TRANSFORM_WORK, type SnippetTransformJob } from './snippet-transform-protocol.ts';
5
- import type { ProjectLanguage } from './project-language.ts';
6
6
  import { realTimers, type Timers } from './timers.ts';
7
7
 
8
8
  interface RequestOptions {
package/src/surround.ts CHANGED
@@ -6,8 +6,8 @@ import { lineTextOf, textBeforeOf } from './line-text.ts';
6
6
  import { enclosingElements, lineEndOf, lineStartOf, markupSyntaxOf, removeTagEdits, type TextReplacement } from './markup-context.ts';
7
7
  import type { PickGroup, PickPreview, PickRow } from './popups.ts';
8
8
  import { isShortcut } from './shortcut-keys.ts';
9
- import { bodyWithIndentUnit, dedentLines, insertSnippet, type SnippetPlacement } from './snippet-insert.ts';
10
9
  import { indentSnippet } from './snippet-indent.ts';
10
+ import { bodyWithIndentUnit, dedentLines, insertSnippet, type SnippetPlacement } from './snippet-insert.ts';
11
11
  import { compileSnippet, snippetVariables } from './snippet.ts';
12
12
  import { expressionConstructs, regionConstructs, statementConstructs } from './surround-constructs.ts';
13
13
  import { templateApplies, templateContextAt, type TemplateContext } from './template-context.ts';
@@ -1,5 +1,5 @@
1
- import type { DocumentSymbol, DocumentSymbolResult, SymbolInformation, WorkspaceSymbol, WorkspaceSymbolResult } from '@adecore/lsp';
2
1
  import type { EditorRange } from '@adecore/editor';
2
+ import type { DocumentSymbol, DocumentSymbolResult, SymbolInformation, WorkspaceSymbol, WorkspaceSymbolResult } from '@adecore/lsp';
3
3
 
4
4
  export type SymbolGroup = 'namespaces' | 'classes' | 'interfaces' | 'enums' | 'functions' | 'methods' | 'properties' | 'variables' | 'constants' | 'other';
5
5
 
@@ -1,10 +1,10 @@
1
1
  import { StaleResultError, type Location } from '@adecore/lsp';
2
+ import type { EditorLanguage } from './editor-language.ts';
3
+ import { messageOf } from './error-message.ts';
2
4
  import { KEY_PRIORITY } from './key-priority.ts';
3
5
  import { basenameOf } from './paths.ts';
4
- import type { EditorLanguage } from './editor-language.ts';
5
- import { entriesOf, workspaceEntriesOf, type SymbolEntry, type WorkspaceEntry } from './symbol-picker-model.ts';
6
6
  import { isShortcut } from './shortcut-keys.ts';
7
- import { messageOf } from './error-message.ts';
7
+ import { entriesOf, workspaceEntriesOf, type SymbolEntry, type WorkspaceEntry } from './symbol-picker-model.ts';
8
8
 
9
9
  const TOAST_ID = 'language-symbols';
10
10
 
package/src/templates.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BUILT_IN_LIVE_TEMPLATES, BUILT_IN_POSTFIX_TEMPLATES } from './template-builtins.ts';
2
1
  import { checkSnippet } from './snippet.ts';
2
+ import { BUILT_IN_LIVE_TEMPLATES, BUILT_IN_POSTFIX_TEMPLATES } from './template-builtins.ts';
3
3
 
4
4
  export { BUILT_IN_LIVE_TEMPLATES, BUILT_IN_POSTFIX_TEMPLATES };
5
5
  export { type TemplatesFeature } from './live-templates.ts';
@@ -1,6 +1,6 @@
1
1
  import { useMemo, useSyncExternalStore } from 'react';
2
- import type { EditorLanguage } from './editor-language.ts';
3
2
  import type { ProblemCounts } from './diagnostics.ts';
3
+ import type { EditorLanguage } from './editor-language.ts';
4
4
 
5
5
  const NONE: ProblemCounts = { error: 0, warning: 0, info: 0 };
6
6
 
@@ -12,8 +12,8 @@ import {
12
12
  type WorkspaceEdit,
13
13
  type WorkspaceEditStep
14
14
  } from '@adecore/lsp';
15
- import type { DiskText } from './host-types.ts';
16
15
  import { messageOf } from './error-message.ts';
16
+ import type { DiskText } from './host-types.ts';
17
17
 
18
18
  /* A file that changed without an editor of this project holding it: its new text waits as an unsaved draft. */
19
19
  export interface StagedFile {