Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
26d23c63
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
26d23c63
编写于
10月 22, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Strict null checks
#60565
上级
42a068bb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
20 addition
and
14 deletion
+20
-14
src/tsconfig.strictNullChecks.json
src/tsconfig.strictNullChecks.json
+3
-0
src/vs/editor/standalone/browser/simpleServices.ts
src/vs/editor/standalone/browser/simpleServices.ts
+2
-2
src/vs/platform/configuration/common/configuration.ts
src/vs/platform/configuration/common/configuration.ts
+2
-2
src/vs/platform/dialogs/common/dialogs.ts
src/vs/platform/dialogs/common/dialogs.ts
+1
-1
src/vs/platform/lifecycle/electron-main/lifecycleMain.ts
src/vs/platform/lifecycle/electron-main/lifecycleMain.ts
+6
-3
src/vs/workbench/api/node/extHostExtensionActivator.ts
src/vs/workbench/api/node/extHostExtensionActivator.ts
+6
-6
未找到文件。
src/tsconfig.strictNullChecks.json
浏览文件 @
26d23c63
...
...
@@ -368,6 +368,7 @@
"./vs/platform/contextkey/browser/contextKeyService.ts"
,
"./vs/platform/contextkey/common/contextkey.ts"
,
"./vs/platform/dialogs/common/dialogs.ts"
,
"./vs/platform/dialogs/node/dialogService.ts"
,
"./vs/platform/download/common/download.ts"
,
"./vs/platform/editor/common/editor.ts"
,
"./vs/platform/environment/common/environment.ts"
,
...
...
@@ -407,6 +408,7 @@
"./vs/platform/label/electron-browser/label.contribution.ts"
,
"./vs/platform/lifecycle/common/lifecycle.ts"
,
"./vs/platform/lifecycle/electron-browser/lifecycleService.ts"
,
"./vs/platform/lifecycle/electron-main/lifecycleMain.ts"
,
"./vs/platform/localizations/common/localizations.ts"
,
"./vs/platform/log/common/bufferLog.ts"
,
"./vs/platform/log/common/log.ts"
,
...
...
@@ -458,6 +460,7 @@
"./vs/platform/workspaces/node/workspaces.ts"
,
"./vs/vscode.d.ts"
,
"./vs/vscode.proposed.d.ts"
,
"./vs/workbench/api/node/extHostExtensionActivator.ts"
,
"./vs/workbench/api/shared/tasks.ts"
,
"./vs/workbench/browser/actions/toggleActivityBarVisibility.ts"
,
"./vs/workbench/browser/actions/toggleCenteredLayout.ts"
,
...
...
src/vs/editor/standalone/browser/simpleServices.ts
浏览文件 @
26d23c63
...
...
@@ -417,8 +417,8 @@ export class SimpleConfigurationService implements IConfigurationService {
public
inspect
<
C
>
(
key
:
string
,
options
:
IConfigurationOverrides
=
{}):
{
default
:
C
,
user
:
C
,
workspace
:
C
,
workspaceFolder
:
C
workspace
?
:
C
,
workspaceFolder
?
:
C
value
:
C
,
}
{
return
this
.
configuration
().
inspect
<
C
>
(
key
,
options
,
null
);
...
...
src/vs/platform/configuration/common/configuration.ts
浏览文件 @
26d23c63
...
...
@@ -89,8 +89,8 @@ export interface IConfigurationService {
inspect
<
T
>
(
key
:
string
,
overrides
?:
IConfigurationOverrides
):
{
default
:
T
,
user
:
T
,
workspace
:
T
,
workspaceFolder
:
T
,
workspace
?
:
T
,
workspaceFolder
?
:
T
,
memory
?:
T
,
value
:
T
,
};
...
...
src/vs/platform/dialogs/common/dialogs.ts
浏览文件 @
26d23c63
...
...
@@ -16,7 +16,7 @@ export interface IConfirmation {
type
?:
'
none
'
|
'
info
'
|
'
error
'
|
'
question
'
|
'
warning
'
;
message
:
string
;
detail
?:
string
;
primaryButton
?
:
string
;
primaryButton
:
string
;
secondaryButton
?:
string
;
checkbox
?:
{
label
:
string
;
...
...
src/vs/platform/lifecycle/electron-main/lifecycleMain.ts
浏览文件 @
26d23c63
...
...
@@ -100,8 +100,8 @@ export class LifecycleService extends Disposable implements ILifecycleService {
private
static
readonly
QUIT_FROM_RESTART_MARKER
=
'
quit.from.restart
'
;
// use a marker to find out if the session was restarted
private
windowToCloseRequest
:
{
[
windowId
:
string
]:
boolean
}
=
Object
.
create
(
null
);
private
pendingQuitPromise
:
TPromise
<
boolean
>
;
private
pendingQuitPromiseComplete
:
TValueCallback
<
boolean
>
;
private
pendingQuitPromise
:
TPromise
<
boolean
>
|
null
;
private
pendingQuitPromiseComplete
:
TValueCallback
<
boolean
>
|
null
;
private
oneTimeListenerTokenGenerator
=
0
;
private
windowCounter
=
0
;
...
...
@@ -399,7 +399,10 @@ export class LifecycleService extends Disposable implements ILifecycleService {
// Code starts it will set it back to the installation directory again.
try
{
if
(
isWindows
)
{
process
.
chdir
(
process
.
env
[
'
VSCODE_CWD
'
]);
const
vscodeCwd
=
process
.
env
[
'
VSCODE_CWD
'
];
if
(
vscodeCwd
)
{
process
.
chdir
(
vscodeCwd
);
}
}
}
catch
(
err
)
{
this
.
logService
.
error
(
err
);
...
...
src/vs/workbench/api/node/extHostExtensionActivator.ts
浏览文件 @
26d23c63
...
...
@@ -31,8 +31,8 @@ export interface IExtensionContext {
* Represents the source code (module) of an extension.
*/
export
interface
IExtensionModule
{
activate
(
ctx
:
IExtensionContext
):
Promise
<
IExtensionAPI
>
;
deactivate
():
void
;
activate
?
(
ctx
:
IExtensionContext
):
Promise
<
IExtensionAPI
>
;
deactivate
?
():
void
;
}
/**
...
...
@@ -123,18 +123,18 @@ export class ExtensionActivationTimesBuilder {
export
class
ActivatedExtension
{
public
readonly
activationFailed
:
boolean
;
public
readonly
activationFailedError
:
Error
;
public
readonly
activationFailedError
:
Error
|
null
;
public
readonly
activationTimes
:
ExtensionActivationTimes
;
public
readonly
module
:
IExtensionModule
;
public
readonly
exports
:
IExtensionAPI
;
public
readonly
exports
:
IExtensionAPI
|
undefined
;
public
readonly
subscriptions
:
IDisposable
[];
constructor
(
activationFailed
:
boolean
,
activationFailedError
:
Error
,
activationFailedError
:
Error
|
null
,
activationTimes
:
ExtensionActivationTimes
,
module
:
IExtensionModule
,
exports
:
IExtensionAPI
,
exports
:
IExtensionAPI
|
undefined
,
subscriptions
:
IDisposable
[]
)
{
this
.
activationFailed
=
activationFailed
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录