Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
1ecd2b52
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,发现更多精彩内容 >>
提交
1ecd2b52
编写于
7月 13, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
.code => .code-workspace
上级
68f66cc8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
16 deletion
+15
-16
build/gulpfile.vscode.js
build/gulpfile.vscode.js
+1
-1
build/win32/code.iss
build/win32/code.iss
+5
-5
src/vs/platform/windows/common/windows.ts
src/vs/platform/windows/common/windows.ts
+7
-9
src/vs/platform/workspaces/common/workspaces.ts
src/vs/platform/workspaces/common/workspaces.ts
+1
-1
src/vs/workbench/electron-browser/main.ts
src/vs/workbench/electron-browser/main.ts
+1
-0
未找到文件。
build/gulpfile.vscode.js
浏览文件 @
1ecd2b52
...
...
@@ -135,7 +135,7 @@ const config = {
name
:
product
.
nameLong
+
'
document
'
,
role
:
'
Editor
'
,
ostypes
:
[
"
TEXT
"
,
"
utxt
"
,
"
TUTX
"
,
"
****
"
],
extensions
:
[
"
ascx
"
,
"
asp
"
,
"
aspx
"
,
"
bash
"
,
"
bash_login
"
,
"
bash_logout
"
,
"
bash_profile
"
,
"
bashrc
"
,
"
bat
"
,
"
bowerrc
"
,
"
c
"
,
"
cc
"
,
"
clj
"
,
"
cljs
"
,
"
cljx
"
,
"
clojure
"
,
"
cmd
"
,
"
code
"
,
"
coffee
"
,
"
config
"
,
"
cpp
"
,
"
cs
"
,
"
cshtml
"
,
"
csproj
"
,
"
css
"
,
"
csx
"
,
"
ctp
"
,
"
cxx
"
,
"
dockerfile
"
,
"
dot
"
,
"
dtd
"
,
"
editorconfig
"
,
"
edn
"
,
"
eyaml
"
,
"
eyml
"
,
"
fs
"
,
"
fsi
"
,
"
fsscript
"
,
"
fsx
"
,
"
gemspec
"
,
"
gitattributes
"
,
"
gitconfig
"
,
"
gitignore
"
,
"
go
"
,
"
h
"
,
"
handlebars
"
,
"
hbs
"
,
"
hh
"
,
"
hpp
"
,
"
htm
"
,
"
html
"
,
"
hxx
"
,
"
ini
"
,
"
jade
"
,
"
jav
"
,
"
java
"
,
"
js
"
,
"
jscsrc
"
,
"
jshintrc
"
,
"
jshtm
"
,
"
json
"
,
"
jsp
"
,
"
less
"
,
"
lua
"
,
"
m
"
,
"
makefile
"
,
"
markdown
"
,
"
md
"
,
"
mdoc
"
,
"
mdown
"
,
"
mdtext
"
,
"
mdtxt
"
,
"
mdwn
"
,
"
mkd
"
,
"
mkdn
"
,
"
ml
"
,
"
mli
"
,
"
php
"
,
"
phtml
"
,
"
pl
"
,
"
pl6
"
,
"
pm
"
,
"
pm6
"
,
"
pod
"
,
"
pp
"
,
"
profile
"
,
"
properties
"
,
"
ps1
"
,
"
psd1
"
,
"
psgi
"
,
"
psm1
"
,
"
py
"
,
"
r
"
,
"
rb
"
,
"
rhistory
"
,
"
rprofile
"
,
"
rs
"
,
"
rt
"
,
"
scss
"
,
"
sh
"
,
"
shtml
"
,
"
sql
"
,
"
svg
"
,
"
svgz
"
,
"
t
"
,
"
ts
"
,
"
txt
"
,
"
vb
"
,
"
wxi
"
,
"
wxl
"
,
"
wxs
"
,
"
xaml
"
,
"
xcodeproj
"
,
"
xcworkspace
"
,
"
xml
"
,
"
yaml
"
,
"
yml
"
,
"
zlogin
"
,
"
zlogout
"
,
"
zprofile
"
,
"
zsh
"
,
"
zshenv
"
,
"
zshrc
"
],
extensions
:
[
"
ascx
"
,
"
asp
"
,
"
aspx
"
,
"
bash
"
,
"
bash_login
"
,
"
bash_logout
"
,
"
bash_profile
"
,
"
bashrc
"
,
"
bat
"
,
"
bowerrc
"
,
"
c
"
,
"
cc
"
,
"
clj
"
,
"
cljs
"
,
"
cljx
"
,
"
clojure
"
,
"
cmd
"
,
"
code
-workspace
"
,
"
coffee
"
,
"
config
"
,
"
cpp
"
,
"
cs
"
,
"
cshtml
"
,
"
csproj
"
,
"
css
"
,
"
csx
"
,
"
ctp
"
,
"
cxx
"
,
"
dockerfile
"
,
"
dot
"
,
"
dtd
"
,
"
editorconfig
"
,
"
edn
"
,
"
eyaml
"
,
"
eyml
"
,
"
fs
"
,
"
fsi
"
,
"
fsscript
"
,
"
fsx
"
,
"
gemspec
"
,
"
gitattributes
"
,
"
gitconfig
"
,
"
gitignore
"
,
"
go
"
,
"
h
"
,
"
handlebars
"
,
"
hbs
"
,
"
hh
"
,
"
hpp
"
,
"
htm
"
,
"
html
"
,
"
hxx
"
,
"
ini
"
,
"
jade
"
,
"
jav
"
,
"
java
"
,
"
js
"
,
"
jscsrc
"
,
"
jshintrc
"
,
"
jshtm
"
,
"
json
"
,
"
jsp
"
,
"
less
"
,
"
lua
"
,
"
m
"
,
"
makefile
"
,
"
markdown
"
,
"
md
"
,
"
mdoc
"
,
"
mdown
"
,
"
mdtext
"
,
"
mdtxt
"
,
"
mdwn
"
,
"
mkd
"
,
"
mkdn
"
,
"
ml
"
,
"
mli
"
,
"
php
"
,
"
phtml
"
,
"
pl
"
,
"
pl6
"
,
"
pm
"
,
"
pm6
"
,
"
pod
"
,
"
pp
"
,
"
profile
"
,
"
properties
"
,
"
ps1
"
,
"
psd1
"
,
"
psgi
"
,
"
psm1
"
,
"
py
"
,
"
r
"
,
"
rb
"
,
"
rhistory
"
,
"
rprofile
"
,
"
rs
"
,
"
rt
"
,
"
scss
"
,
"
sh
"
,
"
shtml
"
,
"
sql
"
,
"
svg
"
,
"
svgz
"
,
"
t
"
,
"
ts
"
,
"
txt
"
,
"
vb
"
,
"
wxi
"
,
"
wxl
"
,
"
wxs
"
,
"
xaml
"
,
"
xcodeproj
"
,
"
xcworkspace
"
,
"
xml
"
,
"
yaml
"
,
"
yml
"
,
"
zlogin
"
,
"
zlogout
"
,
"
zprofile
"
,
"
zsh
"
,
"
zshenv
"
,
"
zshrc
"
],
iconFile
:
'
resources/darwin/code_file.icns
'
}],
darwinBundleURLTypes
:
[{
...
...
build/win32/code.iss
浏览文件 @
1ecd2b52
...
...
@@ -164,11 +164,11 @@ Root: HKCR; Subkey: "{#RegValueName}.clojure"; ValueType: string; ValueName: "";
Root: HKCR; Subkey: "{#RegValueName}.clojure\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\resources\app\resources\win32\code_file.ico"; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.clojure\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeBasename}.exe"" ""%1"""; Tasks: associatewithfiles
Root: HKCR; Subkey: ".code\OpenWithProgids"; ValueType: none; ValueName: "{#RegValueName}"; Flags: deletevalue uninsdeletevalue; Tasks: associatewithfiles
Root: HKCR; Subkey: ".code
\OpenWithProgids"; ValueType: string; ValueName: "{#RegValueName}.cod
e"; ValueData: ""; Flags: uninsdeletevalue; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.code"; ValueType: string; ValueName: ""; ValueData: "{cm:SourceFile,Code Workspace}"; Flags: uninsdeletekey; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.code\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\resources\app\resources\win32\code_file.ico"; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.code\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeBasename}.exe"" ""%1"""; Tasks: associatewithfiles
Root: HKCR; Subkey: ".code
-workspace
\OpenWithProgids"; ValueType: none; ValueName: "{#RegValueName}"; Flags: deletevalue uninsdeletevalue; Tasks: associatewithfiles
Root: HKCR; Subkey: ".code
-workspace\OpenWithProgids"; ValueType: string; ValueName: "{#RegValueName}.code-workspac
e"; ValueData: ""; Flags: uninsdeletevalue; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.code
-workspace
"; ValueType: string; ValueName: ""; ValueData: "{cm:SourceFile,Code Workspace}"; Flags: uninsdeletekey; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.code
-workspace
\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\resources\app\resources\win32\code_file.ico"; Tasks: associatewithfiles
Root: HKCR; Subkey: "{#RegValueName}.code
-workspace
\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#ExeBasename}.exe"" ""%1"""; Tasks: associatewithfiles
Root: HKCR; Subkey: ".coffee\OpenWithProgids"; ValueType: none; ValueName: "{#RegValueName}"; Flags: deletevalue uninsdeletevalue; Tasks: associatewithfiles
Root: HKCR; Subkey: ".coffee\OpenWithProgids"; ValueType: string; ValueName: "{#RegValueName}.coffee"; ValueData: ""; Flags: uninsdeletevalue; Tasks: associatewithfiles
...
...
src/vs/platform/windows/common/windows.ts
浏览文件 @
1ecd2b52
...
...
@@ -189,11 +189,17 @@ export interface IOpenFileRequest {
export
interface
IWindowConfiguration
extends
ParsedArgs
,
IOpenFileRequest
{
appRoot
:
string
;
execPath
:
string
;
isInitialStartup
?:
boolean
;
userEnv
:
IProcessEnvironment
;
nodeCachedDataDir
:
string
;
isISOKeyboard
?:
boolean
;
backupPath
?:
string
;
workspace
?:
IWorkspaceIdentifier
;
folderPath
?:
string
;
isISOKeyboard
?:
boolean
;
zoomLevel
?:
number
;
fullscreen
?:
boolean
;
highContrast
?:
boolean
;
...
...
@@ -201,15 +207,7 @@ export interface IWindowConfiguration extends ParsedArgs, IOpenFileRequest {
backgroundColor
?:
string
;
accessibilitySupport
?:
boolean
;
isInitialStartup
?:
boolean
;
perfStartTime
?:
number
;
perfAppReady
?:
number
;
perfWindowLoadTime
?:
number
;
workspace
?:
IWorkspaceIdentifier
;
folderPath
?:
string
;
backupPath
?:
string
;
nodeCachedDataDir
:
string
;
}
\ No newline at end of file
src/vs/platform/workspaces/common/workspaces.ts
浏览文件 @
1ecd2b52
...
...
@@ -16,7 +16,7 @@ import { IEnvironmentService } from "vs/platform/environment/common/environment"
export
const
IWorkspacesMainService
=
createDecorator
<
IWorkspacesMainService
>
(
'
workspacesMainService
'
);
export
const
IWorkspacesService
=
createDecorator
<
IWorkspacesService
>
(
'
workspacesService
'
);
export
const
WORKSPACE_EXTENSION
=
'
code
'
;
export
const
WORKSPACE_EXTENSION
=
'
code
-workspace
'
;
export
interface
IWorkspaceIdentifier
{
id
:
string
;
...
...
src/vs/workbench/electron-browser/main.ts
浏览文件 @
1ecd2b52
...
...
@@ -137,6 +137,7 @@ function createAndInitializeWorkspaceService(configuration: IWindowConfiguration
return
validateWorkspacePath
(
configuration
).
then
(()
=>
{
const
workspaceConfigPath
=
configuration
.
workspace
?
configuration
.
workspace
.
configPath
:
null
;
const
workspaceService
=
(
workspaceConfigPath
||
configuration
.
folderPath
)
?
new
WorkspaceServiceImpl
(
workspaceConfigPath
,
configuration
.
folderPath
,
environmentService
)
:
new
EmptyWorkspaceServiceImpl
(
environmentService
);
return
workspaceService
.
initialize
().
then
(()
=>
workspaceService
,
error
=>
new
EmptyWorkspaceServiceImpl
(
environmentService
));
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录