Skip to content

Discussion - Possible Tools: code actions, diff, changes, supertypes, subtypes, incoming/outgoing calls #17

@biegehydra

Description

@biegehydra

I would like to hear others thoughts about implementing each of these features. Whether its worth it or not. I will provide my thoughts in a separate comment and please feel free to provide any reasoning for why we should/shouldn't add each of these.

vscode.provideSupertypes - Compute supertypes for an item

  • item - A type hierarchy item
  • (returns) - A promise that resolves to an array of TypeHierarchyItem-instances

vscode.provideSubtypes - Compute subtypes for an item

  • item - A type hierarchy item
  • (returns) - A promise that resolves to an array of TypeHierarchyItem-instances

vscode.provideIncomingCalls - Compute incoming calls for an item

  • item - A call hierarchy item
  • (returns) - A promise that resolves to an array of CallHierarchyIncomingCall-instances

vscode.provideOutgoingCalls - Compute outgoing calls for an item

  • item - A call hierarchy item
  • (returns) - A promise that resolves to an array of CallHierarchyOutgoingCall-instances

vscode.diff - Opens the provided resources in the diff editor to compare their contents.

  • left - Left-hand side resource of the diff editor
  • right - Right-hand side resource of the diff editor
  • title - Human readable title for the diff editor
  • options - (optional) Either the column in which to open, or editor options (see vscode.TextDocumentShowOptions)

vscode.changes - Opens a list of resources in the changes editor to compare their contents.

  • title - Human readable title for the changes editor
  • resourceList - List of resources to compare

vscode.executeCodeActionProvider - Execute code action provider.

  • uri - Uri of a text document
  • rangeOrSelection - Range in a text document. Some refactoring provider requires Selection object.
  • kind - (optional) Code action kind to return code actions for
  • itemResolveCount - (optional) Number of code actions to resolve (too large numbers slow down code actions)
  • (returns) - A promise that resolves to an array of Command-instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions