Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
dbd76d98
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,发现更多精彩内容 >>
提交
dbd76d98
编写于
2月 16, 2018
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adopt latest loader (which is snapshot-friendly)
上级
6831fb4a
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
225 addition
and
204 deletion
+225
-204
src/vs/code/electron-browser/issue/issueReporter.js
src/vs/code/electron-browser/issue/issueReporter.js
+2
-0
src/vs/code/electron-browser/sharedProcess/sharedProcess.js
src/vs/code/electron-browser/sharedProcess/sharedProcess.js
+2
-0
src/vs/css.js
src/vs/css.js
+3
-10
src/vs/loader.js
src/vs/loader.js
+197
-180
src/vs/nls.js
src/vs/nls.js
+19
-14
src/vs/workbench/electron-browser/bootstrap/index.js
src/vs/workbench/electron-browser/bootstrap/index.js
+2
-0
未找到文件。
src/vs/code/electron-browser/issue/issueReporter.js
浏览文件 @
dbd76d98
...
...
@@ -146,6 +146,8 @@ function main() {
// In the bundled version the nls plugin is packaged with the loader so the NLS Plugins
// loads as soon as the loader loads. To be able to have pseudo translation
createScript
(
rootUrl
+
'
/vs/loader.js
'
,
function
()
{
var
define
=
global
.
define
;
global
.
define
=
undefined
;
define
(
'
fs
'
,
[
'
original-fs
'
],
function
(
originalFS
)
{
return
originalFS
;
});
// replace the patched electron fs with the original node fs for all AMD code
window
.
MonacoEnvironment
=
{};
...
...
src/vs/code/electron-browser/sharedProcess/sharedProcess.js
浏览文件 @
dbd76d98
...
...
@@ -131,6 +131,8 @@ function main() {
// In the bundled version the nls plugin is packaged with the loader so the NLS Plugins
// loads as soon as the loader loads. To be able to have pseudo translation
createScript
(
rootUrl
+
'
/vs/loader.js
'
,
function
()
{
var
define
=
global
.
define
;
global
.
define
=
undefined
;
define
(
'
fs
'
,
[
'
original-fs
'
],
function
(
originalFS
)
{
return
originalFS
;
});
// replace the patched electron fs with the original node fs for all AMD code
window
.
MonacoEnvironment
=
{};
...
...
src/vs/css.js
浏览文件 @
dbd76d98
...
...
@@ -20,7 +20,7 @@ var CSSLoaderPlugin;
* Known issue:
* - In IE there is no way to know if the CSS file loaded successfully or not.
*/
var
BrowserCSSLoader
=
(
function
()
{
var
BrowserCSSLoader
=
/** @class */
(
function
()
{
function
BrowserCSSLoader
()
{
this
.
_pendingLoads
=
0
;
}
...
...
@@ -93,7 +93,7 @@ var CSSLoaderPlugin;
return
BrowserCSSLoader
;
}());
// ------------------------------ Finally, the plugin
var
CSSPlugin
=
(
function
()
{
var
CSSPlugin
=
/** @class */
(
function
()
{
function
CSSPlugin
()
{
this
.
_cssLoader
=
new
BrowserCSSLoader
();
}
...
...
@@ -110,12 +110,5 @@ var CSSLoaderPlugin;
return
CSSPlugin
;
}());
CSSLoaderPlugin
.
CSSPlugin
=
CSSPlugin
;
function
init
()
{
define
(
'
vs/css
'
,
new
CSSPlugin
());
}
CSSLoaderPlugin
.
init
=
init
;
;
if
(
typeof
doNotInitLoader
===
'
undefined
'
)
{
init
();
}
})(
CSSLoaderPlugin
||
(
CSSLoaderPlugin
=
{}));
src/vs/loader.js
浏览文件 @
dbd76d98
此差异已折叠。
点击以展开。
src/vs/nls.js
浏览文件 @
dbd76d98
...
...
@@ -17,13 +17,24 @@
var
NLSLoaderPlugin
;
(
function
(
NLSLoaderPlugin
)
{
var
Environment
=
/** @class */
(
function
()
{
function
Environment
(
isPseudo
)
{
this
.
isPseudo
=
isPseudo
;
//
function
Environment
()
{
this
.
_detected
=
false
;
this
.
_isPseudo
=
false
;
}
Object
.
defineProperty
(
Environment
.
prototype
,
"
isPseudo
"
,
{
get
:
function
()
{
this
.
_detect
();
return
this
.
_isPseudo
;
},
enumerable
:
true
,
configurable
:
true
});
Environment
.
prototype
.
_detect
=
function
()
{
if
(
this
.
_detected
)
{
return
;
}
Environment
.
detect
=
function
()
{
var
isPseudo
=
(
typeof
document
!==
'
undefined
'
&&
document
.
location
&&
document
.
location
.
hash
.
indexOf
(
'
pseudo=true
'
)
>=
0
);
return
new
Environment
(
isPseudo
);
this
.
_detected
=
true
;
this
.
_isPseudo
=
(
typeof
document
!==
'
undefined
'
&&
document
.
location
&&
document
.
location
.
hash
.
indexOf
(
'
pseudo=true
'
)
>=
0
);
};
return
Environment
;
}());
...
...
@@ -79,7 +90,7 @@ var NLSLoaderPlugin;
};
}
NLSPlugin
.
prototype
.
setPseudoTranslation
=
function
(
value
)
{
this
.
_env
=
new
Environment
(
value
)
;
this
.
_env
.
_isPseudo
=
value
;
};
NLSPlugin
.
prototype
.
create
=
function
(
key
,
data
)
{
return
{
...
...
@@ -130,11 +141,5 @@ var NLSLoaderPlugin;
return
NLSPlugin
;
}());
NLSLoaderPlugin
.
NLSPlugin
=
NLSPlugin
;
function
init
()
{
define
(
'
vs/nls
'
,
new
NLSPlugin
(
Environment
.
detect
()));
}
NLSLoaderPlugin
.
init
=
init
;
if
(
typeof
doNotInitLoader
===
'
undefined
'
)
{
init
();
}
define
(
'
vs/nls
'
,
new
NLSPlugin
(
new
Environment
()));
})(
NLSLoaderPlugin
||
(
NLSLoaderPlugin
=
{}));
src/vs/workbench/electron-browser/bootstrap/index.js
浏览文件 @
dbd76d98
...
...
@@ -205,6 +205,8 @@ function main() {
const
loaderFilename
=
configuration
.
appRoot
+
'
/out/vs/loader.js
'
;
const
loaderSource
=
require
(
'
fs
'
).
readFileSync
(
loaderFilename
);
require
(
'
vm
'
).
runInThisContext
(
loaderSource
,
{
filename
:
loaderFilename
});
var
define
=
global
.
define
;
global
.
define
=
undefined
;
window
.
nodeRequire
=
require
.
__$__nodeRequire
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录