Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2061d904
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,体验更适合开发者的 AI 搜索 >>
提交
2061d904
编写于
3月 06, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
💄
上级
7bf07116
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
3 addition
and
30 deletion
+3
-30
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+1
-1
src/vs/platform/files/common/files.ts
src/vs/platform/files/common/files.ts
+0
-1
src/vs/workbench/browser/parts/editor/editorGroupsControl.ts
src/vs/workbench/browser/parts/editor/editorGroupsControl.ts
+1
-1
src/vs/workbench/parts/files/browser/saveErrorHandler.ts
src/vs/workbench/parts/files/browser/saveErrorHandler.ts
+0
-9
src/vs/workbench/services/files/node/fileService.ts
src/vs/workbench/services/files/node/fileService.ts
+1
-18
未找到文件。
src/vs/code/electron-main/windows.ts
浏览文件 @
2061d904
...
...
@@ -448,7 +448,7 @@ export class WindowsManager implements IWindowsMainService {
openFilesInNewWindow
=
true
;
// only on macOS do we allow to open files in a new window if this is triggered via DOCK context
}
if
(
!
openConfig
.
cli
.
extensionDevelopmentPath
&&
windowConfig
&&
(
windowConfig
.
openFilesInNewWindow
===
'
on
'
||
windowConfig
.
openFilesInNewWindow
===
'
off
'
||
<
any
>
windowConfig
.
openFilesInNewWindow
===
false
/* TODO@Ben migration */
))
{
if
(
!
openConfig
.
cli
.
extensionDevelopmentPath
&&
windowConfig
&&
(
windowConfig
.
openFilesInNewWindow
===
'
on
'
||
windowConfig
.
openFilesInNewWindow
===
'
off
'
))
{
openFilesInNewWindow
=
(
windowConfig
.
openFilesInNewWindow
===
'
on
'
);
}
}
...
...
src/vs/platform/files/common/files.ts
浏览文件 @
2061d904
...
...
@@ -476,7 +476,6 @@ export interface IImportResult {
export
interface
IFileOperationResult
{
message
:
string
;
fileOperationResult
:
FileOperationResult
;
payload
?:
any
;
}
export
enum
FileOperationResult
{
...
...
src/vs/workbench/browser/parts/editor/editorGroupsControl.ts
浏览文件 @
2061d904
...
...
@@ -962,7 +962,7 @@ export class EditorGroupsControl implements IEditorGroupsControl, IVerticalSashL
const
editorService
=
$this
.
editorService
;
const
groupService
=
$this
.
editorGroupService
;
const
splitEditor
=
(
typeof
splitTo
===
'
number
'
);
// TODO@Ben ugly split code should benefit from empty group support once available!
const
splitEditor
=
(
typeof
splitTo
===
'
number
'
);
const
freeGroup
=
(
stacks
.
groups
.
length
===
1
)
?
Position
.
TWO
:
Position
.
THREE
;
// Check for transfer from title control
...
...
src/vs/workbench/parts/files/browser/saveErrorHandler.ts
浏览文件 @
2061d904
...
...
@@ -95,15 +95,6 @@ export class SaveErrorHandler implements ISaveErrorHandler, IWorkbenchContributi
// Dirty write prevention
if
((
<
IFileOperationResult
>
error
).
fileOperationResult
===
FileOperationResult
.
FILE_MODIFIED_SINCE
)
{
// TODO@Ben remove me once https://github.com/Microsoft/vscode/issues/13665 is resolved
if
(
error
.
payload
)
{
error
.
payload
.
modelValue
=
model
.
getValue
();
error
.
payload
.
modelValueLength
=
error
.
payload
.
modelValue
.
length
;
console
.
log
(
JSON
.
stringify
(
error
.
payload
));
}
message
=
this
.
instantiationService
.
createInstance
(
ResolveSaveConflictMessage
,
model
,
null
);
}
...
...
src/vs/workbench/services/files/node/fileService.ts
浏览文件 @
2061d904
...
...
@@ -621,26 +621,9 @@ export class FileService implements IFileService {
// Find out if content length has changed
if
(
options
.
etag
!==
etag
(
stat
.
size
,
options
.
mtime
))
{
// TODO@Ben remove me once https://github.com/Microsoft/vscode/issues/13665 is resolved
let
payload
:
any
;
if
(
this
.
options
.
verboseLogging
)
{
const
contents
=
fs
.
readFileSync
(
absolutePath
);
const
value
=
contents
.
toString
();
payload
=
{
diskByteLength
:
contents
.
length
,
diskValueLength
:
value
.
length
,
diskValue
:
value
,
options
,
stat
};
}
return
TPromise
.
wrapError
(
<
IFileOperationResult
>
{
message
:
'
File Modified Since
'
,
fileOperationResult
:
FileOperationResult
.
FILE_MODIFIED_SINCE
,
payload
fileOperationResult
:
FileOperationResult
.
FILE_MODIFIED_SINCE
});
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录