Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
31221e62
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
31221e62
编写于
6月 06, 2019
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: map polish
#74948
上级
683d774e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
8 deletion
+5
-8
src/vs/workbench/contrib/debug/browser/loadedScriptsView.ts
src/vs/workbench/contrib/debug/browser/loadedScriptsView.ts
+1
-2
src/vs/workbench/contrib/debug/common/abstractDebugAdapter.ts
...vs/workbench/contrib/debug/common/abstractDebugAdapter.ts
+2
-3
src/vs/workbench/contrib/debug/common/debugModel.ts
src/vs/workbench/contrib/debug/common/debugModel.ts
+1
-1
src/vs/workbench/contrib/debug/electron-browser/debugConfigurationManager.ts
...ntrib/debug/electron-browser/debugConfigurationManager.ts
+1
-2
未找到文件。
src/vs/workbench/contrib/debug/browser/loadedScriptsView.ts
浏览文件 @
31221e62
...
...
@@ -244,7 +244,7 @@ class SessionTreeItem extends BaseTreeItem {
private
_session
:
IDebugSession
;
private
_initialized
:
boolean
;
private
_map
:
Map
<
string
,
BaseTreeItem
>
;
private
_map
=
new
Map
<
string
,
BaseTreeItem
>
()
;
private
_labelService
:
ILabelService
;
constructor
(
labelService
:
ILabelService
,
parent
:
BaseTreeItem
,
session
:
IDebugSession
,
private
_environmentService
:
IEnvironmentService
,
private
rootProvider
:
IWorkspaceContextService
)
{
...
...
@@ -252,7 +252,6 @@ class SessionTreeItem extends BaseTreeItem {
this
.
_labelService
=
labelService
;
this
.
_initialized
=
false
;
this
.
_session
=
session
;
this
.
_map
=
new
Map
();
}
getSession
():
IDebugSession
{
...
...
src/vs/workbench/contrib/debug/common/abstractDebugAdapter.ts
浏览文件 @
31221e62
...
...
@@ -13,7 +13,7 @@ import { IDebugAdapter } from 'vs/workbench/contrib/debug/common/debug';
export
abstract
class
AbstractDebugAdapter
implements
IDebugAdapter
{
private
sequence
:
number
;
private
pendingRequests
:
Map
<
number
,
(
e
:
DebugProtocol
.
Response
)
=>
void
>
;
private
pendingRequests
=
new
Map
<
number
,
(
e
:
DebugProtocol
.
Response
)
=>
void
>
()
;
private
requestCallback
:
(
request
:
DebugProtocol
.
Request
)
=>
void
;
private
eventCallback
:
(
request
:
DebugProtocol
.
Event
)
=>
void
;
private
messageCallback
:
(
message
:
DebugProtocol
.
ProtocolMessage
)
=>
void
;
...
...
@@ -22,7 +22,6 @@ export abstract class AbstractDebugAdapter implements IDebugAdapter {
constructor
()
{
this
.
sequence
=
1
;
this
.
pendingRequests
=
new
Map
();
this
.
_onError
=
new
Emitter
<
Error
>
();
this
.
_onExit
=
new
Emitter
<
number
>
();
}
...
...
@@ -139,7 +138,7 @@ export abstract class AbstractDebugAdapter implements IDebugAdapter {
protected
cancelPending
()
{
const
pending
=
this
.
pendingRequests
;
this
.
pendingRequests
=
new
Map
();
this
.
pendingRequests
.
clear
();
setTimeout
(
_
=>
{
pending
.
forEach
((
callback
,
request_seq
)
=>
{
const
err
:
DebugProtocol
.
Response
=
{
...
...
src/vs/workbench/contrib/debug/common/debugModel.ts
浏览文件 @
31221e62
...
...
@@ -90,7 +90,7 @@ export class RawObjectReplElement implements IExpression {
export
class
ExpressionContainer
implements
IExpressionContainer
{
public
static
allValues
:
Map
<
string
,
string
>
=
new
Map
<
string
,
string
>
();
public
static
allValues
=
new
Map
<
string
,
string
>
();
// Use chunks to support variable paging #9537
private
static
readonly
BASE_CHUNK_SIZE
=
100
;
...
...
src/vs/workbench/contrib/debug/electron-browser/debugConfigurationManager.ts
浏览文件 @
31221e62
...
...
@@ -52,7 +52,7 @@ export class ConfigurationManager implements IConfigurationManager {
private
_onDidSelectConfigurationName
=
new
Emitter
<
void
>
();
private
configProviders
:
IDebugConfigurationProvider
[];
private
adapterDescriptorFactories
:
IDebugAdapterDescriptorFactory
[];
private
debugAdapterFactories
:
Map
<
string
,
IDebugAdapterFactory
>
;
private
debugAdapterFactories
=
new
Map
<
string
,
IDebugAdapterFactory
>
()
;
private
terminalLauncher
:
ITerminalLauncher
;
private
debugConfigurationTypeContext
:
IContextKey
<
string
>
;
...
...
@@ -78,7 +78,6 @@ export class ConfigurationManager implements IConfigurationManager {
const
previousSelectedRoot
=
this
.
storageService
.
get
(
DEBUG_SELECTED_ROOT
,
StorageScope
.
WORKSPACE
);
const
previousSelectedLaunch
=
this
.
launches
.
filter
(
l
=>
l
.
uri
.
toString
()
===
previousSelectedRoot
).
pop
();
this
.
debugConfigurationTypeContext
=
CONTEXT_DEBUG_CONFIGURATION_TYPE
.
bindTo
(
contextKeyService
);
this
.
debugAdapterFactories
=
new
Map
();
if
(
previousSelectedLaunch
)
{
this
.
selectConfiguration
(
previousSelectedLaunch
,
this
.
storageService
.
get
(
DEBUG_SELECTED_CONFIG_NAME_KEY
,
StorageScope
.
WORKSPACE
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录