mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Revert codicon change (#289683)
Revert "Copy codicons file as part of the build (#289411)"
This reverts commit 08d958aa2b.
This commit is contained in:
@@ -36,14 +36,6 @@ const BUNDLED_FILE_HEADER = [
|
||||
].join('\n');
|
||||
|
||||
const extractEditorSrcTask = task.define('extract-editor-src', () => {
|
||||
// Ensure codicon.ttf is copied from node_modules (needed when node_modules is cached and postinstall doesn't run)
|
||||
const codiconSource = path.join(root, 'node_modules', '@vscode', 'codicons', 'dist', 'codicon.ttf');
|
||||
const codiconDest = path.join(root, 'src', 'vs', 'base', 'browser', 'ui', 'codicons', 'codicon', 'codicon.ttf');
|
||||
if (fs.existsSync(codiconSource)) {
|
||||
fs.mkdirSync(path.dirname(codiconDest), { recursive: true });
|
||||
fs.copyFileSync(codiconSource, codiconDest);
|
||||
}
|
||||
|
||||
const apiusages = monacoapi.execute().usageContent;
|
||||
const extrausages = fs.readFileSync(path.join(root, 'build', 'monaco', 'monaco.usage.recipe')).toString();
|
||||
standalone.extractEditor({
|
||||
|
||||
@@ -184,21 +184,3 @@ for (const dir of dirs) {
|
||||
|
||||
child_process.execSync('git config pull.rebase merges');
|
||||
child_process.execSync('git config blame.ignoreRevsFile .git-blame-ignore-revs');
|
||||
|
||||
// Copy codicon.ttf from @vscode/codicons package
|
||||
const codiconSource = path.join(root, 'node_modules', '@vscode', 'codicons', 'dist', 'codicon.ttf');
|
||||
const codiconDest = path.join(root, 'src', 'vs', 'base', 'browser', 'ui', 'codicons', 'codicon', 'codicon.ttf');
|
||||
|
||||
if (!fs.existsSync(codiconSource)) {
|
||||
console.error(`ERR codicon.ttf not found at ${codiconSource}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
try {
|
||||
fs.mkdirSync(path.dirname(codiconDest), { recursive: true });
|
||||
fs.copyFileSync(codiconSource, codiconDest);
|
||||
log('.', `Copied codicon.ttf to ${codiconDest}`);
|
||||
} catch (error) {
|
||||
console.error(`ERR Failed to copy codicon.ttf from ${codiconSource} to ${codiconDest}:`, error);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user