-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run debugger in terminal shell when shellType is
terminal
Fixes #571
- Loading branch information
1 parent
91c485f
commit 5caefd6
Showing
5 changed files
with
104 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* 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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"extends": ["./tsconfig.base.json"], | ||
"include": ["src"] | ||
"include": ["src", "./debug-shims.d.ts"] | ||
} |