mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-22 18:55:56 +00:00
Fix the transformation to an external module .d.ts
This commit is contained in:
@@ -231,7 +231,10 @@ function toExternalDTS(contents) {
|
||||
|
||||
if (line.indexOf('declare let MonacoEnvironment') === 0) {
|
||||
lines[i] = `declare global {\n let MonacoEnvironment: Environment | undefined;\n}`;
|
||||
// lines[i] = line.replace('declare namespace monaco.', 'export namespace ');
|
||||
}
|
||||
|
||||
if (line.indexOf('\tMonacoEnvironment?') === 0) {
|
||||
lines[i] = ` MonacoEnvironment?: Environment | undefined;`;
|
||||
}
|
||||
}
|
||||
return lines.join('\n').replace(/\n\n\n+/g, '\n\n');
|
||||
|
||||
Reference in New Issue
Block a user