mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Add versioning to monaco.d.ts generation
This commit is contained in:
@@ -189,7 +189,12 @@ class MonacoGenerator {
|
||||
// Nothing changed
|
||||
return null;
|
||||
}
|
||||
return monacodts.run2('src', this._dtsFilesContents2);
|
||||
let r = monacodts.run2('src', this._dtsFilesContents2);
|
||||
if (!r && !this._isWatch) {
|
||||
// The build must always be able to generate the monaco.d.ts
|
||||
throw new Error(`monaco.d.ts genration error - Cannot continue`);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
_log(message, ...rest) {
|
||||
util2.log(util2.colors.cyan('[monaco.d.ts]'), message, ...rest);
|
||||
|
||||
Reference in New Issue
Block a user