Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vscode. VS Code extension for Vitest vitest.dev/vscode
testing vitest vscode
Something went wrong. Try again.
vscode debug-shims.d.ts
1.6 kB · 40 lines
TypeScript
1234567891011121314151617181920212223242526272829303132333435363738394041/* eslint-disable ts/method-signature-style */// https://github.com/microsoft/vscode-js-debug/blob/main/src/typings/vscode-js-debug.d.ts
declare module '@vscode/js-debug' { import type * as vscode from 'vscode'
/** @see {IExports.registerDebugTerminalOptionsProvider} */ export interface IDebugTerminalOptionsProvider { /** * Called when the user creates a JavaScript Debug Terminal. It's called * with the options js-debug wants to use to create the terminal. It should * modify and return the options to use in the terminal. * * In order to avoid conflicting with existing logic, participants should * try to modify options in a additive way. For example prefer appending * to rather than reading and overwriting `options.env.PATH`. */ provideTerminalOptions( options: vscode.TerminalOptions, ): vscode.ProviderResult<vscode.TerminalOptions> }
/** * Defines the exports of the `js-debug` extension. Once you have this typings * file, these can be acquired in your extension using the following code: * * ``` * const jsDebugExt = vscode.extensions.getExtension('ms-vscode.js-debug-nightly') * || vscode.extensions.getExtension('ms-vscode.js-debug'); * await jsDebugExt.activate() * const jsDebug: import('@vscode/js-debug').IExports = jsDebug.exports; * ``` */ export interface IExports { /** * Registers a participant used when the user creates a JavaScript Debug Terminal. */ registerDebugTerminalOptionsProvider(provider: IDebugTerminalOptionsProvider): vscode.Disposable }}