x4js - v2.2.49
    Preparing search index...

    Represents an object that can handle editor open operations (e.g. when "go to definition" is called with a resource other than the current model).

    interface ICodeEditorOpener {
        openCodeEditor(
            source: ICodeEditor,
            resource: Uri,
            selectionOrPosition?: IPosition | IRange,
        ): boolean | Promise<boolean>;
    }
    Index
    • Callback that is invoked when a resource other than the current model should be opened (e.g. when "go to definition" is called). The callback should return true if the request was handled and false otherwise.

      Parameters

      • source: ICodeEditor

        The code editor instance that initiated the request.

      • resource: Uri

        The Uri of the resource that should be opened.

      • OptionalselectionOrPosition: IPosition | IRange

        An optional position or selection inside the model corresponding to resource that can be used to set the cursor.

      Returns boolean | Promise<boolean>