ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / workbench / contrib / debug / browser / runAndDebugAccessibilityHelp.ts 93 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js' ;
import { AccessibleViewProviderId, AccessibleViewType, IAccessibleViewContentProvider } from '../../../../platform/accessibility/browser/accessibleView.js' ;
import { IAccessibleViewImplementation } from '../../../../platform/accessibility/browser/accessibleViewRegistry.js' ;
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js' ;
import { Disposable } from '../../../../base/common/lifecycle.js' ;
import { AccessibilityVerbositySettingId } from '../../accessibility/browser/accessibilityConfiguration.js' ;
import { localize } from
ICommandService
IViewsService
AccessibilityHelpNLS
FocusedViewContext SidebarFocusContext
priority
name
when ContextKeyExpr
ContextKeyExpr ContextKeyExpr SidebarFocusContext
ContextKeyExpr FocusedViewContext key
ContextKeyExpr FocusedViewContext key
ContextKeyExpr FocusedViewContext key
ContextKeyExpr FocusedViewContext key
ContextKeyExpr FocusedViewContext key
type AccessibleViewType AccessibleViewType Help
accessor ServicesAccessor
accessor ICommandService accessor IViewsService
id AccessibleViewProviderId RunAndDebug
verbositySettingKey AccessibilityVerbositySettingId Debug
options type AccessibleViewType Help
_focusedView
_commandService ICommandService
_viewsService IViewsService
_focusedView _viewsService
_focusedView
_commandService
_commandService
_commandService
_commandService
_commandService
AccessibilityHelpNLS setBreakpoint
AccessibilityHelpNLS addToWatch
'../../../../nls.js'
;
import
{
}
from
'../../../../platform/commands/common/commands.js'
;
import
{
}
from
'../../../services/views/common/viewsService.js'
;
import
{
}
from
'../../../../editor/common/standaloneStrings.js'
;
import
{
,
}
from
'../../../common/contextkeys.js'
;
import
{
BREAKPOINTS_VIEW_ID
,
CALLSTACK_VIEW_ID
,
LOADED_SCRIPTS_VIEW_ID
,
VARIABLES_VIEW_ID
,
WATCH_VIEW_ID
}
from
'../common/debug.js'
;
export
class
RunAndDebugAccessibilityHelp
implements
IAccessibleViewImplementation
{
=
120
;
=
'runAndDebugHelp'
;
=
.
or
(
.
and
(
.
equals
(
'activeViewlet'
,
'workbench.view.debug'
)
,
)
,
.
equals
(
.
,
VARIABLES_VIEW_ID
)
,
.
equals
(
.
,
WATCH_VIEW_ID
)
,
.
equals
(
.
,
CALLSTACK_VIEW_ID
)
,
.
equals
(
.
,
LOADED_SCRIPTS_VIEW_ID
)
,
.
equals
(
.
,
BREAKPOINTS_VIEW_ID
)
)
;
:
=
.
;
getProvider
(
:
)
{
return
new
RunAndDebugAccessibilityHelpProvider
(
.
get
(
)
,
.
get
(
)
)
;
}
}
class
RunAndDebugAccessibilityHelpProvider
extends
Disposable
implements
IAccessibleViewContentProvider
{
public
readonly
=
.
;
public
readonly
=
.
;
public
readonly
=
{
:
.
}
;
private
:
string
|
undefined
;
constructor
(
@ ICommandService
private
readonly
:
,
@ IViewsService
private
readonly
:
)
{
super
(
)
;
this
.
=
this
.
.
getFocusedViewName
(
)
;
}
public
onClose
(
)
:
void
{
switch
(
this
.
)
{
case
'Watch'
:
this
.
.
executeCommand
(
'workbench.debug.action.focusWatchView'
)
;
break
;
case
'Variables'
:
this
.
.
executeCommand
(
'workbench.debug.action.focusVariablesView'
)
;
break
;
case
'Call Stack'
:
this
.
.
executeCommand
(
'workbench.debug.action.focusCallStackView'
)
;
break
;
case
'Breakpoints'
:
this
.
.
executeCommand
(
'workbench.debug.action.focusBreakpointsView'
)
;
break
;
default
:
this
.
.
executeCommand
(
'workbench.view.debug'
)
;
}
}
public
provideContent
(
)
:
string
{
return
[
localize
(
'debug.showRunAndDebug'
,
"The Show Run and Debug view command{0} will open the current view."
,
'<keybinding:workbench.view.debug>'
)
,
localize
(
'debug.startDebugging'
,
"The Debug: Start Debugging command{0} will start a debug session."
,
'<keybinding:workbench.action.debug.start>'
)
,
localize
(
'debug.help'
,
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}."
,
'<keybinding:workbench.panel.repl.view.focus>'
)
,
.
,
.
,
localize
(
'onceDebugging'
,
"Once debugging, the following commands will be available:"
)
,
localize
(
'debug.restartDebugging'
,
"- Debug: Restart Debugging command{0} will restart the current debug session."
,
'<keybinding:workbench.action.debug.restart>'
)
,
localize
(
'debug.stopDebugging'
,
"- Debug: Stop Debugging command{0} will stop the current debugging session."
,
'<keybinding:workbench.action.debug.stop>'
)
,
localize
(
'debug.continue'
,
"- Debug: Continue command{0} will continue execution until the next breakpoint."
,
'<keybinding:workbench.action.debug.continue>'
)
,
localize
(
'debug.stepInto'
,
"- Debug: Step Into command{0} will step into the next function call."
,
'<keybinding:workbench.action.debug.stepInto>'
)
,
localize
(
'debug.stepOver'
,
"- Debug: Step Over command{0} will step over the current function call."
,
'<keybinding:workbench.action.debug.stepOver>'
)
,
localize
(
'debug.stepOut'
,
"- Debug: Step Out command{0} will step out of the current function call."
,
'<keybinding:workbench.action.debug.stepOut>'
)
,
localize
(
'debug.views'
,
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
)
,
localize
(
'debug.focusBreakpoints'
,
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view."
,
'<keybinding:workbench.debug.action.focusBreakpointsView>'
)
,
localize
(
'debug.focusCallStack'
,
"- Debug: Focus Call Stack View command{0} will focus the call stack view."
,
'<keybinding:workbench.debug.action.focusCallStackView>'
)
,
localize
(
'debug.focusVariables'
,
"- Debug: Focus Variables View command{0} will focus the variables view."
,
'<keybinding:workbench.debug.action.focusVariablesView>'
)
,
localize
(
'debug.focusWatch'
,
"- Debug: Focus Watch View command{0} will focus the watch view."
,
'<keybinding:workbench.debug.action.focusWatchView>'
)
,
localize
(
'debug.watchSetting'
,
"The setting {0} controls whether watch variable changes are announced."
,
'accessibility.debugWatchVariableAnnouncements'
)
,
]
.
join
(
'\n'
)
;
}
}