Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
5de9c9bf
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,发现更多精彩内容 >>
提交
5de9c9bf
编写于
10月 03, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Compile build in strict mode
上级
494395f6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
3 addition
and
85 deletion
+3
-85
build/lib/i18n.js
build/lib/i18n.js
+0
-1
build/lib/i18n.ts
build/lib/i18n.ts
+0
-1
build/lib/standalone.ts
build/lib/standalone.ts
+1
-1
build/monaco/api.js
build/monaco/api.js
+0
-1
build/monaco/api.ts
build/monaco/api.ts
+0
-1
build/tfs/darwin/enqueue.js
build/tfs/darwin/enqueue.js
+0
-34
build/tfs/darwin/enqueue.ts
build/tfs/darwin/enqueue.ts
+0
-44
build/tsconfig.json
build/tsconfig.json
+2
-2
未找到文件。
build/lib/i18n.js
浏览文件 @
5de9c9bf
...
@@ -1054,7 +1054,6 @@ function prepareI18nPackFiles(externalExtensions, resultingTranslationPaths, pse
...
@@ -1054,7 +1054,6 @@ function prepareI18nPackFiles(externalExtensions, resultingTranslationPaths, pse
var
mainPack
=
{
version
:
i18nPackVersion
,
contents
:
{}
};
var
mainPack
=
{
version
:
i18nPackVersion
,
contents
:
{}
};
var
extensionsPacks
=
{};
var
extensionsPacks
=
{};
return
event_stream_1
.
through
(
function
(
xlf
)
{
return
event_stream_1
.
through
(
function
(
xlf
)
{
var
stream
=
this
;
var
project
=
path
.
dirname
(
xlf
.
path
);
var
project
=
path
.
dirname
(
xlf
.
path
);
var
resource
=
path
.
basename
(
xlf
.
path
,
'
.xlf
'
);
var
resource
=
path
.
basename
(
xlf
.
path
,
'
.xlf
'
);
var
contents
=
xlf
.
contents
.
toString
();
var
contents
=
xlf
.
contents
.
toString
();
...
...
build/lib/i18n.ts
浏览文件 @
5de9c9bf
...
@@ -1182,7 +1182,6 @@ export function prepareI18nPackFiles(externalExtensions: Map<string>, resultingT
...
@@ -1182,7 +1182,6 @@ export function prepareI18nPackFiles(externalExtensions: Map<string>, resultingT
let
mainPack
:
I18nPack
=
{
version
:
i18nPackVersion
,
contents
:
{}
};
let
mainPack
:
I18nPack
=
{
version
:
i18nPackVersion
,
contents
:
{}
};
let
extensionsPacks
:
Map
<
I18nPack
>
=
{};
let
extensionsPacks
:
Map
<
I18nPack
>
=
{};
return
through
(
function
(
this
:
ThroughStream
,
xlf
:
File
)
{
return
through
(
function
(
this
:
ThroughStream
,
xlf
:
File
)
{
let
stream
=
this
;
let
project
=
path
.
dirname
(
xlf
.
path
);
let
project
=
path
.
dirname
(
xlf
.
path
);
let
resource
=
path
.
basename
(
xlf
.
path
,
'
.xlf
'
);
let
resource
=
path
.
basename
(
xlf
.
path
,
'
.xlf
'
);
let
contents
=
xlf
.
contents
.
toString
();
let
contents
=
xlf
.
contents
.
toString
();
...
...
build/lib/standalone.ts
浏览文件 @
5de9c9bf
...
@@ -47,7 +47,7 @@ export function extractEditor(options: tss.ITreeShakingOptions & { destRoot: str
...
@@ -47,7 +47,7 @@ export function extractEditor(options: tss.ITreeShakingOptions & { destRoot: str
const
dstPath
=
path
.
join
(
options
.
destRoot
,
fileName
);
const
dstPath
=
path
.
join
(
options
.
destRoot
,
fileName
);
writeFile
(
dstPath
,
fs
.
readFileSync
(
srcPath
));
writeFile
(
dstPath
,
fs
.
readFileSync
(
srcPath
));
};
};
const
writeOutputFile
=
(
fileName
:
string
,
contents
:
string
)
=>
{
const
writeOutputFile
=
(
fileName
:
string
,
contents
:
string
|
Buffer
)
=>
{
writeFile
(
path
.
join
(
options
.
destRoot
,
fileName
),
contents
);
writeFile
(
path
.
join
(
options
.
destRoot
,
fileName
),
contents
);
};
};
for
(
let
fileName
in
result
)
{
for
(
let
fileName
in
result
)
{
...
...
build/monaco/api.js
浏览文件 @
5de9c9bf
...
@@ -447,7 +447,6 @@ function execute() {
...
@@ -447,7 +447,6 @@ function execute() {
var
languageService
=
ts
.
createLanguageService
(
new
TypeScriptLanguageServiceHost
({},
SRC_FILES
,
{}));
var
languageService
=
ts
.
createLanguageService
(
new
TypeScriptLanguageServiceHost
({},
SRC_FILES
,
{}));
var
t1
=
Date
.
now
();
var
t1
=
Date
.
now
();
Object
.
keys
(
SRC_FILES
).
forEach
(
function
(
fileName
)
{
Object
.
keys
(
SRC_FILES
).
forEach
(
function
(
fileName
)
{
var
t
=
Date
.
now
();
var
emitOutput
=
languageService
.
getEmitOutput
(
fileName
,
true
);
var
emitOutput
=
languageService
.
getEmitOutput
(
fileName
,
true
);
OUTPUT_FILES
[
SRC_FILE_TO_EXPECTED_NAME
[
fileName
]]
=
emitOutput
.
outputFiles
[
0
].
text
;
OUTPUT_FILES
[
SRC_FILE_TO_EXPECTED_NAME
[
fileName
]]
=
emitOutput
.
outputFiles
[
0
].
text
;
// console.log(`Generating .d.ts for ${fileName} took ${Date.now() - t} ms`);
// console.log(`Generating .d.ts for ${fileName} took ${Date.now() - t} ms`);
...
...
build/monaco/api.ts
浏览文件 @
5de9c9bf
...
@@ -534,7 +534,6 @@ export function execute(): IMonacoDeclarationResult {
...
@@ -534,7 +534,6 @@ export function execute(): IMonacoDeclarationResult {
var
t1
=
Date
.
now
();
var
t1
=
Date
.
now
();
Object
.
keys
(
SRC_FILES
).
forEach
((
fileName
)
=>
{
Object
.
keys
(
SRC_FILES
).
forEach
((
fileName
)
=>
{
var
t
=
Date
.
now
();
const
emitOutput
=
languageService
.
getEmitOutput
(
fileName
,
true
);
const
emitOutput
=
languageService
.
getEmitOutput
(
fileName
,
true
);
OUTPUT_FILES
[
SRC_FILE_TO_EXPECTED_NAME
[
fileName
]]
=
emitOutput
.
outputFiles
[
0
].
text
;
OUTPUT_FILES
[
SRC_FILE_TO_EXPECTED_NAME
[
fileName
]]
=
emitOutput
.
outputFiles
[
0
].
text
;
// console.log(`Generating .d.ts for ${fileName} took ${Date.now() - t} ms`);
// console.log(`Generating .d.ts for ${fileName} took ${Date.now() - t} ms`);
...
...
build/tfs/darwin/enqueue.js
浏览文件 @
5de9c9bf
...
@@ -40,7 +40,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
...
@@ -40,7 +40,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
};
};
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
var
child_process_1
=
require
(
"
child_process
"
);
var
child_process_1
=
require
(
"
child_process
"
);
var
documentdb_1
=
require
(
"
documentdb
"
);
var
azure
=
require
(
"
azure-storage
"
);
var
azure
=
require
(
"
azure-storage
"
);
function
queueSigningRequest
(
quality
,
commit
)
{
function
queueSigningRequest
(
quality
,
commit
)
{
var
retryOperations
=
new
azure
.
ExponentialRetryPolicyFilter
();
var
retryOperations
=
new
azure
.
ExponentialRetryPolicyFilter
();
...
@@ -51,39 +50,6 @@ function queueSigningRequest(quality, commit) {
...
@@ -51,39 +50,6 @@ function queueSigningRequest(quality, commit) {
var
message
=
quality
+
"
/
"
+
commit
;
var
message
=
quality
+
"
/
"
+
commit
;
return
new
Promise
(
function
(
c
,
e
)
{
return
queueSvc
.
createMessage
(
'
sign-darwin
'
,
message
,
function
(
err
)
{
return
err
?
e
(
err
)
:
c
();
});
});
return
new
Promise
(
function
(
c
,
e
)
{
return
queueSvc
.
createMessage
(
'
sign-darwin
'
,
message
,
function
(
err
)
{
return
err
?
e
(
err
)
:
c
();
});
});
}
}
function
isBuildSigned
(
quality
,
commit
)
{
var
client
=
new
documentdb_1
.
DocumentClient
(
process
.
env
[
'
AZURE_DOCUMENTDB_ENDPOINT
'
],
{
masterKey
:
process
.
env
[
'
AZURE_DOCUMENTDB_MASTERKEY
'
]
});
var
collection
=
'
dbs/builds/colls/
'
+
quality
;
var
updateQuery
=
{
query
:
'
SELECT TOP 1 * FROM c WHERE c.id = @id
'
,
parameters
:
[{
name
:
'
@id
'
,
value
:
commit
}]
};
return
new
Promise
(
function
(
c
,
e
)
{
client
.
queryDocuments
(
collection
,
updateQuery
).
toArray
(
function
(
err
,
results
)
{
if
(
err
)
{
return
e
(
err
);
}
if
(
results
.
length
!==
1
)
{
return
c
(
false
);
}
var
release
=
results
[
0
];
var
assets
=
release
.
assets
;
var
isSigned
=
assets
.
some
(
function
(
a
)
{
return
a
.
platform
===
'
darwin
'
&&
a
.
type
===
'
archive
'
;
});
c
(
isSigned
);
});
});
}
// async function waitForSignedBuild(quality: string, commit: string): Promise<void> {
// let retries = 0;
// while (retries < 180) {
// if (await isBuildSigned(quality, commit)) {
// return;
// }
// await new Promise<void>(c => setTimeout(c, 10000));
// retries++;
// }
// throw new Error('Timed out waiting for signed build');
// }
function
main
(
quality
)
{
function
main
(
quality
)
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
commit
;
var
commit
;
...
...
build/tfs/darwin/enqueue.ts
浏览文件 @
5de9c9bf
...
@@ -6,16 +6,8 @@
...
@@ -6,16 +6,8 @@
'
use strict
'
;
'
use strict
'
;
import
{
execSync
}
from
'
child_process
'
;
import
{
execSync
}
from
'
child_process
'
;
import
{
DocumentClient
}
from
'
documentdb
'
;
import
*
as
azure
from
'
azure-storage
'
;
import
*
as
azure
from
'
azure-storage
'
;
interface
Asset
{
platform
:
string
;
type
:
string
;
url
:
string
;
mooncakeUrl
:
string
;
hash
:
string
;
}
function
queueSigningRequest
(
quality
:
string
,
commit
:
string
):
Promise
<
void
>
{
function
queueSigningRequest
(
quality
:
string
,
commit
:
string
):
Promise
<
void
>
{
const
retryOperations
=
new
azure
.
ExponentialRetryPolicyFilter
();
const
retryOperations
=
new
azure
.
ExponentialRetryPolicyFilter
();
...
@@ -30,42 +22,6 @@ function queueSigningRequest(quality: string, commit: string): Promise<void> {
...
@@ -30,42 +22,6 @@ function queueSigningRequest(quality: string, commit: string): Promise<void> {
return
new
Promise
<
void
>
((
c
,
e
)
=>
queueSvc
.
createMessage
(
'
sign-darwin
'
,
message
,
err
=>
err
?
e
(
err
)
:
c
()));
return
new
Promise
<
void
>
((
c
,
e
)
=>
queueSvc
.
createMessage
(
'
sign-darwin
'
,
message
,
err
=>
err
?
e
(
err
)
:
c
()));
}
}
function
isBuildSigned
(
quality
:
string
,
commit
:
string
):
Promise
<
boolean
>
{
const
client
=
new
DocumentClient
(
process
.
env
[
'
AZURE_DOCUMENTDB_ENDPOINT
'
]
!
,
{
masterKey
:
process
.
env
[
'
AZURE_DOCUMENTDB_MASTERKEY
'
]
});
const
collection
=
'
dbs/builds/colls/
'
+
quality
;
const
updateQuery
=
{
query
:
'
SELECT TOP 1 * FROM c WHERE c.id = @id
'
,
parameters
:
[{
name
:
'
@id
'
,
value
:
commit
}]
};
return
new
Promise
<
boolean
>
((
c
,
e
)
=>
{
client
.
queryDocuments
(
collection
,
updateQuery
).
toArray
((
err
,
results
)
=>
{
if
(
err
)
{
return
e
(
err
);
}
if
(
results
.
length
!==
1
)
{
return
c
(
false
);
}
const
[
release
]
=
results
;
const
assets
:
Asset
[]
=
release
.
assets
;
const
isSigned
=
assets
.
some
(
a
=>
a
.
platform
===
'
darwin
'
&&
a
.
type
===
'
archive
'
);
c
(
isSigned
);
});
});
}
// async function waitForSignedBuild(quality: string, commit: string): Promise<void> {
// let retries = 0;
// while (retries < 180) {
// if (await isBuildSigned(quality, commit)) {
// return;
// }
// await new Promise<void>(c => setTimeout(c, 10000));
// retries++;
// }
// throw new Error('Timed out waiting for signed build');
// }
async
function
main
(
quality
:
string
):
Promise
<
void
>
{
async
function
main
(
quality
:
string
):
Promise
<
void
>
{
const
commit
=
execSync
(
'
git rev-parse HEAD
'
,
{
encoding
:
'
utf8
'
}).
trim
();
const
commit
=
execSync
(
'
git rev-parse HEAD
'
,
{
encoding
:
'
utf8
'
}).
trim
();
...
...
build/tsconfig.json
浏览文件 @
5de9c9bf
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
"compilerOptions"
:
{
"compilerOptions"
:
{
"target"
:
"es5"
,
"target"
:
"es5"
,
"module"
:
"commonjs"
,
"module"
:
"commonjs"
,
"noImplicitAny"
:
true
,
"removeComments"
:
false
,
"removeComments"
:
false
,
"preserveConstEnums"
:
true
,
"preserveConstEnums"
:
true
,
"sourceMap"
:
false
,
"sourceMap"
:
false
,
...
@@ -13,7 +12,8 @@
...
@@ -13,7 +12,8 @@
//
type
checking
so
that
JavaScript
file
are
not
transpiled
//
type
checking
so
that
JavaScript
file
are
not
transpiled
"allowJs"
:
true
,
"allowJs"
:
true
,
"checkJs"
:
true
,
"checkJs"
:
true
,
"strictNullChecks"
:
true
"strict"
:
true
,
"noUnusedLocals"
:
true
},
},
"exclude"
:
[
"exclude"
:
[
"node_modules/**"
"node_modules/**"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录