Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
96324f4c
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,发现更多精彩内容 >>
提交
96324f4c
编写于
8月 24, 2020
作者:
J
Jonatan Ivanov
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into jenkinsfile-extension-support
上级
1efd647d
8ba70d8b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
11 addition
and
35 deletion
+11
-35
extensions/github-authentication/package.json
extensions/github-authentication/package.json
+0
-5
src/vs/workbench/api/browser/mainThreadAuthentication.ts
src/vs/workbench/api/browser/mainThreadAuthentication.ts
+1
-1
src/vs/workbench/api/common/extHost.protocol.ts
src/vs/workbench/api/common/extHost.protocol.ts
+1
-1
src/vs/workbench/api/common/extHostExtensionService.ts
src/vs/workbench/api/common/extHostExtensionService.ts
+1
-5
src/vs/workbench/services/extensions/common/abstractExtensionService.ts
...ch/services/extensions/common/abstractExtensionService.ts
+3
-7
src/vs/workbench/services/extensions/common/extensionHostManager.ts
...kbench/services/extensions/common/extensionHostManager.ts
+4
-10
src/vs/workbench/services/extensions/common/extensions.ts
src/vs/workbench/services/extensions/common/extensions.ts
+1
-6
未找到文件。
extensions/github-authentication/package.json
浏览文件 @
96324f4c
...
...
@@ -11,11 +11,6 @@
"categories"
:
[
"Other"
],
"extensionKind"
:
[
"ui"
,
"workspace"
,
"web"
],
"activationEvents"
:
[
"*"
,
"onAuthenticationRequest:github"
...
...
src/vs/workbench/api/browser/mainThreadAuthentication.ts
浏览文件 @
96324f4c
...
...
@@ -249,7 +249,7 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
}
$ensureProvider
(
id
:
string
):
Promise
<
void
>
{
return
this
.
extensionService
.
activateByEvent
(
getAuthenticationProviderActivationEvent
(
id
)
,
true
);
return
this
.
extensionService
.
activateByEvent
(
getAuthenticationProviderActivationEvent
(
id
));
}
$sendDidChangeSessions
(
id
:
string
,
event
:
modes
.
AuthenticationSessionsChangeEvent
):
void
{
...
...
src/vs/workbench/api/common/extHost.protocol.ts
浏览文件 @
96324f4c
...
...
@@ -1074,7 +1074,7 @@ export type IResolveAuthorityResult = IResolveAuthorityErrorResult | IResolveAut
export
interface
ExtHostExtensionServiceShape
{
$resolveAuthority
(
remoteAuthority
:
string
,
resolveAttempt
:
number
):
Promise
<
IResolveAuthorityResult
>
;
$startExtensionHost
(
enabledExtensionIds
:
ExtensionIdentifier
[]):
Promise
<
void
>
;
$activateByEvent
(
activationEvent
:
string
,
eager
?:
boolean
):
Promise
<
void
>
;
$activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
;
$activate
(
extensionId
:
ExtensionIdentifier
,
reason
:
ExtensionActivationReason
):
Promise
<
boolean
>
;
$setRemoteEnvironment
(
env
:
{
[
key
:
string
]:
string
|
null
;
}):
Promise
<
void
>
;
$updateRemoteConnectionData
(
connectionData
:
IRemoteConnectionData
):
Promise
<
void
>
;
...
...
src/vs/workbench/api/common/extHostExtensionService.ts
浏览文件 @
96324f4c
...
...
@@ -686,11 +686,7 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme
return
this
.
_startExtensionHost
();
}
public
$activateByEvent
(
activationEvent
:
string
,
eager
:
boolean
=
true
):
Promise
<
void
>
{
if
(
eager
)
{
return
this
.
_activateByEvent
(
activationEvent
,
false
);
}
public
$activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
{
return
(
this
.
_readyToRunExtensions
.
wait
()
.
then
(
_
=>
this
.
_activateByEvent
(
activationEvent
,
false
))
...
...
src/vs/workbench/services/extensions/common/abstractExtensionService.ts
浏览文件 @
96324f4c
...
...
@@ -186,7 +186,7 @@ export abstract class AbstractExtensionService extends Disposable implements IEx
this
.
_startExtensionHosts
(
false
,
Array
.
from
(
this
.
_allRequestedActivateEvents
.
keys
()));
}
public
activateByEvent
(
activationEvent
:
string
,
eager
?:
boolean
):
Promise
<
void
>
{
public
activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
{
if
(
this
.
_installedExtensionsReady
.
isOpen
())
{
// Extensions have been scanned and interpreted
...
...
@@ -205,17 +205,13 @@ export abstract class AbstractExtensionService extends Disposable implements IEx
// Record the fact that this activationEvent was requested (in case of a restart)
this
.
_allRequestedActivateEvents
.
add
(
activationEvent
);
if
(
eager
)
{
return
this
.
_activateByEvent
(
activationEvent
,
eager
);
}
return
this
.
_installedExtensionsReady
.
wait
().
then
(()
=>
this
.
_activateByEvent
(
activationEvent
));
}
}
private
_activateByEvent
(
activationEvent
:
string
,
eager
?:
boolean
):
Promise
<
void
>
{
private
_activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
{
const
result
=
Promise
.
all
(
this
.
_extensionHostManagers
.
map
(
extHostManager
=>
extHostManager
.
activateByEvent
(
activationEvent
,
eager
))
this
.
_extensionHostManagers
.
map
(
extHostManager
=>
extHostManager
.
activateByEvent
(
activationEvent
))
).
then
(()
=>
{
});
this
.
_onWillActivateByEvent
.
fire
({
event
:
activationEvent
,
...
...
src/vs/workbench/services/extensions/common/extensionHostManager.ts
浏览文件 @
96324f4c
...
...
@@ -48,7 +48,6 @@ export class ExtensionHostManager extends Disposable {
*/
private
_proxy
:
Promise
<
{
value
:
ExtHostExtensionServiceShape
;
}
|
null
>
|
null
;
private
_resolveAuthorityAttempt
:
number
;
private
_hasStarted
=
false
;
constructor
(
extensionHost
:
IExtensionHost
,
...
...
@@ -66,7 +65,6 @@ export class ExtensionHostManager extends Disposable {
this
.
onDidExit
=
this
.
_extensionHost
.
onExit
;
this
.
_proxy
=
this
.
_extensionHost
.
start
()
!
.
then
(
(
protocol
)
=>
{
this
.
_hasStarted
=
true
;
return
{
value
:
this
.
_createExtensionHostCustomers
(
protocol
)
};
},
(
err
)
=>
{
...
...
@@ -219,18 +217,14 @@ export class ExtensionHostManager extends Disposable {
return
proxy
.
$activate
(
extension
,
reason
);
}
public
activateByEvent
(
activationEvent
:
string
,
eager
?:
boolean
):
Promise
<
void
>
{
if
(
eager
&&
!
this
.
_hasStarted
)
{
return
Promise
.
resolve
();
}
public
activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
{
if
(
!
this
.
_cachedActivationEvents
.
has
(
activationEvent
))
{
this
.
_cachedActivationEvents
.
set
(
activationEvent
,
this
.
_activateByEvent
(
activationEvent
,
eager
));
this
.
_cachedActivationEvents
.
set
(
activationEvent
,
this
.
_activateByEvent
(
activationEvent
));
}
return
this
.
_cachedActivationEvents
.
get
(
activationEvent
)
!
;
}
private
async
_activateByEvent
(
activationEvent
:
string
,
eager
?:
boolean
):
Promise
<
void
>
{
private
async
_activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
{
if
(
!
this
.
_proxy
)
{
return
;
}
...
...
@@ -240,7 +234,7 @@ export class ExtensionHostManager extends Disposable {
// i.e. the extension host could not be started
return
;
}
return
proxy
.
value
.
$activateByEvent
(
activationEvent
,
eager
);
return
proxy
.
value
.
$activateByEvent
(
activationEvent
);
}
public
async
getInspectPort
(
tryEnableInspector
:
boolean
):
Promise
<
number
>
{
...
...
src/vs/workbench/services/extensions/common/extensions.ts
浏览文件 @
96324f4c
...
...
@@ -177,13 +177,8 @@ export interface IExtensionService {
/**
* Send an activation event and activate interested extensions.
*
* Normally, this will queue the activation event if the extension hosts are not ready
* and send it to all of them. If the extension needs to be activated before this,
* the eager flag can be used to ignore extension hosts that aren't yet started. Do not
* use this flag unless necessary.
*/
activateByEvent
(
activationEvent
:
string
,
eager
?:
boolean
):
Promise
<
void
>
;
activateByEvent
(
activationEvent
:
string
):
Promise
<
void
>
;
/**
* An promise that resolves when the installed extensions are registered after
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录