Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
1736f671
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,发现更多精彩内容 >>
提交
1736f671
编写于
11月 25, 2015
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adopt latest loader
上级
4ea2714d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
55 addition
and
12 deletion
+55
-12
src/vs/css.js
src/vs/css.js
+14
-4
src/vs/loader.js
src/vs/loader.js
+17
-6
src/vs/nls.js
src/vs/nls.js
+11
-0
src/vs/text.js
src/vs/text.js
+13
-2
未找到文件。
src/vs/css.js
浏览文件 @
1736f671
...
...
@@ -2,14 +2,24 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
* Please make sure to make edits in the .ts file at https://github.com/Microsoft/vscode-loader/
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*--------------------------------------------------------------------------------------------*/
/// <reference path="declares.ts" />
/// <reference path="loader.ts" />
'
use strict
'
;
var
__extends
=
(
this
&&
this
.
__extends
)
||
function
(
d
,
b
)
{
for
(
var
p
in
b
)
if
(
b
.
hasOwnProperty
(
p
))
d
[
p
]
=
b
[
p
];
function
__
()
{
this
.
constructor
=
d
;
}
__
.
prototype
=
b
.
prototype
;
d
.
prototype
=
new
__
();
d
.
prototype
=
b
===
null
?
Object
.
create
(
b
)
:
(
__
.
prototype
=
b
.
prototype
,
new
__
());
};
var
_cssPluginGlobal
=
this
;
var
CSSLoaderPlugin
;
...
...
@@ -405,8 +415,8 @@ var CSSLoaderPlugin;
CSSLoaderPlugin
.
Utilities
=
Utilities
;
(
function
()
{
var
cssLoader
=
null
;
var
is
AtomShell
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
);
if
(
typeof
process
!==
'
undefined
'
&&
process
.
versions
&&
!!
process
.
versions
.
node
&&
!
is
AtomShell
)
{
var
is
Electron
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
);
if
(
typeof
process
!==
'
undefined
'
&&
process
.
versions
&&
!!
process
.
versions
.
node
&&
!
is
Electron
)
{
cssLoader
=
new
NodeCSSLoader
();
}
else
if
(
typeof
navigator
!==
'
undefined
'
&&
navigator
.
userAgent
.
indexOf
(
'
MSIE 9
'
)
>=
0
)
{
...
...
src/vs/loader.js
浏览文件 @
1736f671
...
...
@@ -2,6 +2,17 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
* Please make sure to make edits in the .ts file at https://github.com/Microsoft/vscode-loader/
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*--------------------------------------------------------------------------------------------*/
/// <reference path="declares.ts" />
'
use strict
'
;
// Limitation: To load jquery through the loader, always require 'jquery' and add a path for it in the loader configuration
...
...
@@ -1717,7 +1728,7 @@ var AMDLoader;
recorder
.
record
(
LoaderEventType
.
NodeBeginEvaluatingScript
,
scriptSrc
);
var
vmScriptSrc
=
_this
.
_path
.
normalize
(
scriptSrc
);
// Make the script src friendly towards electron
if
(
is
Atom
Renderer
)
{
if
(
is
Electron
Renderer
)
{
var
driveLetterMatch
=
vmScriptSrc
.
match
(
/^
([
a-z
])\:(
.*
)
/
);
if
(
driveLetterMatch
)
{
vmScriptSrc
=
driveLetterMatch
[
1
].
toUpperCase
()
+
'
:
'
+
driveLetterMatch
[
2
];
...
...
@@ -1825,11 +1836,11 @@ var AMDLoader;
};
return
RequireFunc
;
})();
var
global
=
_amdLoaderGlobal
,
hasPerformanceNow
=
(
global
.
performance
&&
typeof
global
.
performance
.
now
===
'
function
'
),
isWebWorker
,
is
AtomRenderer
,
isAtom
Main
,
isNode
,
scriptLoader
,
moduleManager
,
loaderAvailableTimestamp
;
var
global
=
_amdLoaderGlobal
,
hasPerformanceNow
=
(
global
.
performance
&&
typeof
global
.
performance
.
now
===
'
function
'
),
isWebWorker
,
is
ElectronRenderer
,
isElectron
Main
,
isNode
,
scriptLoader
,
moduleManager
,
loaderAvailableTimestamp
;
function
initVars
()
{
isWebWorker
=
(
typeof
global
.
importScripts
===
'
function
'
);
is
Atom
Renderer
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
&&
process
.
type
===
'
renderer
'
);
is
Atom
Main
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
&&
process
.
type
===
'
browser
'
);
is
Electron
Renderer
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
&&
process
.
type
===
'
renderer
'
);
is
Electron
Main
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
&&
process
.
type
===
'
browser
'
);
isNode
=
(
typeof
module
!==
'
undefined
'
&&
!!
module
.
exports
);
if
(
isWebWorker
)
{
scriptLoader
=
new
OnlyOnceScriptLoader
(
new
WorkerScriptLoader
());
...
...
@@ -1893,7 +1904,7 @@ var AMDLoader;
global
.
nodeRequire
=
nodeRequire
;
RequireFunc
.
nodeRequire
=
nodeRequire
;
}
if
(
isNode
&&
!
is
Atom
Renderer
)
{
if
(
isNode
&&
!
is
Electron
Renderer
)
{
module
.
exports
=
RequireFunc
;
// These two defs are fore the local closure defined in node in the case that the loader is concatenated
define
=
function
()
{
...
...
@@ -1906,7 +1917,7 @@ var AMDLoader;
if
(
typeof
global
.
require
!==
'
undefined
'
&&
typeof
global
.
require
!==
'
function
'
)
{
RequireFunc
.
config
(
global
.
require
);
}
if
(
!
is
Atom
Renderer
)
{
if
(
!
is
Electron
Renderer
)
{
global
.
define
=
DefineFunc
;
}
else
{
...
...
src/vs/nls.js
浏览文件 @
1736f671
...
...
@@ -2,6 +2,17 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
* Please make sure to make edits in the .ts file at https://github.com/Microsoft/vscode-loader/
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*--------------------------------------------------------------------------------------------*/
/// <reference path="declares.ts" />
/// <reference path="loader.ts" />
'
use strict
'
;
...
...
src/vs/text.js
浏览文件 @
1736f671
...
...
@@ -2,6 +2,17 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
* Please make sure to make edits in the .ts file at https://github.com/Microsoft/vscode-loader/
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*--------------------------------------------------------------------------------------------*/
/// <reference path="declares.ts" />
/// <reference path="loader.ts" />
'
use strict
'
;
...
...
@@ -164,8 +175,8 @@ var TextLoaderPlugin;
TextLoaderPlugin
.
Utilities
=
Utilities
;
(
function
()
{
var
textLoader
=
null
;
var
is
AtomShell
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
);
if
(
typeof
process
!==
'
undefined
'
&&
process
.
versions
&&
!!
process
.
versions
.
node
&&
!
is
AtomShell
)
{
var
is
Electron
=
(
typeof
process
!==
'
undefined
'
&&
typeof
process
.
versions
!==
'
undefined
'
&&
typeof
process
.
versions
[
'
electron
'
]
!==
'
undefined
'
);
if
(
typeof
process
!==
'
undefined
'
&&
process
.
versions
&&
!!
process
.
versions
.
node
&&
!
is
Electron
)
{
textLoader
=
new
NodeTextLoader
();
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录