make sure proposal name generation is sorted, https://github.com/microsoft/vscode/issues/131165

This commit is contained in:
Johannes Rieken 2021-11-12 10:13:32 +01:00
parent 4549bd26c7
commit 7ac327281a
No known key found for this signature in database
GPG key ID: 96634B5AF12F8798
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ function apiProposalNamesGenerator() {
try {
const t1 = Date.now();
const proposalNames = [];
for (let file of fs.readdirSync(dtsFolder)) {
for (let file of fs.readdirSync(dtsFolder).sort()) {
const match = pattern.exec(file);
if (match) {
proposalNames.push([match[1], `https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/${file}`]);

View file

@ -224,7 +224,7 @@ function apiProposalNamesGenerator() {
const t1 = Date.now();
const proposalNames: [name: string, url: string][] = [];
for (let file of fs.readdirSync(dtsFolder)) {
for (let file of fs.readdirSync(dtsFolder).sort()) {
const match = pattern.exec(file);
if (match) {
proposalNames.push([match[1], `https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/${file}`]);