mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Final fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include: ['octref/devops-publish-types', 'refs/tags/*']
|
||||
include: ['refs/tags/*']
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
|
||||
@@ -39,12 +39,12 @@ function updateDTSFile(outPath: string, tag: string) {
|
||||
function getNewFileContent(content: string, tag: string) {
|
||||
const oldheader = [
|
||||
`/*---------------------------------------------------------------------------------------------`,
|
||||
`* Copyright (c) Microsoft Corporation. All rights reserved.`,
|
||||
`* Licensed under the MIT License. See License.txt in the project root for license information.`,
|
||||
`*--------------------------------------------------------------------------------------------*/`
|
||||
` * Copyright (c) Microsoft Corporation. All rights reserved.`,
|
||||
` * Licensed under the MIT License. See License.txt in the project root for license information.`,
|
||||
` *--------------------------------------------------------------------------------------------*/`
|
||||
].join('\n');
|
||||
|
||||
return getNewFileHeader(tag) + content.slice(oldheader.length + 2);
|
||||
return getNewFileHeader(tag) + content.slice(oldheader.length);
|
||||
}
|
||||
|
||||
function getNewFileHeader(tag: string) {
|
||||
|
||||
Reference in New Issue
Block a user