feat: 添加code-spell-checker插件
This commit is contained in:
parent
ba71a09887
commit
ea389da7bb
@ -25,7 +25,8 @@
|
|||||||
"Gruntfuggly.todo-tree",
|
"Gruntfuggly.todo-tree",
|
||||||
"MS-CEINTL.vscode-language-pack-zh-hans",
|
"MS-CEINTL.vscode-language-pack-zh-hans",
|
||||||
"stylelint.vscode-stylelint",
|
"stylelint.vscode-stylelint",
|
||||||
"GitHub.copilot"
|
"GitHub.copilot",
|
||||||
|
"streetsidesoftware.code-spell-checker"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,14 +17,14 @@ const getFullPipelineList = async (project: ProjectRecordModel) => {
|
|||||||
// 获取pipeline列表并保存
|
// 获取pipeline列表并保存
|
||||||
const fullPipelineList: GitlabPipeline[] = [];
|
const fullPipelineList: GitlabPipeline[] = [];
|
||||||
let page = 1;
|
let page = 1;
|
||||||
let hasBeforLatestTime = false;
|
let hasBeforeLatestTime = false;
|
||||||
while (!hasBeforLatestTime) {
|
while (!hasBeforeLatestTime) {
|
||||||
const pipelines = await service.fetchPipelines(project.project_id, page++);
|
const pipelines = await service.fetchPipelines(project.project_id, page++);
|
||||||
// 如果当前页没有数据,则直接跳出
|
// 如果当前页没有数据,则直接跳出
|
||||||
if (pipelines.length === 0) break;
|
if (pipelines.length === 0) break;
|
||||||
pipelines.forEach((pipeline) => {
|
pipelines.forEach((pipeline) => {
|
||||||
if (moment(pipeline.created_at).isSameOrBefore(latestTime)) {
|
if (moment(pipeline.created_at).isSameOrBefore(latestTime)) {
|
||||||
hasBeforLatestTime = true;
|
hasBeforeLatestTime = true;
|
||||||
} else {
|
} else {
|
||||||
fullPipelineList.push(pipeline);
|
fullPipelineList.push(pipeline);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user