Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
494395f6
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,发现更多精彩内容 >>
提交
494395f6
编写于
10月 03, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adding correct typings for event-stream this values
上级
86fbc62c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
31 deletion
+13
-31
build/lib/asar.ts
build/lib/asar.ts
+2
-2
build/lib/compilation.ts
build/lib/compilation.ts
+1
-1
build/lib/extensions.js
build/lib/extensions.js
+0
-5
build/lib/extensions.ts
build/lib/extensions.ts
+2
-2
build/lib/i18n.js
build/lib/i18n.js
+0
-13
build/lib/i18n.ts
build/lib/i18n.ts
+1
-1
build/lib/typings/event-stream.d.ts
build/lib/typings/event-stream.d.ts
+7
-7
未找到文件。
build/lib/asar.ts
浏览文件 @
494395f6
...
...
@@ -64,7 +64,7 @@ export function createAsar(folderPath: string, unpackGlobs: string[], destFilena
filesystem
.
insertFile
(
relativePath
,
shouldUnpack
,
{
stat
:
stat
},
{},
onFileInserted
);
};
return
es
.
through
(
function
(
this
:
any
,
file
)
{
return
es
.
through
(
function
(
file
)
{
if
(
file
.
stat
.
isDirectory
())
{
return
;
}
...
...
@@ -88,7 +88,7 @@ export function createAsar(folderPath: string, unpackGlobs: string[], destFilena
// The file goes inside of xx.asar
out
.
push
(
file
.
contents
);
}
},
function
(
this
:
any
)
{
},
function
()
{
let
finish
=
()
=>
{
{
...
...
build/lib/compilation.ts
浏览文件 @
494395f6
...
...
@@ -175,7 +175,7 @@ function monacodtsTask(out: string, isWatch: boolean): NodeJS.ReadWriteStream {
}));
}
resultStream
=
es
.
through
(
function
(
this
:
any
,
data
)
{
resultStream
=
es
.
through
(
function
(
data
)
{
const
filePath
=
path
.
normalize
(
path
.
resolve
(
basePath
,
data
.
relative
));
if
(
neededFiles
[
filePath
])
{
setInputFile
(
filePath
,
data
.
contents
.
toString
());
...
...
build/lib/extensions.js
浏览文件 @
494395f6
...
...
@@ -150,11 +150,6 @@ function fromLocalNormal(extensionPath) {
.
catch
(
function
(
err
)
{
return
result
.
emit
(
'
error
'
,
err
);
});
return
result
.
pipe
(
stats_1
.
createStatsStream
(
path
.
basename
(
extensionPath
)));
}
function
error
(
err
)
{
var
result
=
es
.
through
();
setTimeout
(
function
()
{
return
result
.
emit
(
'
error
'
,
err
);
});
return
result
;
}
var
baseHeaders
=
{
'
X-Market-Client-Id
'
:
'
VSCode Build
'
,
'
User-Agent
'
:
'
VSCode Build
'
,
...
...
build/lib/extensions.ts
浏览文件 @
494395f6
...
...
@@ -110,12 +110,12 @@ function fromLocalWebpack(extensionPath: string, sourceMappingURLBase: string |
let
relativeOutputPath
=
path
.
relative
(
extensionPath
,
webpackConfig
.
output
.
path
);
return
webpackGulp
(
webpackConfig
,
webpack
,
webpackDone
)
.
pipe
(
es
.
through
(
function
(
this
:
any
,
data
)
{
.
pipe
(
es
.
through
(
function
(
data
)
{
data
.
stat
=
data
.
stat
||
{};
data
.
base
=
extensionPath
;
this
.
emit
(
'
data
'
,
data
);
}))
.
pipe
(
es
.
through
(
function
(
this
:
any
,
data
:
File
)
{
.
pipe
(
es
.
through
(
function
(
data
:
File
)
{
// source map handling:
// * rewrite sourceMappingURL
// * save to disk so that upload-task picks this up
...
...
build/lib/i18n.js
浏览文件 @
494395f6
...
...
@@ -79,20 +79,9 @@ var PackageJsonFormat;
}
PackageJsonFormat
.
is
=
is
;
})(
PackageJsonFormat
||
(
PackageJsonFormat
=
{}));
var
ModuleJsonFormat
;
(
function
(
ModuleJsonFormat
)
{
function
is
(
value
)
{
var
candidate
=
value
;
return
Is
.
defined
(
candidate
)
&&
Is
.
array
(
candidate
.
messages
)
&&
candidate
.
messages
.
every
(
function
(
message
)
{
return
Is
.
string
(
message
);
})
&&
Is
.
array
(
candidate
.
keys
)
&&
candidate
.
keys
.
every
(
function
(
key
)
{
return
Is
.
string
(
key
)
||
LocalizeInfo
.
is
(
key
);
});
}
ModuleJsonFormat
.
is
=
is
;
})(
ModuleJsonFormat
||
(
ModuleJsonFormat
=
{}));
var
Line
=
/** @class */
(
function
()
{
function
Line
(
indent
)
{
if
(
indent
===
void
0
)
{
indent
=
0
;
}
this
.
indent
=
indent
;
this
.
buffer
=
[];
if
(
indent
>
0
)
{
this
.
buffer
.
push
(
new
Array
(
indent
+
1
).
join
(
'
'
));
...
...
@@ -375,7 +364,6 @@ function processCoreBundleFormat(fileHeader, languages, json, emitter) {
var
messageSection
=
json
.
messages
;
var
bundleSection
=
json
.
bundles
;
var
statistics
=
Object
.
create
(
null
);
var
total
=
0
;
var
defaultMessages
=
Object
.
create
(
null
);
var
modules
=
Object
.
keys
(
keysSection
);
modules
.
forEach
(
function
(
module
)
{
...
...
@@ -388,7 +376,6 @@ function processCoreBundleFormat(fileHeader, languages, json, emitter) {
var
messageMap
=
Object
.
create
(
null
);
defaultMessages
[
module
]
=
messageMap
;
keys
.
map
(
function
(
key
,
i
)
{
total
++
;
if
(
typeof
key
===
'
string
'
)
{
messageMap
[
key
]
=
messages
[
i
];
}
...
...
build/lib/i18n.ts
浏览文件 @
494395f6
...
...
@@ -1064,7 +1064,7 @@ function pullXlfFiles(apiHostname: string, username: string, password: string, l
called
=
true
;
const
stream
=
this
;
resources
.
map
(
function
(
resource
)
{
retrieveResource
(
language
,
resource
,
apiHostname
,
credentials
).
then
((
file
:
File
)
=>
{
retrieveResource
(
language
,
resource
,
apiHostname
,
credentials
).
then
((
file
:
File
|
null
)
=>
{
if
(
file
)
{
stream
.
emit
(
'
data
'
,
file
);
}
...
...
build/lib/typings/event-stream.d.ts
浏览文件 @
494395f6
declare
module
"
event-stream
"
{
import
{
Stream
}
from
'
stream
'
;
import
{
ThroughStream
as
_ThroughStream
}
from
'
through
'
;
import
{
ThroughStream
as
_ThroughStream
}
from
'
through
'
;
import
*
as
File
from
'
vinyl
'
;
export
interface
ThroughStream
extends
_ThroughStream
{
...
...
@@ -14,14 +14,14 @@ declare module "event-stream" {
function
concat
(...
stream
:
Stream
[]):
ThroughStream
;
function
duplex
(
istream
:
Stream
,
ostream
:
Stream
):
ThroughStream
;
function
through
(
write
?:
(
data
:
any
)
=>
void
,
end
?:
(
)
=>
void
,
opts
?:
{
autoDestroy
:
boolean
;
}):
ThroughStream
;
function
through
(
write
?:
(
this
:
ThroughStream
,
data
:
any
)
=>
void
,
end
?:
(
this
:
ThroughStream
)
=>
void
,
opts
?:
{
autoDestroy
:
boolean
;
}):
ThroughStream
;
function
readArray
<
T
>
(
array
:
T
[]):
ThroughStream
;
function
writeArray
<
T
>
(
cb
:
(
err
:
Error
,
array
:
T
[])
=>
void
):
ThroughStream
;
function
writeArray
<
T
>
(
cb
:
(
err
:
Error
,
array
:
T
[])
=>
void
):
ThroughStream
;
function
mapSync
<
I
,
O
>
(
cb
:
(
data
:
I
)
=>
O
):
ThroughStream
;
function
map
<
I
,
O
>
(
cb
:
(
data
:
I
,
cb
:(
err
?:
Error
,
data
?:
O
)
=>
void
)
=>
O
):
ThroughStream
;
function
mapSync
<
I
,
O
>
(
cb
:
(
data
:
I
)
=>
O
):
ThroughStream
;
function
map
<
I
,
O
>
(
cb
:
(
data
:
I
,
cb
:
(
err
?:
Error
,
data
?:
O
)
=>
void
)
=>
O
):
ThroughStream
;
function
readable
(
asyncFunction
:
Function
):
any
;
function
readable
(
asyncFunction
:
(
this
:
ThroughStream
,
...
args
:
any
[])
=>
any
):
any
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录