Skip to content

Commit

Permalink
Remove the deprecated singular selectionRange APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Jul 14, 2024
1 parent 1f0e051 commit 264d8b6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 78 deletions.
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ types.
- [`fromRange(range)`](#fromrangerange)
- [`fromRelatedInformation(relatedInformation)`](#fromrelatedinformationrelatedinformation)
- [`fromSelectionRange(selectionRange)`](#fromselectionrangeselectionrange)
- [`fromSelectionRanges(selectionRanges)`](#fromselectionrangesselectionranges)
- [`fromSemanticTokens(semanticTokens)`](#fromsemantictokenssemantictokens)
- [`fromSemanticTokensEdit(semanticTokensEdit)`](#fromsemantictokenseditsemantictokensedit)
- [`fromSemanticTokensEdits(semanticTokensEdits)`](#fromsemantictokenseditssemantictokensedits)
Expand Down Expand Up @@ -102,7 +101,6 @@ types.
- [`toRange(range)`](#torangerange)
- [`toRelatedInformation(relatedInformation)`](#torelatedinformationrelatedinformation)
- [`toSelectionRange(selectionRange)`](#toselectionrangeselectionrange)
- [`toSelectionRanges(selectionRange)`](#toselectionrangesselectionrange)
- [`toSemanticTokens(semanticTokens)`](#tosemantictokenssemantictokens)
- [`toSemanticTokensEdit(semanticTokensEdit)`](#tosemantictokenseditsemantictokensedit)
- [`toSemanticTokensEdits(semanticTokensDelta)`](#tosemantictokenseditssemantictokensdelta)
Expand Down Expand Up @@ -612,19 +610,6 @@ Convert a Monaco editor selection range to an LSP selection range.

The selection range as an LSP selection range (`lsp.SelectionRange`).

### `fromSelectionRanges(selectionRanges)`

Convert Monaco editor selection ranges to an LSP selection ranges.

#### Parameters

- `selectionRanges` (`Array<monaco.languages.SelectionRange>`) — the Monaco selections range to
convert

#### Returns

The selection ranges as LSP selection range (`lsp.SelectionRange | undefined`).

### `fromSemanticTokens(semanticTokens)`

Convert Monaco editor semantic tokens to LSP semantic tokens.
Expand Down Expand Up @@ -1260,18 +1245,6 @@ Convert an LSP selection range to a Monaco editor selection range.

The selection range as Monaco editor selection range (`monaco.languages.SelectionRange`).

### `toSelectionRanges(selectionRange)`

Convert an LSP selection range to Monaco editor selection ranges.

#### Parameters

- `selectionRange` (`lsp.SelectionRange | undefined`) — the LSP selection range to convert

#### Returns

The selection range as Monaco editor selection ranges (`Array<monaco.languages.SelectionRange>`).

### `toSemanticTokens(semanticTokens)`

Convert LSP semantic tokens to Monaco editor semantic tokens.
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export { fromParameterInformation, toParameterInformation } from './parameterInf
export { fromPosition, toPosition } from './position.js'
export { fromRange, toRange } from './range.js'
export { fromRelatedInformation, toRelatedInformation } from './relatedInformation.js'
export { fromSelectionRange, toSelectionRange } from './selectionRange.js'
export { fromSelectionRanges, toSelectionRanges } from './selectionRanges.js'
export { fromSemanticTokens, toSemanticTokens } from './semanticTokens.js'
export { fromSemanticTokensEdit, toSemanticTokensEdit } from './semanticTokensEdit.js'
Expand Down
40 changes: 0 additions & 40 deletions src/selectionRange.ts

This file was deleted.

10 changes: 0 additions & 10 deletions test/selectionRange.test.ts

This file was deleted.

0 comments on commit 264d8b6

Please sign in to comment.