Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
b6b561d6
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,发现更多精彩内容 >>
提交
b6b561d6
编写于
3月 30, 2016
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into joh/tsjs-slim
上级
7a9aea9d
ff5911c9
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
35 addition
and
21 deletion
+35
-21
extensions/node-debug/node-debug.azure.json
extensions/node-debug/node-debug.azure.json
+1
-1
src/vs/base/browser/ui/messagelist/messageList.css
src/vs/base/browser/ui/messagelist/messageList.css
+0
-4
src/vs/base/browser/ui/messagelist/messageList.ts
src/vs/base/browser/ui/messagelist/messageList.ts
+1
-1
src/vs/base/common/scorer.ts
src/vs/base/common/scorer.ts
+15
-10
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
+2
-1
src/vs/workbench/parts/debug/common/debugProtocol.d.ts
src/vs/workbench/parts/debug/common/debugProtocol.d.ts
+4
-0
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+10
-2
src/vs/workbench/parts/debug/node/rawDebugSession.ts
src/vs/workbench/parts/debug/node/rawDebugSession.ts
+2
-2
未找到文件。
extensions/node-debug/node-debug.azure.json
浏览文件 @
b6b561d6
{
"account"
:
"monacobuild"
,
"container"
:
"debuggers"
,
"zip"
:
"
63e4d82
/node-debug.zip"
,
"zip"
:
"
3fb9a7f
/node-debug.zip"
,
"output"
:
""
}
src/vs/base/browser/ui/messagelist/messageList.css
浏览文件 @
b6b561d6
...
...
@@ -140,10 +140,6 @@
cursor
:
pointer
;
}
.global-message-list
li
.message-list-entry
.actions-container.multiple
.message-action
.action-button
{
min-width
:
45px
;
text-align
:
center
;
}
.vs
.global-message-list
{
background-color
:
#2C2C2C
;
}
...
...
src/vs/base/browser/ui/messagelist/messageList.ts
浏览文件 @
b6b561d6
...
...
@@ -208,7 +208,7 @@ export class MessageList {
// Actions (if none provided, add one default action to hide message)
let
messageActions
=
this
.
getMessageActions
(
message
);
li
.
div
({
class
:
(
total
>
1
||
delta
<
0
)
?
'
actions-container multiple
'
:
'
actions-container
'
},
(
actionContainer
)
=>
{
li
.
div
({
class
:
'
actions-container
'
},
(
actionContainer
)
=>
{
for
(
let
i
=
messageActions
.
length
-
1
;
i
>=
0
;
i
--
)
{
let
action
=
messageActions
[
i
];
actionContainer
.
div
({
class
:
'
message-action
'
},
(
div
)
=>
{
...
...
src/vs/base/common/scorer.ts
浏览文件 @
b6b561d6
...
...
@@ -28,6 +28,7 @@
* Character score: 1
* Same case bonus: 1
* Upper case bonus: 1
* Consecutive match bonus: 5
* Start of word/path bonus: 7
* Start of string bonus: 8
*/
...
...
@@ -48,40 +49,44 @@ export function score(target: string, query: string, cache?: {[id: string]: numb
const
queryLower
=
query
.
toLowerCase
();
let
index
=
0
;
let
lastIndexOf
=
-
1
;
let
startAt
=
0
;
let
score
=
0
;
while
(
index
<
queryLen
)
{
var
indexOf
=
targetLower
.
indexOf
(
queryLower
[
index
],
lastIndexOf
+
1
);
let
indexOf
=
targetLower
.
indexOf
(
queryLower
[
index
],
startAt
);
if
(
indexOf
<
0
)
{
score
=
0
;
// This makes sure that the query is contained in the target
break
;
}
lastIndexOf
=
indexOf
;
// Character Match Bonus
// Character match bonus
score
+=
1
;
// Same Case Bonous
// Consecutive match bonus
if
(
startAt
===
indexOf
)
{
score
+=
5
;
}
// Same case bonus
if
(
target
[
indexOf
]
===
query
[
indexOf
])
{
score
+=
1
;
}
//
Prefix B
onus
//
Start of word b
onus
if
(
indexOf
===
0
)
{
score
+=
8
;
}
//
Start of Word/Path Bono
us
//
After separator bon
us
else
if
(
wordPathBoundary
.
some
(
w
=>
w
===
target
[
indexOf
-
1
]))
{
score
+=
7
;
}
// Inside
Word Upper Case B
onus
// Inside
word upper case b
onus
else
if
(
isUpper
(
target
.
charCodeAt
(
indexOf
)))
{
score
+=
1
;
}
startAt
=
indexOf
+
1
;
index
++
;
}
...
...
@@ -110,7 +115,7 @@ export function matches(target: string, queryLower: string): boolean {
let
index
=
0
;
let
lastIndexOf
=
-
1
;
while
(
index
<
queryLen
)
{
var
indexOf
=
targetLower
.
indexOf
(
queryLower
[
index
],
lastIndexOf
+
1
);
let
indexOf
=
targetLower
.
indexOf
(
queryLower
[
index
],
lastIndexOf
+
1
);
if
(
indexOf
<
0
)
{
return
false
;
}
...
...
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
浏览文件 @
b6b561d6
...
...
@@ -76,7 +76,8 @@ export class DebugActionsWidget implements wbext.IWorkbenchContribution {
}
private
onDebugStateChange
():
void
{
if
(
this
.
debugService
.
getState
()
===
debug
.
State
.
Inactive
)
{
const
state
=
this
.
debugService
.
getState
();
if
(
state
===
debug
.
State
.
Disabled
||
state
===
debug
.
State
.
Inactive
||
state
===
debug
.
State
.
Initializing
)
{
return
this
.
hide
();
}
...
...
src/vs/workbench/parts/debug/common/debugProtocol.d.ts
浏览文件 @
b6b561d6
...
...
@@ -382,6 +382,8 @@ declare module DebugProtocol {
export
interface
StackTraceArguments
{
/** Retrieve the stacktrace for this thread. */
threadId
:
number
;
/** the index of the first frames to return; if omitted frames start at 0. */
startFrame
?:
number
;
/** The maximum number of frames to return. If levels is not specified or 0, all frames are returned. */
levels
?:
number
;
}
...
...
@@ -391,6 +393,8 @@ declare module DebugProtocol {
/** The frames of the stackframe. If the array has length zero, there are no stackframes available.
This means that there is no location information available. */
stackFrames
:
StackFrame
[];
/** The total number of frames available. */
totalFrames
?:
number
;
};
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
b6b561d6
...
...
@@ -526,8 +526,10 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
this
.
setStateAndEmit
(
debug
.
State
.
Initializing
);
this
.
clearReplExpressions
();
return
this
.
textFileService
.
saveAll
().
then
(()
=>
this
.
extensionService
.
onReady
()).
then
(()
=>
this
.
setConfiguration
(
this
.
configurationManager
.
getConfigurationName
())).
then
(()
=>
{
return
this
.
textFileService
.
saveAll
()
.
then
(()
=>
this
.
extensionService
.
onReady
()
.
then
(()
=>
this
.
setConfiguration
(
this
.
configurationManager
.
getConfigurationName
())
.
then
(()
=>
{
const
configuration
=
this
.
configurationManager
.
getConfiguration
();
if
(
!
configuration
)
{
return
this
.
configurationManager
.
openConfigFile
(
false
).
then
(
openend
=>
{
...
...
@@ -552,6 +554,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
return
this
.
doCreateSession
(
configuration
,
changeViewState
);
}
this
.
setStateAndEmit
(
debug
.
State
.
Inactive
);
this
.
messageService
.
show
(
severity
.
Error
,
{
message
:
errorCount
>
1
?
nls
.
localize
(
'
preLaunchTaskErrors
'
,
"
Errors detected while running the preLaunchTask '{0}'.
"
,
configuration
.
preLaunchTask
)
:
errorCount
===
1
?
nls
.
localize
(
'
preLaunchTaskError
'
,
"
Error detected while running the preLaunchTask '{0}'.
"
,
configuration
.
preLaunchTask
)
:
...
...
@@ -562,6 +565,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
})]
});
},
(
err
:
TaskError
)
=>
{
this
.
setStateAndEmit
(
debug
.
State
.
Inactive
);
if
(
err
.
code
!==
TaskErrors
.
NotConfigured
)
{
throw
err
;
}
...
...
@@ -571,10 +575,14 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
actions
:
[
CloseAction
,
this
.
taskService
.
configureAction
()]
});
});
})),
err
=>
{
this
.
setStateAndEmit
(
debug
.
State
.
Inactive
);
throw
err
;
});
}
private
doCreateSession
(
configuration
:
debug
.
IConfig
,
changeViewState
:
boolean
):
TPromise
<
any
>
{
this
.
setStateAndEmit
(
debug
.
State
.
Initializing
);
const
key
=
this
.
configurationManager
.
getAdapter
().
aiKey
;
const
telemetryInfo
=
Object
.
create
(
null
);
this
.
telemetryService
.
getTelemetryInfo
().
then
(
info
=>
{
...
...
src/vs/workbench/parts/debug/node/rawDebugSession.ts
浏览文件 @
b6b561d6
...
...
@@ -244,7 +244,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
if
(
launch
.
command
===
'
node
'
)
{
stdfork
.
fork
(
launch
.
argv
[
0
],
launch
.
argv
.
slice
(
1
),
{},
(
err
,
child
)
=>
{
if
(
err
)
{
e
(
new
Error
(
nls
.
localize
(
'
unableToLaunchDebugAdapter
'
,
"
Unable to launch debug adapter from
{0}
.
"
,
launch
.
argv
[
0
])));
e
(
new
Error
(
nls
.
localize
(
'
unableToLaunchDebugAdapter
'
,
"
Unable to launch debug adapter from
'{0}'
.
"
,
launch
.
argv
[
0
])));
}
this
.
serverProcess
=
child
;
c
(
null
);
...
...
@@ -304,7 +304,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
if
(
exists
)
{
c
(
null
);
}
else
{
e
(
new
Error
(
nls
.
localize
(
'
debugAdapterBinNotFound
'
,
"
Debug
Adapter bin folder not found on path {0}
.
"
,
this
.
adapter
.
program
)));
e
(
new
Error
(
nls
.
localize
(
'
debugAdapterBinNotFound
'
,
"
Debug
adapter executable '{0}' not found
.
"
,
this
.
adapter
.
program
)));
}
});
}).
then
(()
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录