Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
209fcbd5
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,发现更多精彩内容 >>
提交
209fcbd5
编写于
12月 19, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
plugin => extension
上级
87fe0064
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
9 addition
and
9 deletion
+9
-9
src/vs/code/electron-main/launch.ts
src/vs/code/electron-main/launch.ts
+1
-1
src/vs/code/electron-main/window.ts
src/vs/code/electron-main/window.ts
+1
-1
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+6
-6
src/vs/workbench/parts/debug/electron-browser/debugService.ts
...vs/workbench/parts/debug/electron-browser/debugService.ts
+1
-1
未找到文件。
src/vs/code/electron-main/launch.ts
浏览文件 @
209fcbd5
...
...
@@ -91,7 +91,7 @@ export class LaunchService implements ILaunchService {
// Otherwise handle in windows service
let
usedWindows
:
VSCodeWindow
[];
if
(
!!
args
.
extensionDevelopmentPath
)
{
this
.
windowsService
.
open
Plugi
nDevelopmentHostWindow
({
cli
:
args
,
userEnv
});
this
.
windowsService
.
open
Extensio
nDevelopmentHostWindow
({
cli
:
args
,
userEnv
});
}
else
if
(
args
.
_
.
length
===
0
&&
args
[
'
new-window
'
])
{
usedWindows
=
this
.
windowsService
.
open
({
cli
:
args
,
userEnv
,
forceNewWindow
:
true
,
forceEmpty
:
true
});
}
else
if
(
args
.
_
.
length
===
0
)
{
...
...
src/vs/code/electron-main/window.ts
浏览文件 @
209fcbd5
...
...
@@ -450,7 +450,7 @@ export class VSCodeWindow implements IVSCodeWindow {
delete
configuration
.
filesToDiff
;
// Some configuration things get inherited if the window is being reloaded and we are
// in
plugi
n development mode. These options are all development related.
// in
extensio
n development mode. These options are all development related.
if
(
this
.
isExtensionDevelopmentHost
&&
cli
)
{
configuration
.
verbose
=
cli
.
verbose
;
configuration
.
debugPluginHost
=
cli
.
debugPluginHost
;
...
...
src/vs/code/electron-main/windows.ts
浏览文件 @
209fcbd5
...
...
@@ -91,7 +91,7 @@ export interface IWindowsMainService {
ready
(
initialUserEnv
:
platform
.
IProcessEnvironment
):
void
;
reload
(
win
:
VSCodeWindow
,
cli
?:
ParsedArgs
):
void
;
open
(
openConfig
:
IOpenConfiguration
):
VSCodeWindow
[];
open
Plugi
nDevelopmentHostWindow
(
openConfig
:
IOpenConfiguration
):
void
;
open
Extensio
nDevelopmentHostWindow
(
openConfig
:
IOpenConfiguration
):
void
;
openFileFolderPicker
(
forceNewWindow
?:
boolean
):
void
;
openFilePicker
(
forceNewWindow
?:
boolean
,
path
?:
string
,
window
?:
VSCodeWindow
):
void
;
openFolderPicker
(
forceNewWindow
?:
boolean
,
window
?:
VSCodeWindow
):
void
;
...
...
@@ -579,11 +579,11 @@ export class WindowsManager implements IWindowsMainService {
return
assign
({},
this
.
initialUserEnv
,
openConfig
.
userEnv
||
{});
}
public
open
Plugi
nDevelopmentHostWindow
(
openConfig
:
IOpenConfiguration
):
void
{
public
open
Extensio
nDevelopmentHostWindow
(
openConfig
:
IOpenConfiguration
):
void
{
// Reload an existing
plugi
n development host window on the same path
// Reload an existing
extensio
n development host window on the same path
// We currently do not allow more than one extension development window
// on the same
plugi
n path.
// on the same
extensio
n path.
let
res
=
WindowsManager
.
WINDOWS
.
filter
(
w
=>
w
.
config
&&
this
.
isPathEqual
(
w
.
config
.
extensionDevelopmentPath
,
openConfig
.
cli
.
extensionDevelopmentPath
));
if
(
res
&&
res
.
length
===
1
)
{
this
.
reload
(
res
[
0
],
openConfig
.
cli
);
...
...
@@ -755,7 +755,7 @@ export class WindowsManager implements IWindowsMainService {
else
{
// Some configuration things get inherited if the window is being reused and we are
// in
plugi
n development host mode. These options are all development related.
// in
extensio
n development host mode. These options are all development related.
const
currentWindowConfig
=
vscodeWindow
.
config
;
if
(
!
configuration
.
extensionDevelopmentPath
&&
currentWindowConfig
&&
!!
currentWindowConfig
.
extensionDevelopmentPath
)
{
configuration
.
extensionDevelopmentPath
=
currentWindowConfig
.
extensionDevelopmentPath
;
...
...
@@ -785,7 +785,7 @@ export class WindowsManager implements IWindowsMainService {
private
getNewWindowState
(
configuration
:
IWindowConfiguration
):
ISingleWindowState
{
//
plugi
n development host Window - load from stored settings if any
//
extensio
n development host Window - load from stored settings if any
if
(
!!
configuration
.
extensionDevelopmentPath
&&
this
.
windowsState
.
lastPluginDevelopmentHostWindow
)
{
return
this
.
windowsState
.
lastPluginDevelopmentHostWindow
.
uiState
;
}
...
...
src/vs/workbench/parts/debug/electron-browser/debugService.ts
浏览文件 @
209fcbd5
...
...
@@ -154,7 +154,7 @@ export class DebugService implements debug.IDebugService {
return
;
}
// a
plugi
n logged output, show it inside the REPL
// a
n extensio
n logged output, show it inside the REPL
if
(
broadcast
.
channel
===
EXTENSION_LOG_BROADCAST_CHANNEL
)
{
let
extensionOutput
:
ILogEntry
=
broadcast
.
payload
;
let
sev
=
extensionOutput
.
severity
===
'
warn
'
?
severity
.
Warning
:
extensionOutput
.
severity
===
'
error
'
?
severity
.
Error
:
severity
.
Info
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录