mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Avoid having diffs in monaco.d.ts
This commit is contained in:
parent
0b344d31d0
commit
0180119c69
1 changed files with 2 additions and 3 deletions
|
|
@ -20,8 +20,7 @@ let result = [
|
|||
` * Licensed under the MIT License. See License.txt in the project root for license information.`,
|
||||
` *--------------------------------------------------------------------------------------------*/`,
|
||||
``,
|
||||
`declare namespace monaco.languages.json {`,
|
||||
``
|
||||
`declare namespace monaco.languages.json {`
|
||||
];
|
||||
for (let line of lines) {
|
||||
if (/^import/.test(line)) {
|
||||
|
|
@ -31,8 +30,8 @@ for (let line of lines) {
|
|||
line = line.replace(/export declare/g, 'export');
|
||||
if (line.length > 0) {
|
||||
line = `\t${line}`;
|
||||
result.push(line);
|
||||
}
|
||||
result.push(line);
|
||||
}
|
||||
result.push(`}`);
|
||||
result.push(``);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue