浏览代码

More alphabetization

Afshin T. Darian 4 年之前
父节点
当前提交
291bb5f7aa
共有 1 个文件被更改,包括 99 次插入99 次删除
  1. 99 99
      src/tokens.ts

+ 99 - 99
src/tokens.ts

@@ -164,11 +164,6 @@ export namespace IDebugger {
     path: string;
   };
 
-  /**
-   * The type for a stack frame
-   */
-  export interface IStackFrame extends DebugProtocol.StackFrame {}
-
   /**
    * Single breakpoint in an editor.
    */
@@ -176,31 +171,6 @@ export namespace IDebugger {
     active: boolean;
   }
 
-  /**
-   * An interface for a variable.
-   */
-  export interface IVariable extends DebugProtocol.Variable {
-    /**
-     * Whether the variable is expanded.
-     */
-    expanded?: boolean;
-  }
-
-  /**
-   * An interface for a scope.
-   */
-  export interface IScope {
-    /**
-     * The name of the scope.
-     */
-    name: string;
-
-    /**
-     * The list of variables.
-     */
-    variables: IVariable[];
-  }
-
   /**
    * Debugger file and hashing configuration.
    */
@@ -228,6 +198,21 @@ export namespace IDebugger {
     setTmpFileParams(params: IConfig.FileParams): void;
   }
 
+  /**
+   * An interface for a scope.
+   */
+  export interface IScope {
+    /**
+     * The name of the scope.
+     */
+    name: string;
+
+    /**
+     * The list of variables.
+     */
+    variables: IVariable[];
+  }
+
   /**
    * A visual debugger session.
    */
@@ -250,16 +235,6 @@ export namespace IDebugger {
       IDebugger.ISession.Event
     >;
 
-    /**
-     * Start a new debug session.
-     */
-    start(): Promise<void>;
-
-    /**
-     * Stop a running debug session.
-     */
-    stop(): Promise<void>;
-
     /**
      * Restore the state of a debug session.
      */
@@ -272,6 +247,16 @@ export namespace IDebugger {
       command: K,
       args: IDebugger.ISession.Request[K]
     ): Promise<IDebugger.ISession.Response[K]>;
+
+    /**
+     * Start a new debug session.
+     */
+    start(): Promise<void>;
+
+    /**
+     * Stop a running debug session.
+     */
+    stop(): Promise<void>;
   }
 
   /**
@@ -295,6 +280,21 @@ export namespace IDebugger {
     open(params: ISources.OpenParams): void;
   }
 
+  /**
+   * The type for a stack frame
+   */
+  export interface IStackFrame extends DebugProtocol.StackFrame {}
+
+  /**
+   * An interface for a variable.
+   */
+  export interface IVariable extends DebugProtocol.Variable {
+    /**
+     * Whether the variable is expanded.
+     */
+    expanded?: boolean;
+  }
+
   /**
    * Debugger file and hashing configuration.
    */
@@ -342,59 +342,9 @@ export namespace IDebugger {
 
   export namespace ISession {
     /**
-     * Response to the 'kernel_info_request' request.
-     * This interface extends the IInfoReply by adding the `debugger` key
-     * that isn't part of the protocol yet.
-     * See this pull request for more info: https://github.com/jupyter/jupyter_client/pull/486
-     */
-    export interface IInfoReply extends KernelMessage.IInfoReply {
-      debugger: boolean;
-    }
-
-    /**
-     * Arguments for 'dumpCell' request.
-     * This is an addition to the Debug Adapter Protocol to support
-     * setting breakpoints for cells.
-     */
-    export interface IDumpCellArguments {
-      code: string;
-    }
-
-    /**
-     * Response to 'dumpCell' request.
-     * This is an addition to the Debug Adapter Protocol to support
-     * setting breakpoints for cells.
-     */
-    export interface IDumpCellResponse extends DebugProtocol.Response {
-      body: {
-        sourcePath: string;
-      };
-    }
-
-    /**
-     * List of breakpoints in a source file.
-     */
-    export interface IDebugInfoBreakpoints {
-      source: string;
-      breakpoints: DebugProtocol.Breakpoint[];
-    }
-
-    /**
-     * Response to 'debugInfo' request.
-     * This is an addition to the Debug Adapter Protocol to be able
-     * to retrieve the debugger state when restoring a session.
+     * A generic debug event.
      */
-    export interface IDebugInfoResponse extends DebugProtocol.Response {
-      body: {
-        isStarted: boolean;
-        hashMethod: string;
-        hashSeed: number;
-        breakpoints: IDebugInfoBreakpoints[];
-        tmpFilePrefix: string;
-        tmpFileSuffix: string;
-        stoppedThreads: number[];
-      };
-    }
+    export type Event = DebugProtocol.Event;
 
     /**
      * Expose all the debug requests types.
@@ -481,9 +431,59 @@ export namespace IDebugger {
     };
 
     /**
-     * A generic debug event.
+     * List of breakpoints in a source file.
      */
-    export type Event = DebugProtocol.Event;
+    export interface IDebugInfoBreakpoints {
+      source: string;
+      breakpoints: DebugProtocol.Breakpoint[];
+    }
+
+    /**
+     * Response to 'debugInfo' request.
+     * This is an addition to the Debug Adapter Protocol to be able
+     * to retrieve the debugger state when restoring a session.
+     */
+    export interface IDebugInfoResponse extends DebugProtocol.Response {
+      body: {
+        isStarted: boolean;
+        hashMethod: string;
+        hashSeed: number;
+        breakpoints: IDebugInfoBreakpoints[];
+        tmpFilePrefix: string;
+        tmpFileSuffix: string;
+        stoppedThreads: number[];
+      };
+    }
+
+    /**
+     * Arguments for 'dumpCell' request.
+     * This is an addition to the Debug Adapter Protocol to support
+     * setting breakpoints for cells.
+     */
+    export interface IDumpCellArguments {
+      code: string;
+    }
+
+    /**
+     * Response to 'dumpCell' request.
+     * This is an addition to the Debug Adapter Protocol to support
+     * setting breakpoints for cells.
+     */
+    export interface IDumpCellResponse extends DebugProtocol.Response {
+      body: {
+        sourcePath: string;
+      };
+    }
+
+    /**
+     * Response to the 'kernel_info_request' request.
+     * This interface extends the IInfoReply by adding the `debugger` key
+     * that isn't part of the protocol yet.
+     * See this pull request for more info: https://github.com/jupyter/jupyter_client/pull/486
+     */
+    export interface IInfoReply extends KernelMessage.IInfoReply {
+      debugger: boolean;
+    }
   }
 
   /**
@@ -519,11 +519,6 @@ export namespace IDebugger {
      * Unified parameters for the open method
      */
     export type OpenParams = {
-      /**
-       * The label for the read-only editor.
-       */
-      label: string;
-
       /**
        * The caption for the read-only editor.
        */
@@ -533,6 +528,11 @@ export namespace IDebugger {
        * The code editor wrapper to add to the main area.
        */
       editorWrapper: CodeEditorWrapper;
+
+      /**
+       * The label for the read-only editor.
+       */
+      label: string;
     };
   }