Modified Pyright so its highlighting is closer to Viper
Some checks failed
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled

This commit is contained in:
2026-07-28 02:56:01 +08:00
parent e9e4693333
commit e126548249
7540 changed files with 26537 additions and 994 deletions

View File

@@ -1,20 +0,0 @@
/* eslint-disable @typescript-eslint/no-var-requires */
//@ts-check
const { promises: fsAsync } = require('fs');
const chalk = require('chalk').default;
async function main() {
const packageJson = await fsAsync.readFile('package.json', 'utf-8');
const obj = JSON.parse(packageJson);
const name = obj.name;
if (name !== 'pyright') {
console.error(chalk.red(`Extension name must be "pyright", but is currently set to "${name}".`));
console.error(chalk.red('Please package by running "npm run package" to ensure the name is set correctly.'));
console.error();
process.exit(1);
}
}
main();