Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
"Debug type of the active debug session. For example 'python'."
)
}
)
;
export
const
CONTEXT_DEBUG_CONFIGURATION_TYPE
=
new
RawContextKey<string>
(
'debugConfigurationType'
,
undefined
,
{
:
'string'
,
:
.
localize
(
'debugConfigurationType'
,
"Debug type of the selected launch configuration. For example 'python'."
)
}
)
;
export
const
CONTEXT_DEBUG_STATE
=
new
RawContextKey<string>
(
'debugState'
,
'inactive'
,
{
:
'string'
,
:
.
localize
(
'debugState'
,
"State that the focused debug session is in. One of the following: 'inactive', 'initializing', 'stopped' or 'running'."
)
}
)
;
export
const
CONTEXT_DEBUG_UX_KEY
=
'debugUx'
;
export
const
CONTEXT_DEBUG_UX
=
new
RawContextKey<string>
(
CONTEXT_DEBUG_UX_KEY
,
'default'
,
{
:
'string'
,
:
.
localize
(
'debugUX'
,
"Debug UX state. When there are no debug configurations it is 'simple', otherwise 'default'. Used to decide when to show welcome views in the debug viewlet."
)
}
)
;
export
const
CONTEXT_HAS_DEBUGGED
=
new
RawContextKey<boolean>
(
'hasDebugged'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'hasDebugged'
,
"True when a debug session has been started at least once, false otherwise."
)
}
)
;
export
const
CONTEXT_IN_DEBUG_MODE
=
new
RawContextKey<boolean>
(
'inDebugMode'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'inDebugMode'
,
"True when debugging, false otherwise."
)
}
)
;
export
const
CONTEXT_IN_DEBUG_REPL
=
new
RawContextKey<boolean>
(
'inDebugRepl'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'inDebugRepl'
,
"True when focus is in the debug console, false otherwise."
)
}
)
;
export
const
CONTEXT_BREAKPOINT_WIDGET_VISIBLE
=
new
RawContextKey<boolean>
(
'breakpointWidgetVisible'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakpointWidgetVisibile'
,
"True when breakpoint editor zone widget is visible, false otherwise."
)
}
)
;
export
const
CONTEXT_IN_BREAKPOINT_WIDGET
=
new
RawContextKey<boolean>
(
'inBreakpointWidget'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'inBreakpointWidget'
,
"True when focus is in the breakpoint editor zone widget, false otherwise."
)
}
)
;
export
const
CONTEXT_BREAKPOINTS_FOCUSED
=
new
RawContextKey<boolean>
(
'breakpointsFocused'
,
true
,
{
:
'boolean'
,
:
.
localize
(
'breakpointsFocused'
,
"True when the BREAKPOINTS view is focused, false otherwise."
)
}
)
;
export
const
CONTEXT_WATCH_EXPRESSIONS_FOCUSED
=
new
RawContextKey<boolean>
(
'watchExpressionsFocused'
,
true
,
{
:
'boolean'
,
:
.
localize
(
'watchExpressionsFocused'
,
"True when the WATCH view is focused, false otherwise."
)
}
)
;
export
const
CONTEXT_WATCH_EXPRESSIONS_EXIST
=
new
RawContextKey<boolean>
(
'watchExpressionsExist'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'watchExpressionsExist'
,
"True when at least one watch expression exists, false otherwise."
)
}
)
;
export
const
CONTEXT_VARIABLES_FOCUSED
=
new
RawContextKey<boolean>
(
'variablesFocused'
,
true
,
{
:
'boolean'
,
:
.
localize
(
'variablesFocused'
,
"True when the VARIABLES views is focused, false otherwise"
)
}
)
;
export
const
CONTEXT_EXPRESSION_SELECTED
=
new
RawContextKey<boolean>
(
'expressionSelected'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'expressionSelected'
,
"True when an expression input box is open in either the WATCH or the VARIABLES view, false otherwise."
)
}
)
;
export
const
CONTEXT_BREAKPOINT_INPUT_FOCUSED
=
new
RawContextKey<boolean>
(
'breakpointInputFocused'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakpointInputFocused'
,
"True when the input box has focus in the BREAKPOINTS view."
)
}
)
;
export
const
CONTEXT_CALLSTACK_ITEM_TYPE
=
new
RawContextKey<string>
(
'callStackItemType'
,
undefined
,
{
:
'string'
,
:
.
localize
(
'callStackItemType'
,
"Represents the item type of the focused element in the CALL STACK view. For example: 'session', 'thread', 'stackFrame'"
)
}
)
;
export
const
CONTEXT_CALLSTACK_SESSION_IS_ATTACH
=
new
RawContextKey<boolean>
(
'callStackSessionIsAttach'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'callStackSessionIsAttach'
,
"True when the session in the CALL STACK view is attach, false otherwise. Used internally for inline menus in the CALL STACK view."
)
}
)
;
export
const
CONTEXT_CALLSTACK_ITEM_STOPPED
=
new
RawContextKey<boolean>
(
'callStackItemStopped'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'callStackItemStopped'
,
"True when the focused item in the CALL STACK is stopped. Used internally for inline menus in the CALL STACK view."
)
}
)
;
export
const
CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD
=
new
RawContextKey<boolean>
(
'callStackSessionHasOneThread'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'callStackSessionHasOneThread'
,
"True when the focused session in the CALL STACK view has exactly one thread. Used internally for inline menus in the CALL STACK view."
)
}
)
;
export
const
CONTEXT_CALLSTACK_FOCUSED
=
new
RawContextKey<boolean>
(
'callStackFocused'
,
true
,
{
:
'boolean'
,
:
.
localize
(
'callStackFocused'
,
"True when the CALLSTACK view is focused, false otherwise."
)
}
)
;
export
const
CONTEXT_WATCH_ITEM_TYPE
=
new
RawContextKey<string>
(
'watchItemType'
,
undefined
,
{
:
'string'
,
:
.
localize
(
'watchItemType'
,
"Represents the item type of the focused element in the WATCH view. For example: 'expression', 'variable'"
)
}
)
;
export
const
CONTEXT_CAN_VIEW_MEMORY
=
new
RawContextKey<boolean>
(
'canViewMemory'
,
undefined
,
{
:
'boolean'
,
:
.
localize
(
'canViewMemory'
,
"Indicates whether the item in the view has an associated memory reference."
)
}
)
;
export
const
CONTEXT_BREAKPOINT_ITEM_TYPE
=
new
RawContextKey<string>
(
'breakpointItemType'
,
undefined
,
{
:
'string'
,
:
.
localize
(
'breakpointItemType'
,
"Represents the item type of the focused element in the BREAKPOINTS view. For example: 'breakpoint', 'exceptionBreakpoint', 'functionBreakpoint', 'dataBreakpoint'"
)
}
)
;
export
const
CONTEXT_BREAKPOINT_ITEM_IS_DATA_BYTES
=
new
RawContextKey<boolean>
(
'breakpointItemBytes'
,
undefined
,
{
:
'boolean'
,
:
.
localize
(
'breakpointItemIsDataBytes'
,
"Whether the breakpoint item is a data breakpoint on a byte range."
)
}
)
;
export
const
CONTEXT_BREAKPOINT_HAS_MODES
=
new
RawContextKey<boolean>
(
'breakpointHasModes'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakpointHasModes'
,
"Whether the breakpoint has multiple modes it can switch to."
)
}
)
;
export
const
CONTEXT_BREAKPOINT_SUPPORTS_CONDITION
=
new
RawContextKey<boolean>
(
'breakpointSupportsCondition'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakpointSupportsCondition'
,
"True when the focused breakpoint supports conditions."
)
}
)
;
export
const
CONTEXT_LOADED_SCRIPTS_SUPPORTED
=
new
RawContextKey<boolean>
(
'loadedScriptsSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'loadedScriptsSupported'
,
"True when the focused sessions supports the LOADED SCRIPTS view"
)
}
)
;
export
const
CONTEXT_LOADED_SCRIPTS_ITEM_TYPE
=
new
RawContextKey<string>
(
'loadedScriptsItemType'
,
undefined
,
{
:
'string'
,
:
.
localize
(
'loadedScriptsItemType'
,
"Represents the item type of the focused element in the LOADED SCRIPTS view."
)
}
)
;
export
const
CONTEXT_FOCUSED_SESSION_IS_ATTACH
=
new
RawContextKey<boolean>
(
'focusedSessionIsAttach'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'focusedSessionIsAttach'
,
"True when the focused session is 'attach'."
)
}
)
;
export
const
CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG
=
new
RawContextKey<boolean>
(
'focusedSessionIsNoDebug'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'focusedSessionIsNoDebug'
,
"True when the focused session is run without debugging."
)
}
)
;
export
const
CONTEXT_STEP_BACK_SUPPORTED
=
new
RawContextKey<boolean>
(
'stepBackSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'stepBackSupported'
,
"True when the focused session supports 'stepBack' requests."
)
}
)
;
export
const
CONTEXT_RESTART_FRAME_SUPPORTED
=
new
RawContextKey<boolean>
(
'restartFrameSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'restartFrameSupported'
,
"True when the focused session supports 'restartFrame' requests."
)
}
)
;
export
const
CONTEXT_STACK_FRAME_SUPPORTS_RESTART
=
new
RawContextKey<boolean>
(
'stackFrameSupportsRestart'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'stackFrameSupportsRestart'
,
"True when the focused stack frame supports 'restartFrame'."
)
}
)
;
export
const
CONTEXT_JUMP_TO_CURSOR_SUPPORTED
=
new
RawContextKey<boolean>
(
'jumpToCursorSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'jumpToCursorSupported'
,
"True when the focused session supports 'jumpToCursor' request."
)
}
)
;
export
const
CONTEXT_STEP_INTO_TARGETS_SUPPORTED
=
new
RawContextKey<boolean>
(
'stepIntoTargetsSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'stepIntoTargetsSupported'
,
"True when the focused session supports 'stepIntoTargets' request."
)
}
)
;
export
const
CONTEXT_BREAKPOINTS_EXIST
=
new
RawContextKey<boolean>
(
'breakpointsExist'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakpointsExist'
,
"True when at least one breakpoint exists."
)
}
)
;
export
const
CONTEXT_DEBUGGERS_AVAILABLE
=
new
RawContextKey<boolean>
(
'debuggersAvailable'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'debuggersAvailable'
,
"True when there is at least one debug extensions active."
)
}
)
;
export
const
CONTEXT_DEBUG_EXTENSION_AVAILABLE
=
new
RawContextKey<boolean>
(
'debugExtensionAvailable'
,
true
,
{
:
'boolean'
,
:
.
localize
(
'debugExtensionsAvailable'
,
"True when there is at least one debug extension installed and enabled."
)
}
)
;
export
const
CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT
=
new
RawContextKey<string>
(
'debugProtocolVariableMenuContext'
,
undefined
,
{
:
'string'
,
:
.
localize
(
'debugProtocolVariableMenuContext'
,
"Represents the context the debug adapter sets on the focused variable in the VARIABLES view."
)
}
)
;
export
const
CONTEXT_SET_VARIABLE_SUPPORTED
=
new
RawContextKey<boolean>
(
'debugSetVariableSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'debugSetVariableSupported'
,
"True when the focused session supports 'setVariable' request."
)
}
)
;
export
const
CONTEXT_SET_DATA_BREAKPOINT_BYTES_SUPPORTED
=
new
RawContextKey<boolean>
(
'debugSetDataBreakpointAddressSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'debugSetDataBreakpointAddressSupported'
,
"True when the focused session supports 'getBreakpointInfo' request on an address."
)
}
)
;
export
const
CONTEXT_SET_EXPRESSION_SUPPORTED
=
new
RawContextKey<boolean>
(
'debugSetExpressionSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'debugSetExpressionSupported'
,
"True when the focused session supports 'setExpression' request."
)
}
)
;
export
const
CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED
=
new
RawContextKey<boolean>
(
'breakWhenValueChangesSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakWhenValueChangesSupported'
,
"True when the focused session supports to break when value changes."
)
}
)
;
export
const
CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED
=
new
RawContextKey<boolean>
(
'breakWhenValueIsAccessedSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakWhenValueIsAccessedSupported'
,
"True when the focused breakpoint supports to break when value is accessed."
)
}
)
;
export
const
CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED
=
new
RawContextKey<boolean>
(
'breakWhenValueIsReadSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'breakWhenValueIsReadSupported'
,
"True when the focused breakpoint supports to break when value is read."
)
}
)
;
export
const
CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED
=
new
RawContextKey<boolean>
(
'terminateDebuggeeSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'terminateDebuggeeSupported'
,
"True when the focused session supports the terminate debuggee capability."
)
}
)
;
export
const
CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED
=
new
RawContextKey<boolean>
(
'suspendDebuggeeSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'suspendDebuggeeSupported'
,
"True when the focused session supports the suspend debuggee capability."
)
}
)
;
export
const
CONTEXT_TERMINATE_THREADS_SUPPORTED
=
new
RawContextKey<boolean>
(
'terminateThreadsSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'terminateThreadsSupported'
,
"True when the focused session supports the terminate threads capability."
)
}
)
;
export
const
CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT
=
new
RawContextKey<boolean>
(
'variableEvaluateNamePresent'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'variableEvaluateNamePresent'
,
"True when the focused variable has an 'evaluateName' field set."
)
}
)
;
export
const
CONTEXT_VARIABLE_IS_READONLY
=
new
RawContextKey<boolean>
(
'variableIsReadonly'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'variableIsReadonly'
,
"True when the focused variable is read-only."
)
}
)
;
export
const
CONTEXT_VARIABLE_VALUE
=
new
RawContextKey<boolean>
(
'variableValue'
,
false
,
{
:
'string'
,
:
.
localize
(
'variableValue'
,
"Value of the variable, present for debug visualization clauses."
)
}
)
;
export
const
CONTEXT_VARIABLE_TYPE
=
new
RawContextKey<boolean>
(
'variableType'
,
false
,
{
:
'string'
,
:
.
localize
(
'variableType'
,
"Type of the variable, present for debug visualization clauses."
)
}
)
;
export
const
CONTEXT_VARIABLE_INTERFACES
=
new
RawContextKey<boolean>
(
'variableInterfaces'
,
false
,
{
:
'array'
,
:
.
localize
(
'variableInterfaces'
,
"Any interfaces or contracts that the variable satisfies, present for debug visualization clauses."
)
}
)
;
export
const
CONTEXT_VARIABLE_NAME
=
new
RawContextKey<boolean>
(
'variableName'
,
false
,
{
:
'string'
,
:
.
localize
(
'variableName'
,
"Name of the variable, present for debug visualization clauses."
)
}
)
;
export
const
CONTEXT_VARIABLE_LANGUAGE
=
new
RawContextKey<boolean>
(
'variableLanguage'
,
false
,
{
:
'string'
,
:
.
localize
(
'variableLanguage'
,
"Language of the variable source, present for debug visualization clauses."
)
}
)
;
export
const
CONTEXT_VARIABLE_EXTENSIONID
=
new
RawContextKey<boolean>
(
'variableExtensionId'
,
false
,
{
:
'string'
,
:
.
localize
(
'variableExtensionId'
,
"Extension ID of the variable source, present for debug visualization clauses."
)
}
)
;
export
const
CONTEXT_EXCEPTION_WIDGET_VISIBLE
=
new
RawContextKey<boolean>
(
'exceptionWidgetVisible'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'exceptionWidgetVisible'
,
"True when the exception widget is visible."
)
}
)
;
export
const
CONTEXT_MULTI_SESSION_REPL
=
new
RawContextKey<boolean>
(
'multiSessionRepl'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'multiSessionRepl'
,
"True when there is more than 1 debug console."
)
}
)
;
export
const
CONTEXT_MULTI_SESSION_DEBUG
=
new
RawContextKey<boolean>
(
'multiSessionDebug'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'multiSessionDebug'
,
"True when there is more than 1 active debug session."
)
}
)
;
export
const
CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED
=
new
RawContextKey<boolean>
(
'disassembleRequestSupported'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'disassembleRequestSupported'
,
"True when the focused sessions supports disassemble request."
)
}
)
;
export
const
CONTEXT_DISASSEMBLY_VIEW_FOCUS
=
new
RawContextKey<boolean>
(
'disassemblyViewFocus'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'disassemblyViewFocus'
,
"True when the Disassembly View is focused."
)
}
)
;
export
const
CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST
=
new
RawContextKey<boolean>
(
'languageSupportsDisassembleRequest'
,
false
,
{
:
'boolean'
,
:
.
localize
(
'languageSupportsDisassembleRequest'
,
"True when the language in the current editor supports disassemble request."
"True when the focused stack frame has instruction pointer reference."
)
}
)
;
export
const
debuggerDisabledMessage
=
(
:
string
)
=>
.
localize
(
'debuggerDisabled'
,
"Configured debug type '{0}' is installed but not supported in this environment."
,
)
;
export
const
EDITOR_CONTRIBUTION_ID
=
'editor.contrib.debug'
;
export
const
BREAKPOINT_EDITOR_CONTRIBUTION_ID
=
'editor.contrib.breakpoint'
;
export
const
DEBUG_SCHEME
=
'debug'
;
export
const
INTERNAL_CONSOLE_OPTIONS_SCHEMA
=
{
enum
:
[
'neverOpen'
,
'openOnSessionStart'
,
'openOnFirstSessionStart'
]
,
default
:
'openOnFirstSessionStart'
,
:
.
localize
(
'internalConsoleOptions'
,
"Controls when the internal Debug Console should open."
)
}
;
export
interface
IDebugViewWithVariables
extends
IView
{
readonly
:
[
]
;
}
// raw
export
interface
IRawModelUpdate
{
:
string
;
:
.
[
]
;
?
:
;
}
export
interface
IRawStoppedDetails
{
?
:
string
;
?
:
string
;
?
:
number
;
?
:
string
;
?
:
number
;
?
:
boolean
;
?
:
boolean
;
?
:
string
;
?
:
number
[
]
;
}
// model
export
interface
ITreeElement
{
getId
(
)
:
string
;
}
export
interface
IReplElement
extends
ITreeElement
{
toString
(
?
:
boolean
)
:
string
;
readonly
?
:
;
}
export
interface
INestingReplElement
extends
IReplElement
{
readonly
:
boolean
;
getChildren
(
)
:
Promise
<
[
]
>
|
[
]
;
}
export
interface
IReplElementSource
{
readonly
:
;
readonly
:
number
;
readonly
:
number
;
}
export
interface
IExpressionValue
{
readonly
:
string
;
readonly
?
:
string
;
?
:
boolean
;
}
export
interface
IExpressionContainer
extends
ITreeElement
,
{
readonly
:
boolean
;
getSession
(
)
:
|
undefined
;
evaluateLazy
(
)
:
Promise
<
void
>
;
getChildren
(
)
:
Promise
<
[
]
>
;
readonly
?
:
number
;
readonly
?
:
string
;
readonly
?
:
.
|
undefined
;
readonly
?
:
number
;
}
export
interface
IExpression
extends
IExpressionContainer
{
:
string
;
}
export
interface
IDebugger
{
readonly
:
string
;
createDebugAdapter
(
:
)
:
Promise
<
>
;
runInTerminal
(
:
.
,
:
string
)
:
Promise
<
number
|
undefined
>
;
startDebugging
(
:
,
:
string
)
:
Promise
<
boolean
>
;
getCustomTelemetryEndpoint
(
)
:
|
undefined
;
getInitialConfigurationContent
(
?
:
[
]
)
:
Promise
<
string
>
;
}
export
interface
IDebuggerMetadata
{
:
string
;
:
string
;
?
:
{
[
in
]
:
string
}
;
interestedInLanguage
(
:
string
)
:
boolean
;
}
export
const
enum
{
,
,
,
}
export
function
getStateLabel
(
:
)
:
string
{
switch
(
)
{
case
.
:
return
'initializing'
;
case
.
:
return
'stopped'
;
case
.
:
return
'running'
;
default
:
return
'inactive'
;
}
}
export
interface
AdapterEndEvent
{
?
:
;
:
number
;
:
boolean
;
}
export
interface
LoadedSourceEvent
{
:
'new'
|
'changed'
|
'removed'
;
:
;
}
export
type
IDebugSessionReplMode
=
'separate'
|
'mergeWithParent'
;
export
interface
IDebugTestRunReference
{
:
string
;
:
string
;
}
export
interface
IDebugSessionOptions
{
?
:
boolean
;
?
:
;
?
:
boolean
;
?
:
;
?
:
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
/**
* Set if the debug session is correlated with a test run. Stopping/restarting
* the session will instead stop/restart the test run.
*/
?
:
;
}
export
interface
IDataBreakpointInfoResponse
{
:
string
|
null
;
:
string
;
?
:
boolean
;
?
:
.
[
]
;
}
export
interface
IMemoryInvalidationEvent
{
:
number
;
:
number
;
}
export
const
enum
{
,
,
,
}
export
interface
IMemoryRange
{
:
;
:
number
;
:
number
;
}
export
interface
IValidMemoryRange
extends
IMemoryRange
{
:
.
;
:
number
;
:
number
;
:
;
}
export
interface
IUnreadableMemoryRange
extends
IMemoryRange
{
:
.
;
}
export
interface
IErrorMemoryRange
extends
IMemoryRange
{
:
.
;
:
string
;
}
/**
* Union type of memory that can be returned from read(). Since a read request
* could encompass multiple previously-read ranges, multiple of these types
* are possible to return.
*/
export
type
MemoryRange
=
|
|
;
export
const
DEBUG_MEMORY_SCHEME
=
'vscode-debug-memory'
;
/**
* An IMemoryRegion corresponds to a contiguous range of memory referred to
* by a DAP `memoryReference`.
*/
export
interface
IMemoryRegion
extends
IDisposable
{
/**
* Event that fires when memory changes. Can be a result of memory events or
* `write` requests.
*/
readonly
:
<
>
;
/**
* Whether writes are supported on this memory region.
*/
readonly
:
boolean
;
/**
* Requests memory ranges from the debug adapter. It returns a list of memory
* ranges that overlap (but may exceed!) the given offset. Use the `offset`
* and `length` of each range for display.
*/
read
(
:
number
,
:
number
)
:
Promise
<
[
]
>
;
/**
* Writes memory to the debug adapter at the given offset.
*/
write
(
:
number
,
:
)
:
Promise
<
number
>
;
}
/** Data that can be inserted in {@link IDebugSession.appendToRepl} */
export
interface
INewReplElementData
{
/**
* Output string to display
*/
:
string
;
/**
* Expression data to display. Will result in the item being expandable in
* the REPL. Its value will be used if {@link output} is not provided.
*/
?
:
;
/**
* Output severity.
*/
:
;
/**
* Originating location.
*/
?
:
;
}
export
interface
IDebugEvaluatePosition
{
:
number
;
:
number
;
:
.
;
}
export
interface
IDebugLocationReferenced
{
:
number
;
:
number
;
?
:
number
;
?
:
number
;
:
;
}
export
interface
IDebugSession
extends
ITreeElement
,
{
readonly
:
;
readonly
:
|
undefined
;
readonly
:
;
readonly
:
|
undefined
;
readonly
:
|
undefined
;
readonly
:
string
|
undefined
;
readonly
:
boolean
;
readonly
:
|
undefined
;
readonly
:
boolean
;
readonly
:
string
;
readonly
:
boolean
;
readonly
:
boolean
;
readonly
:
boolean
;
readonly
:
boolean
;
readonly
:
boolean
;
/** Test run this debug session was spawned by */
readonly
?
:
;
setSubId
(
:
string
|
undefined
)
:
void
;
getMemory
(
:
string
)
:
;
setName
(
:
string
)
:
void
;
readonly
:
<
string
>
;
getLabel
(
)
:
string
;
getSourceForUri
(
:
)
:
|
undefined
;
getSource
(
?
:
.
)
:
;
setConfiguration
(
:
{
:
;
:
|
undefined
}
)
:
void
;
rawUpdate
(
:
)
:
void
;
getThread
(
:
number
)
:
|
undefined
;
getAllThreads
(
)
:
[
]
;
clearThreads
(
:
boolean
,
?
:
number
)
:
void
;
getStoppedDetails
(
)
:
|
undefined
;
getReplElements
(
)
:
[
]
;
hasSeparateRepl
(
)
:
boolean
;
removeReplExpressions
(
)
:
void
;
addReplExpression
(
:
|
undefined
,
:
string
)
:
Promise
<
void
>
;
appendToRepl
(
:
)
:
void
;
/** Cancel any associated test run set through the DebugSessionOptions */
cancelCorrelatedTestRun
(
)
:
void
;
// session events
readonly
:
<
|
undefined
>
;
readonly
:
<
void
>
;
readonly
:
<
|
undefined
>
;
/** DA capabilities. Set only when there is a running session available. */
readonly
:
.
;
/** DA capabilities. These are retained on the session even after is implementation ends. */
readonly
?
:
.
;
// DAP events
readonly
:
<
>
;
readonly
:
<
.
>
;
readonly
:
<
.
>
;
readonly
:
<
.
>
;
readonly
:
<
.
>
;
readonly
:
<
.
>
;
// DAP request
initialize
(
:
)
:
Promise
<
void
>
;
launchOrAttach
(
:
)
:
Promise
<
void
>
;
restart
(
)
:
Promise
<
void
>
;
terminate
(
?
:
boolean
/* false */
)
:
Promise
<
void
>
;
disconnect
(
?
:
boolean
/* false */
,
?
:
boolean
)
:
Promise
<
void
>
;
sendBreakpoints
(
:
,
:
[
]
,
:
boolean
)
:
Promise
<
void
>
;
sendFunctionBreakpoints
(
:
[
]
)
:
Promise
<
void
>
;
dataBreakpointInfo
(
:
string
,
?
:
number
,
?
:
number
)
:
Promise
<
|
undefined
>
;
dataBytesBreakpointInfo
(
:
string
,
:
number
)
:
Promise
<
|
undefined
>
;
sendDataBreakpoints
(
:
[
]
)
:
Promise
<
void
>
;
sendInstructionBreakpoints
(
:
[
]
)
:
Promise
<
void
>
;
sendExceptionBreakpoints
(
:
[
]
)
:
Promise
<
void
>
;
breakpointsLocations
(
:
,
:
number
)
:
Promise
<
[
]
>
;
getDebugProtocolBreakpoint
(
:
string
)
:
.
|
undefined
;
resolveLocationReference
(
:
number
)
:
Promise
<
>
;
stackTrace
(
:
number
,
:
number
,
:
number
,
:
)
:
Promise
<
.
|
undefined
>
;
exceptionInfo
(
:
number
)
:
Promise
<
|
undefined
>
;
scopes
(
:
number
,
:
number
)
:
Promise
<
.
|
undefined
>
;
variables
(
:
number
,
:
number
|
undefined
,
:
'indexed'
|
'named'
|
undefined
,
:
number
|
undefined
,
:
number
|
undefined
)
:
Promise
<
.
|
undefined
>
;
evaluate
(
:
string
,
?
:
number
,
?
:
string
,
?
:
)
:
Promise
<
.
|
undefined
>
;
customRequest
(
:
string
,
:
unknown
)
:
Promise
<
.
|
undefined
>
;
cancel
(
:
string
)
:
Promise
<
.
|
undefined
>
;
disassemble
(
:
string
,
:
number
,
:
number
,
:
number
)
:
Promise
<
.
[
]
|
undefined
>
;
readMemory
(
:
string
,
:
number
,
:
number
)
:
Promise
<
.
|
undefined
>
;
writeMemory
(
:
string
,
:
number
,
:
string
,
?
:
boolean
)
:
Promise
<
.
|
undefined
>
;
restartFrame
(
:
number
,
:
number
)
:
Promise
<
void
>
;
next
(
:
number
,
?
:
.
)
:
Promise
<
void
>
;
stepIn
(
:
number
,
?
:
number
,
?
:
.
)
:
Promise
<
void
>
;
stepInTargets
(
:
number
)
:
Promise
<
.
[
]
|
undefined
>
;
stepOut
(
:
number
,
?
:
.
)
:
Promise
<
void
>
;
stepBack
(
:
number
,
?
:
.
)
:
Promise
<
void
>
;
continue
(
:
number
)
:
Promise
<
void
>
;
reverseContinue
(
:
number
)
:
Promise
<
void
>
;
pause
(
:
number
)
:
Promise
<
void
>
;
terminateThreads
(
:
number
[
]
)
:
Promise
<
void
>
;
completions
(
:
number
|
undefined
,
:
number
,
:
string
,
:
,
:
)
:
Promise
<
.
|
undefined
>
;
setVariable
(
:
number
|
undefined
,
:
string
,
:
string
)
:
Promise
<
.
|
undefined
>
;
setExpression
(
:
number
,
:
string
,
:
string
)
:
Promise
<
.
|
undefined
>
;
loadSource
(
:
)
:
Promise
<
.
|
undefined
>
;
getLoadedSources
(
)
:
Promise
<
[
]
>
;
gotoTargets
(
:
.
,
:
number
,
?
:
number
)
:
Promise
<
.
|
undefined
>
;
goto
(
:
number
,
:
number
)
:
Promise
<
.
|
undefined
>
;
}
export
interface
IThread
extends
ITreeElement
{
/**
* Process the thread belongs to
*/
readonly
:
;
/**
* Id of the thread generated by the debug adapter backend.
*/
readonly
:
number
;
/**
* Name of the thread.
*/
readonly
:
string
;
/**
* Information about the current thread stop event. Undefined if thread is not stopped.
*/
readonly
:
|
undefined
;
/**
* Information about the exception if an 'exception' stopped event raised and DA supports the 'exceptionInfo' request, otherwise undefined.
*/
readonly
:
Promise
<
|
undefined
>
;
readonly
:
string
;
/**
* Gets the callstack if it has already been received from the debug
* adapter.
*/
getCallStack
(
)
:
<
>
;
/**
* Gets the top stack frame that is not hidden if the callstack has already been received from the debug adapter
*/
getTopStackFrame
(
)
:
|
undefined
;
/**
* Invalidates the callstack cache
*/
clearCallStack
(
)
:
void
;
/**
* Indicates whether this thread is stopped. The callstack for stopped
* threads can be retrieved from the debug adapter.
*/
readonly
:
boolean
;
next
(
?
:
.
)
:
Promise
<
void
>
;
stepIn
(
?
:
.
)
:
Promise
<
void
>
;
stepOut
(
?
:
.
)
:
Promise
<
void
>
;
stepBack
(
?
:
.
)
:
Promise
<
void
>
;
continue
(
)
:
Promise
<
void
>
;
pause
(
)
:
Promise
<
void
>
;
terminate
(
)
:
Promise
<
void
>
;
reverseContinue
(
)
:
Promise
<
void
>
;
}
export
interface
IScope
extends
IExpressionContainer
{
readonly
:
string
;
readonly
:
boolean
;
readonly
?
:
;
readonly
:
boolean
;
readonly
:
boolean
;
}
export
interface
IStackFrame
extends
ITreeElement
{
readonly
:
;
readonly
:
string
;
readonly
:
string
|
undefined
;
readonly
:
number
;
readonly
:
;
readonly
:
;
readonly
:
boolean
;
readonly
?
:
string
;
getScopes
(
)
:
Promise
<
[
]
>
;
getMostSpecificScopes
(
:
)
:
Promise
<
<
>>
;
forgetScopes
(
)
:
void
;
restart
(
)
:
Promise
<
void
>
;
toString
(
)
:
string
;
openInEditor
(
:
,
?
:
boolean
,
?
:
boolean
,
?
:
boolean
)
:
Promise
<
|
undefined
>
;
equals
(
:
)
:
boolean
;
}
export
function
isFrameDeemphasized
(
:
)
:
boolean
{
const
=
.
??
.
.
;
return
===
'deemphasize'
||
===
'subtle'
;
}
export
interface
IEnablement
extends
ITreeElement
{
readonly
:
boolean
;
}
export
interface
IBreakpointData
{
readonly
?
:
string
;
readonly
:
number
;
readonly
?
:
number
;
readonly
?
:
boolean
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
}
export
interface
IBreakpointUpdateData
{
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
}
export
interface
IBaseBreakpoint
extends
IEnablement
{
readonly
?
:
string
;
readonly
?
:
string
;
readonly
?
:
string
;
readonly
:
boolean
;
readonly
:
boolean
;
readonly
?
:
string
;
/** The preferred mode of the breakpoint from {@link DebugProtocol.BreakpointMode} */
readonly
?
:
string
;
/** The preferred mode label of the breakpoint from {@link DebugProtocol.BreakpointMode} */
readonly
?
:
string
;
readonly
:
string
[
]
;
getIdFromAdapter
(
:
string
)
:
number
|
undefined
;
}
export
interface
IBreakpoint
extends
IBaseBreakpoint
{
/** URI where the breakpoint was first set by the user. */
readonly
:
;
/** URI where the breakpoint is currently shown; may be moved by debugger */
readonly
:
;
readonly
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
?
:
number
;
readonly
:
unknown
;
readonly
:
{
:
number
;
:
number
|
undefined
}
;
/** An ID of the breakpoint that triggers this breakpoint. */
readonly
?
:
string
;
/** Pending on the trigger breakpoint, which means this breakpoint is not yet sent to DA */
readonly
:
boolean
;
/** Marks that a session did trigger the breakpoint. */
setSessionDidTrigger
(
:
string
,
?
:
boolean
)
:
void
;
/** Gets whether the `triggeredBy` condition has been met in the given sesison ID. */
getSessionDidTrigger
(
:
string
)
:
boolean
;
toDAP
(
)
:
.
;
}
export
interface
IFunctionBreakpoint
extends
IBaseBreakpoint
{
readonly
:
string
;
toDAP
(
)
:
.
;
}
export
interface
IExceptionBreakpoint
extends
IBaseBreakpoint
{
readonly
:
string
;
readonly
:
string
;
readonly
:
string
|
undefined
;
}
export
const
enum
{
,
,
}
/**
* Source for a data breakpoint. A data breakpoint on a variable always has a
* `dataId` because it cannot reference that variable globally, but addresses
* can request info repeated and use session-specific data.
*/
export
type
DataBreakpointSource
=
|
{
:
.
;
:
string
}
|
{
:
.
;
:
string
;
:
number
}
;
export
interface
IDataBreakpoint
extends
IBaseBreakpoint
{
readonly
:
string
;
readonly
:
boolean
;
readonly
:
;
readonly
:
.
;
toDAP
(
:
)
:
Promise
<
.
|
undefined
>
;
}
export
interface
IInstructionBreakpoint
extends
IBaseBreakpoint
{
readonly
:
string
;
readonly
?
:
number
;
/** Original instruction memory address; display purposes only */
readonly
:
;
toDAP
(
)
:
.
;
}
export
interface
IExceptionInfo
{
readonly
?
:
string
;
readonly
?
:
string
;
readonly
:
string
|
null
;
readonly
?
:
.
;
}
// model interfaces
export
interface
IViewModel
extends
ITreeElement
{
/**
* Returns the focused debug session or undefined if no session is stopped.
*/
readonly
:
|
undefined
;
/**
* Returns the focused thread or undefined if no thread is stopped.
*/
readonly
:
|
undefined
;
/**
* Returns the focused stack frame or undefined if there are no stack frames.
*/
readonly
:
|
undefined
;
setVisualizedExpression
(
:
,
:
&
{
:
string
}
|
undefined
)
:
void
;
/** Returns the visualized expression if loaded, or a tree it should be visualized with, or undefined */
getVisualizedExpression
(
:
)
:
|
string
|
undefined
;
getSelectedExpression
(
)
:
{
:
;
:
boolean
}
|
undefined
;
setSelectedExpression
(
:
|
undefined
,
:
boolean
)
:
void
;
updateViews
(
)
:
void
;
isMultiSessionView
(
)
:
boolean
;
readonly
:
<
|
undefined
>
;
readonly
:
<
{
:
|
undefined
;
:
boolean
;
:
|
undefined
}
>
;
readonly
:
<
{
:
|
undefined
;
:
boolean
;
:
|
undefined
}
>
;
readonly
:
<
{
:
;
:
boolean
}
|
undefined
>
;
readonly
:
<
>
;
/**
* Fired when `setVisualizedExpression`, to migrate elements currently
* rendered as `original` to the `replacement`.
*/
readonly
:
<
{
:
;
:
}
>
;
readonly
:
<
void
>
;
evaluateLazyExpression
(
:
)
:
void
;
}
export
interface
IEvaluate
{
evaluate
(
:
,
:
,
:
string
)
:
Promise
<
void
>
;
}
export
interface
IDebugModel
extends
ITreeElement
{
getSession
(
:
string
|
undefined
,
?
:
boolean
)
:
|
undefined
;
getSessions
(
?
:
boolean
)
:
[
]
;
getBreakpoints
(
?
:
{
?
:
;
?
:
;
?
:
number
;
?
:
number
;
?
:
boolean
;
?
:
boolean
}
)
:
<
>
;
areBreakpointsActivated
(
)
:
boolean
;
getFunctionBreakpoints
(
)
:
<
>
;
getDataBreakpoints
(
)
:
<
>
;
/**
* Returns list of all exception breakpoints.
*/
getExceptionBreakpoints
(
)
:
<
>
;
/**
* Returns list of exception breakpoints for the given session
* @paramsessionId Session id. If falsy, returns the breakpoints from the last set fallback session.
*/
getExceptionBreakpointsForSession
(
?
:
string
)
:
<
>
;
getInstructionBreakpoints
(
)
:
<
>
;
getWatchExpressions
(
)
:
<
&
>
;
registerBreakpointModes
(
:
string
,
:
.
[
]
)
:
void
;
getBreakpointModes
(
:
'source'
|
'exception'
|
'data'
|
'instruction'
)
:
.
[
]
;
readonly
:
<
|
undefined
>
;
readonly
:
<
void
>
;
/**
* The expression has been added, removed, or repositioned.
*/
readonly
:
<
|
undefined
>
;
/**
* The expression's value has changed.
*/
readonly
:
<
|
undefined
>
;
fetchCallstack
(
:
,
?
:
number
)
:
Promise
<
void
>
;
}
/**
* An event describing a change to the set of [breakpoints](#debug.Breakpoint).
*/
export
interface
IBreakpointsChangeEvent
{
?
:
Array
<
|
|
|
>
;
?
:
Array
<
|
|
|
>
;
?
:
Array
<
|
|
|
>
;
:
boolean
;
}
// Debug configuration interfaces
export
interface
IDebugConfiguration
{
:
boolean
;
:
'logpoint'
|
'conditionalBreakpoint'
|
'triggeredBreakpoint'
|
'none'
;
:
'neverOpen'
|
'openOnSessionStart'
|
'openOnFirstSessionStart'
|
'openOnDebugBreak'
;
:
boolean
;
:
boolean
|
'auto'
|
'on'
|
'off'
;
// boolean for back-compat
:
'floating'
|
'docked'
|
'commandCenter'
|
'hidden'
;
:
'never'
|
'always'
|
'onFirstSessionStart'
;
:
'neverOpen'
|
'openOnSessionStart'
|
'openOnFirstSessionStart'
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
console
:
{
:
number
;
:
string
;
:
number
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
'off'
|
'on'
;
:
number
;
}
;
:
boolean
;
:
boolean
;
:
'debugAnyway'
|
'showErrors'
|
'prompt'
|
'abort'
;
:
boolean
;
:
boolean
;
:
'always'
|
'never'
;
:
{
:
boolean
;
}
;
:
'auto'
|
'off'
|
'on'
;
:
boolean
;
:
boolean
;
:
boolean
;
}
export
interface
IGlobalConfig
{
:
string
;
:
[
]
;
:
[
]
;
}
export
interface
IConfigPresentation
{
?
:
boolean
;
?
:
string
;
?
:
number
;
}
interface
IEnvConfig
{
?
:
'neverOpen'
|
'openOnSessionStart'
|
'openOnFirstSessionStart'
;
?
:
string
|
;
?
:
string
|
;
?
:
string
|
;
?
:
string
|
;
?
:
number
;
?
:
boolean
;
?
:
boolean
;
?
:
;
}
export
interface
IConfig
extends
IEnvConfig
{
// fundamental attributes
:
string
;
:
string
;
:
string
;
?
:
;
// platform specifics
?
:
;
?
:
;
?
:
;
// internals
?
:
;
?
:
string
;
?
:
unknown
;
?
:
boolean
;
?
:
number
;
// TODO
}
export
interface
ICompound
{
:
string
;
?
:
boolean
;
?
:
string
|
;
:
(
string
|
{
:
string
;
:
string
}
)
[
]
;
?
:
;
}
export
function
isDebugConfig
(
:
|
)
:
is
{
return
'type'
in
&&
'request'
in
;
}
export
interface
IDebugAdapter
extends
IDisposable
{
readonly
:
<
>
;
readonly
:
<
number
|
null
>
;
onRequest
(
callback
:
(
:
.
)
=>
void
)
:
void
;
onEvent
(
callback
:
(
:
.
)
=>
void
)
:
void
;
startSession
(
)
:
Promise
<
void
>
;
sendMessage
(
:
.
)
:
void
;
sendResponse
(
:
.
)
:
void
;
sendRequest
(
:
string
,
:
unknown
,
clb
:
(
:
.
)
=>
void
,
?
:
number
)
:
number
;
stopSession
(
)
:
Promise
<
void
>
;
}
export
interface
IDebugAdapterFactory
extends
ITerminalLauncher
{
createDebugAdapter
(
:
)
:
;
substituteVariables
(
:
|
undefined
,
:
)
:
Promise
<
>
;
}
export
interface
IDebugAdapterExecutableOptions
{
?
:
string
;
?
:
{
[
:
string
]
:
string
}
;
}
export
interface
IDebugAdapterExecutable
{
readonly
:
'executable'
;
readonly
:
string
;
readonly
:
string
[
]
;
readonly
?
:
;
}
export
interface
IDebugAdapterServer
{
readonly
:
'server'
;
readonly
:
number
;
readonly
?
:
string
;
}
export
interface
IDebugAdapterNamedPipeServer
{
readonly
:
'pipeServer'
;
readonly
:
string
;
}
export
interface
IDebugAdapterInlineImpl
extends
IDisposable
{
readonly
:
<
.
>
;
handleMessage
(
:
.
)
:
void
;
}
export
interface
IDebugAdapterImpl
{
readonly
:
'implementation'
;
}
export
type
IAdapterDescriptor
=
|
|
|
;
export
interface
IPlatformSpecificAdapterContribution
{
?
:
string
;
?
:
string
[
]
;
?
:
string
;
?
:
string
[
]
;
}
export
interface
IDebuggerContribution
extends
IPlatformSpecificAdapterContribution
{
:
string
;
?
:
string
;
?
:
;
?
:
;
?
:
;
?
:
;
?
:
;
// internal
?
:
string
;
// supported languages
?
:
string
[
]
;
// debug configuration support
?
:
<
string
,
>
;
?
:
unknown
[
]
;
?
:
[
]
;
?
:
{
[
:
string
]
:
string
}
;
?
:
string
;
?
:
string
;
?
:
string
;
?
:
{
[
in
]
:
string
}
;
/** @deprecated */
?
:
{
[
in
]
:
string
}
;
}
export
interface
IBreakpointContribution
{
:
string
;
?
:
string
;
}
export
enum
{
/**
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug configurations for a newly created launch.json.
*/
=
1
,
/**
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
*/
=
2
}
export
interface
IDebugConfigurationProvider
{
readonly
:
string
;
readonly
:
;
?
(
:
|
undefined
,
:
,
:
)
:
Promise
<
|
null
|
undefined
>
;
?
(
:
|
undefined
,
:
,
:
)
:
Promise
<
|
null
|
undefined
>
;
?
(
:
|
undefined
,
:
)
:
Promise
<
[
]
>
;
}
export
interface
IDebugAdapterDescriptorFactory
{
readonly
:
string
;
createDebugAdapterDescriptor
(
:
)
:
Promise
<
>
;
}
interface
ITerminalLauncher
{
runInTerminal
(
:
.
,
:
string
)
:
Promise
<
number
|
undefined
>
;
}
export
interface
IConfigurationManager
{
/**
* Returns an object containing the selected launch configuration and the selected configuration name. Both these fields can be null (no folder workspace).
*/
readonly
:
{
:
|
undefined
;
// Potentially activates extensions
getConfig
:
(
)
=>
Promise
<
|
undefined
>
;
:
string
|
undefined
;
// Type is used when matching dynamic configurations to their corresponding provider
:
string
|
undefined
;
}
;
selectConfiguration
(
:
|
undefined
,
?
:
string
,
?
:
,
?
:
{
?
:
string
}
)
:
Promise
<
void
>
;
getLaunches
(
)
:
<
>
;
getLaunch
(
:
|
undefined
)
:
|
undefined
;
getAllConfigurations
(
)
:
{
:
;
:
string
;
?
:
}
[
]
;
removeRecentDynamicConfigurations
(
:
string
,
:
string
)
:
void
;
getRecentDynamicConfigurations
(
)
:
{
:
string
;
:
string
}
[
]
;
/**
* Allows to register on change of selected debug configuration.
*/
readonly
:
<
void
>
;
/**
* Allows to register on change of selected debug configuration.
*/
readonly
:
<
void
>
;
hasDebugConfigurationProvider
(
:
string
,
?
:
)
:
boolean
;
getDynamicProviders
(
)
:
Promise
<
{
:
string
;
:
string
;
pick
:
(
)
=>
Promise
<
{
:
;
:
;
:
string
}
|
undefined
>
}
[
]
>
;
getDynamicConfigurationsByType
(
:
string
,
?
:
)
:
Promise
<
{
:
;
:
;
:
string
}
[
]
>
;
registerDebugConfigurationProvider
(
:
)
:
;
unregisterDebugConfigurationProvider
(
:
)
:
void
;
resolveConfigurationByProviders
(
:
|
undefined
,
:
string
|
undefined
,
:
unknown
,
:
)
:
Promise
<
|
null
|
undefined
>
;
}
export
enum
{
=
'unverifiedBreakpoints'
}
export
interface
IAdapterManager
{
readonly
:
<
void
>
;
hasEnabledDebuggers
(
)
:
boolean
;
getDebugAdapterDescriptor
(
:
)
:
Promise
<
|
undefined
>
;
getDebuggerLabel
(
:
string
)
:
string
|
undefined
;
someDebuggerInterestedInLanguage
(
:
string
)
:
boolean
;
getDebugger
(
:
string
)
:
|
undefined
;
activateDebuggers
(
:
string
,
?
:
string
)
:
Promise
<
void
>
;
registerDebugAdapterFactory
(
:
string
[
]
,
:
)
:
;
createDebugAdapter
(
:
)
:
|
undefined
;
registerDebugAdapterDescriptorFactory
(
:
)
:
;
unregisterDebugAdapterDescriptorFactory
(
:
)
:
void
;
substituteVariables
(
:
string
,
:
|
undefined
,
:
)
:
Promise
<
>
;
runInTerminal
(
:
string
,
:
.
,
:
string
)
:
Promise
<
number
|
undefined
>
;
getEnabledDebugger
(
:
string
)
:
(
&
)
|
undefined
;
guessDebugger
(
:
boolean
)
:
Promise
<
|
undefined
>
;
get
onDidDebuggersExtPointRead
(
)
:
<
void
>
;
}
export
interface
IGuessedDebugger
{
debugger
:
;
?
:
{
:
string
;
:
;
:
;
}
;
}
export
interface
ILaunch
{
/**
* Resource pointing to the launch.json this object is wrapping.
*/
readonly
:
;
/**
* Name of the launch.
*/
readonly
:
string
;
/**
* Workspace of the launch. Can be undefined.
*/
readonly
:
|
undefined
;
/**
* Should this launch be shown in the debug dropdown.
*/
readonly
:
boolean
;
/**
* Returns a configuration with the specified name.
* Returns undefined if there is no configuration with the specified name.
*/
getConfiguration
(
:
string
)
:
|
undefined
;
/**
* Returns a compound with the specified name.
* Returns undefined if there is no compound with the specified name.
*/
getCompound
(
:
string
)
:
|
undefined
;
/**
* Returns the names of all configurations and compounds.
* Ignores configurations which are invalid.
*/
getConfigurationNames
(
?
:
boolean
)
:
string
[
]
;
/**
* Opens the launch.json file. Creates if it does not exist.
*/
openConfigFile
(
:
{
:
boolean
;
?
:
string
;
?
:
boolean
}
,
?
:
)
:
Promise
<
{
:
|
null
;
:
boolean
}
>
;
}
// Debug service interfaces
export
const
=
createDecorator<IDebugService>
(
'debugService'
)
;
export
interface
IDebugService
{
readonly
:
undefined
;
/**
* Gets the current debug state.
*/
readonly
:
;
readonly
?
:
|
undefined
;
/**
* Allows to register on debug state changes.
*/
readonly
:
<
>
;
/**
* Allows to register on sessions about to be created (not yet fully initialised).
* This is fired exactly one time for any given session.
*/
readonly
:
<
>
;
/**
* Fired when a new debug session is started. This may fire multiple times
* for a single session due to restarts.
*/
readonly
:
<
>
;
/**
* Allows to register on end session events.
*
* Contains a boolean indicating whether the session will restart. If restart
* is true, the session should not considered to be dead yet.
*/
readonly
:
<
{
:
;
:
boolean
}
>
;
/**
* Gets the configuration manager.
*/
getConfigurationManager
(
)
:
;
/**
* Gets the adapter manager.
*/
getAdapterManager
(
)
:
;
/**
* Sets the focused stack frame and evaluates all expressions against the newly focused stack frame,
*/
focusStackFrame
(
:
|
undefined
,
?
:
,
?
:
,
?
:
{
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
}
)
:
Promise
<
void
>
;
/**
* Returns true if breakpoints can be set for a given editor model. Depends on mode.
*/
canSetBreakpointsIn
(
:
)
:
boolean
;
/**
* Adds new breakpoints to the model for the file specified with the uri. Notifies debug adapter of breakpoint changes.
*/
addBreakpoints
(
:
,
:
[
]
,
?
:
boolean
)
:
Promise
<
[
]
>
;
/**
* Updates the breakpoints.
*/
updateBreakpoints
(
:
,
:
<
string
,
>
,
:
boolean
)
:
Promise
<
void
>
;
/**
* Enables or disables all breakpoints. If breakpoint is passed only enables or disables the passed breakpoint.
* Notifies debug adapter of breakpoint changes.
*/
enableOrDisableBreakpoints
(
:
boolean
,
?
:
)
:
Promise
<
void
>
;
/**
* Sets the global activated property for all breakpoints.
* Notifies debug adapter of breakpoint changes.
*/
setBreakpointsActivated
(
:
boolean
)
:
Promise
<
void
>
;
/**
* Removes all breakpoints. If id is passed only removes the breakpoint associated with that id.
* Notifies debug adapter of breakpoint changes.
*/
removeBreakpoints
(
?
:
string
|
string
[
]
)
:
Promise
<
void
>
;
/**
* Adds a new function breakpoint for the given name.
*/
addFunctionBreakpoint
(
?
:
,
?
:
string
)
:
void
;
/**
* Updates an already existing function breakpoint.
* Notifies debug adapter of breakpoint changes.
*/
updateFunctionBreakpoint
(
:
string
,
:
{
?
:
string
;
?
:
string
;
?
:
string
}
)
:
Promise
<
void
>
;
/**
* Removes all function breakpoints. If id is passed only removes the function breakpoint with the passed id.
* Notifies debug adapter of breakpoint changes.
*/
removeFunctionBreakpoints
(
?
:
string
)
:
Promise
<
void
>
;
/**
* Adds a new data breakpoint.
*/
addDataBreakpoint
(
:
)
:
Promise
<
void
>
;
/**
* Updates an already existing data breakpoint.
* Notifies debug adapter of breakpoint changes.
*/
updateDataBreakpoint
(
:
string
,
:
{
?
:
string
;
?
:
string
}
)
:
Promise
<
void
>
;
/**
* Removes all data breakpoints. If id is passed only removes the data breakpoint with the passed id.
* Notifies debug adapter of breakpoint changes.
*/
removeDataBreakpoints
(
?
:
string
)
:
Promise
<
void
>
;
/**
* Adds a new instruction breakpoint.
*/
addInstructionBreakpoint
(
:
)
:
Promise
<
void
>
;
/**
* Removes all instruction breakpoints. If `address` is passed, only the
* instruction breakpoint with the matching resolved memory address is
* removed; this is preferred because the debug adapter is allowed to
* return different `instructionReference` strings for the same memory
* location on subsequent disassemble requests. If `address` is not
* provided, falls back to matching on `instructionReference` (and
* `offset` when specified). When no arguments are provided, all
* instruction breakpoints are removed. Notifies the debug adapter of
* breakpoint changes.
*/
removeInstructionBreakpoints
(
?
:
string
,
?
:
number
,
?
:
)
:
Promise
<
void
>
;
setExceptionBreakpointCondition
(
:
,
:
string
|
undefined
)
:
Promise
<
void
>
;
/**
* Creates breakpoints based on the sesison filter options. This will create
* disabled breakpoints (or enabled, if the filter indicates it's a default)
* for each filter provided in the session.
*/
setExceptionBreakpointsForSession
(
:
,
:
.
[
]
)
:
void
;
/**
* Sends all breakpoints to the passed session.
* If session is not passed, sends all breakpoints to each session.
*/
sendAllBreakpoints
(
?
:
)
:
Promise
<
void
>
;
/**
* Sends breakpoints of the given source to the passed session.
*/
sendBreakpoints
(
:
,
?
:
boolean
,
?
:
)
:
Promise
<
void
>
;
/**
* Adds a new watch expression and evaluates it against the debug adapter.
*/
addWatchExpression
(
?
:
string
)
:
void
;
/**
* Renames a watch expression and evaluates it against the debug adapter.
*/
renameWatchExpression
(
:
string
,
:
string
)
:
void
;
/**
* Moves a watch expression to a new possition. Used for reordering watch expressions.
*/
moveWatchExpression
(
:
string
,
:
number
)
:
void
;
/**
* Removes all watch expressions. If id is passed only removes the watch expression with the passed id.
*/
removeWatchExpressions
(
?
:
string
)
:
void
;
/**
* Starts debugging. If the configOrName is not passed uses the selected configuration in the debug dropdown.
* Also saves all files, manages if compounds are present in the configuration
* and resolveds configurations via DebugConfigurationProviders.
*
* Returns true if the start debugging was successful. For compound launches, all configurations have to start successfully for it to return success.
* On errors the startDebugging will throw an error, however some error and cancelations are handled and in that case will simply return false.
*/
startDebugging
(
:
|
undefined
,
?
:
|
string
,
?
:
,
?
:
boolean
)
:
Promise
<
boolean
>
;
/**
* Restarts a session or creates a new one if there is no active session.
*/
restartSession
(
:
,
?
:
unknown
)
:
Promise
<
void
>
;
/**
* Stops the session. If no session is specified then all sessions are stopped.
*/
stopSession
(
:
|
undefined
,
?
:
boolean
,
?
:
boolean
)
:
Promise
<
void
>
;
/**
* Makes unavailable all sources with the passed uri. Source will appear as grayed out in callstack view.
*/
sourceIsNotAvailable
(
:
)
:
void
;
/**
* Gets the current debug model.
*/
getModel
(
)
:
;
/**
* Gets the current view model.
*/
getViewModel
(
)
:
;
/**
* Resumes execution and pauses until the given position is reached.
*/