Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
7b1f444f
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7b1f444f
编写于
10月 11, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix a few more simple strict null errors
上级
dcd37445
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
10 deletion
+24
-10
src/tsconfig.strictNullChecks.json
src/tsconfig.strictNullChecks.json
+15
-1
src/vs/base/common/actions.ts
src/vs/base/common/actions.ts
+2
-2
src/vs/base/common/cache.ts
src/vs/base/common/cache.ts
+1
-1
src/vs/base/node/id.ts
src/vs/base/node/id.ts
+1
-1
src/vs/platform/search/common/search.ts
src/vs/platform/search/common/search.ts
+2
-2
src/vs/workbench/parts/terminal/common/terminal.ts
src/vs/workbench/parts/terminal/common/terminal.ts
+3
-3
未找到文件。
src/tsconfig.strictNullChecks.json
浏览文件 @
7b1f444f
...
...
@@ -18,10 +18,12 @@
"./vs/base/browser/ui/scrollbar/scrollableElementOptions.ts"
,
"./vs/base/browser/ui/scrollbar/scrollbarState.ts"
,
"./vs/base/browser/ui/tree/tree.ts"
,
"./vs/base/common/actions.ts"
,
"./vs/base/common/amd.ts"
,
"./vs/base/common/arrays.ts"
,
"./vs/base/common/assert.ts"
,
"./vs/base/common/async.ts"
,
"./vs/base/common/cache.ts"
,
"./vs/base/common/cancellation.ts"
,
"./vs/base/common/charCode.ts"
,
"./vs/base/common/collections.ts"
,
...
...
@@ -32,6 +34,7 @@
"./vs/base/common/diff/diff.ts"
,
"./vs/base/common/diff/diffChange.ts"
,
"./vs/base/common/errors.ts"
,
"./vs/base/common/errorsWithActions.ts"
,
"./vs/base/common/event.ts"
,
"./vs/base/common/functional.ts"
,
"./vs/base/common/glob.ts"
,
...
...
@@ -72,6 +75,7 @@
"./vs/base/common/winjs.polyfill.promise.ts"
,
"./vs/base/common/worker/simpleWorker.ts"
,
"./vs/base/node/decoder.ts"
,
"./vs/base/node/id.ts"
,
"./vs/base/node/paths.ts"
,
"./vs/base/node/ports.ts"
,
"./vs/base/parts/contextmenu/common/contextmenu.ts"
,
...
...
@@ -138,6 +142,8 @@
"./vs/platform/node/minimalTranslations.ts"
,
"./vs/platform/node/package.ts"
,
"./vs/platform/node/product.ts"
,
"./vs/platform/notification/common/notification.ts"
,
"./vs/platform/notification/test/common/testNotificationService.ts"
,
"./vs/platform/opener/common/opener.ts"
,
"./vs/platform/output/node/outputAppender.ts"
,
"./vs/platform/progress/common/progress.ts"
,
...
...
@@ -156,8 +162,12 @@
"./vs/platform/workbench/common/contextkeys.ts"
,
"./vs/workbench/api/shared/tasks.ts"
,
"./vs/workbench/browser/parts/statusbar/statusbar.ts"
,
"./vs/workbench/common/activity.ts"
,
"./vs/workbench/common/composite.ts"
,
"./vs/workbench/common/contributions.ts"
,
"./vs/workbench/common/extensionHostProtocol.ts"
,
"./vs/workbench/common/panel.ts"
,
"./vs/workbench/common/viewlet.ts"
,
"./vs/workbench/parts/execution/common/execution.ts"
,
"./vs/workbench/parts/extensions/common/extensionQuery.ts"
,
"./vs/workbench/parts/logs/common/logConstants.ts"
,
...
...
@@ -166,6 +176,7 @@
"./vs/workbench/parts/output/common/output.ts"
,
"./vs/workbench/parts/search/common/constants.ts"
,
"./vs/workbench/parts/terminal/browser/terminalWidgetManager.ts"
,
"./vs/workbench/parts/terminal/common/terminal.ts"
,
"./vs/workbench/parts/welcome/page/electron-browser/vs_code_welcome_page.ts"
,
"./vs/workbench/services/activity/common/activity.ts"
,
"./vs/workbench/services/configuration/common/jsonEditing.ts"
,
...
...
@@ -177,8 +188,11 @@
"./vs/workbench/services/files/node/watcher/unix/watcher.ts"
,
"./vs/workbench/services/hash/common/hashService.ts"
,
"./vs/workbench/services/hash/node/hashService.ts"
,
"./vs/workbench/services/panel/common/panelService.ts"
,
"./vs/workbench/services/search/node/search.ts"
,
"./vs/workbench/services/title/common/titleService.ts"
,
"./vs/workbench/test/electron-browser/api/mock.ts"
"./vs/workbench/test/electron-browser/api/mock.ts"
,
"vs/platform/search/common/search.ts"
],
"exclude"
:
[
"./typings/require-monaco.d.ts"
...
...
src/vs/base/common/actions.ts
浏览文件 @
7b1f444f
...
...
@@ -60,7 +60,7 @@ export class Action implements IAction {
protected
_enabled
:
boolean
;
protected
_checked
:
boolean
;
protected
_radio
:
boolean
;
protected
_actionCallback
:
(
event
?:
any
)
=>
Thenable
<
any
>
;
protected
_actionCallback
?
:
(
event
?:
any
)
=>
Thenable
<
any
>
;
constructor
(
id
:
string
,
label
:
string
=
''
,
cssClass
:
string
=
''
,
enabled
:
boolean
=
true
,
actionCallback
?:
(
event
?:
any
)
=>
Thenable
<
any
>
)
{
this
.
_id
=
id
;
...
...
@@ -165,7 +165,7 @@ export class Action implements IAction {
}
run
(
event
?:
any
,
_data
?:
ITelemetryData
):
Thenable
<
any
>
{
if
(
this
.
_actionCallback
!==
void
0
)
{
if
(
this
.
_actionCallback
)
{
return
this
.
_actionCallback
(
event
);
}
...
...
src/vs/base/common/cache.ts
浏览文件 @
7b1f444f
...
...
@@ -13,7 +13,7 @@ export interface CacheResult<T> {
export
class
Cache
<
T
>
{
private
result
:
CacheResult
<
T
>
=
null
;
private
result
:
CacheResult
<
T
>
|
null
=
null
;
constructor
(
private
task
:
(
ct
:
CancellationToken
)
=>
Promise
<
T
>
)
{
}
get
():
CacheResult
<
T
>
{
...
...
src/vs/base/node/id.ts
浏览文件 @
7b1f444f
...
...
@@ -45,7 +45,7 @@ export const virtualMachineHint: { value(): number } = new class {
this
.
_virtualMachineOUIs
.
set
(
'
00:16:3E
'
,
true
);
this
.
_virtualMachineOUIs
.
set
(
'
08:00:27
'
,
true
);
}
return
this
.
_virtualMachineOUIs
.
findSubstr
(
mac
);
return
!!
this
.
_virtualMachineOUIs
.
findSubstr
(
mac
);
}
value
():
number
{
...
...
src/vs/platform/search/common/search.ts
浏览文件 @
7b1f444f
...
...
@@ -306,7 +306,7 @@ export interface ISearchConfiguration extends IFilesConfiguration {
};
}
export
function
getExcludes
(
configuration
:
ISearchConfiguration
):
glob
.
IExpression
{
export
function
getExcludes
(
configuration
:
ISearchConfiguration
):
glob
.
IExpression
|
undefined
{
const
fileExcludes
=
configuration
&&
configuration
.
files
&&
configuration
.
files
.
exclude
;
const
searchExcludes
=
configuration
&&
configuration
.
search
&&
configuration
.
search
.
exclude
;
...
...
@@ -337,7 +337,7 @@ export function pathIncludedInQuery(query: ISearchQuery, fsPath: string): boolea
// If searchPaths are being used, the extra file must be in a subfolder and match the pattern, if present
if
(
query
.
usingSearchPaths
)
{
return
query
.
folderQueries
.
every
(
fq
=>
{
return
!!
query
.
folderQueries
&&
query
.
folderQueries
.
every
(
fq
=>
{
const
searchPath
=
fq
.
folder
.
fsPath
;
if
(
paths
.
isEqualOrParent
(
fsPath
,
searchPath
))
{
return
!
fq
.
includePattern
||
!!
glob
.
match
(
fq
.
includePattern
,
fsPath
);
...
...
src/vs/workbench/parts/terminal/common/terminal.ts
浏览文件 @
7b1f444f
...
...
@@ -17,17 +17,17 @@ export const TERMINAL_SERVICE_ID = 'terminalService';
/** A context key that is set when there is at least one opened integrated terminal. */
export
const
KEYBINDING_CONTEXT_TERMINAL_IS_OPEN
=
new
RawContextKey
<
boolean
>
(
'
terminalIsOpen
'
,
false
);
/** A context key that is set when the integrated terminal has focus. */
export
const
KEYBINDING_CONTEXT_TERMINAL_FOCUS
=
new
RawContextKey
<
boolean
>
(
'
terminalFocus
'
,
undefined
);
export
const
KEYBINDING_CONTEXT_TERMINAL_FOCUS
=
new
RawContextKey
<
boolean
>
(
'
terminalFocus
'
,
false
);
/** A context key that is set when the integrated terminal does not have focus. */
export
const
KEYBINDING_CONTEXT_TERMINAL_NOT_FOCUSED
:
ContextKeyExpr
=
KEYBINDING_CONTEXT_TERMINAL_FOCUS
.
toNegated
();
/** A keybinding context key that is set when the integrated terminal has text selected. */
export
const
KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED
=
new
RawContextKey
<
boolean
>
(
'
terminalTextSelected
'
,
undefined
);
export
const
KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED
=
new
RawContextKey
<
boolean
>
(
'
terminalTextSelected
'
,
false
);
/** A keybinding context key that is set when the integrated terminal does not have text selected. */
export
const
KEYBINDING_CONTEXT_TERMINAL_TEXT_NOT_SELECTED
:
ContextKeyExpr
=
KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED
.
toNegated
();
/** A context key that is set when the find widget in integrated terminal is visible. */
export
const
KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE
=
new
RawContextKey
<
boolean
>
(
'
terminalFindWidgetVisible
'
,
undefined
);
export
const
KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE
=
new
RawContextKey
<
boolean
>
(
'
terminalFindWidgetVisible
'
,
false
);
/** A context key that is set when the find widget in integrated terminal is not visible. */
export
const
KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_NOT_VISIBLE
:
ContextKeyExpr
=
KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE
.
toNegated
();
/** A context key that is set when the find widget find input in integrated terminal is focused. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录