初始化上传
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-24 17:08:39 +08:00
commit e9e4693333
7516 changed files with 768821 additions and 0 deletions

6
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}

136
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,136 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Pyright CLI",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/packages/pyright/index.js",
"preLaunchTask": "npm: build:cli:dev",
"args": [
"--verifytypes",
"pandas.core.reshape.concat",
],
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceRoot}/packages/pyright/dist/**/*.js"
]
},
{
"name": "Pyright CLI (pyright-internal)",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/packages/pyright-internal/debug.js",
"args": [
"--typeshedpath",
"${workspaceRoot}/packages/pyright-internal/typeshed-fallback",
"--version",
],
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceRoot}/packages/pyright-internal/out/**/*.js"
]
},
{
"name": "Pyright tests",
"type": "node",
"request": "launch",
"args": [
"--runInBand"
],
"cwd": "${workspaceRoot}/packages/pyright-internal",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/packages/pyright-internal/node_modules/jest/bin/jest"
},
{
"name": "Pyright extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/packages/vscode-pyright/dist/extension.js",
"preLaunchTask": "npm: build:extension:dev",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-pyright",
// The published extension is named "ms-pyright.pyright", but in debug mode it's "ms-pyright.vscode-pyright"
// to allow the extension code to participate in the lerna monorepo. Make sure that the published extension
// isn't enabled, otherwise both are loaded and conflict.
"--disable-extension=ms-pyright.pyright"
],
"smartStep": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/packages/vscode-pyright/dist/**/*.js"
]
},
{
"name": "Pyright extension (watch)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/packages/vscode-pyright/dist/extension.js",
"preLaunchTask": "Watch extension",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/vscode-pyright",
// The published extension is named "ms-pyright.pyright", but in debug mode it's "ms-pyright.vscode-pyright"
// to allow the extension code to participate in the lerna monorepo. Make sure that the published extension
// isn't enabled, otherwise both are loaded and conflict.
"--disable-extension=ms-pyright.pyright"
],
"smartStep": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/packages/vscode-pyright/dist/**/*.js"
]
},
{
"name": "Pyright attach server",
"type": "node",
"request": "attach",
"port": 6600,
"smartStep": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/packages/vscode-pyright/dist/**/*.js"
]
},
{
"name": "Pyright jest current file",
"type": "node",
"request": "launch",
"args": [
"${fileBasenameNoExtension}",
"--runInBand",
"--detectOpenHandles",
"--forceExit",
"--testTimeout=180000"
],
"cwd": "${workspaceRoot}/packages/pyright-internal",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/packages/pyright-internal/node_modules/jest/bin/jest"
},
{
"name": "Pyright jest selected test",
"type": "node",
"request": "launch",
"args": ["${fileBasenameNoExtension}", "--runInBand", "-t", "${selectedText}", "--forceExit", "--testTimeout=180000"],
"cwd": "${workspaceRoot}/packages/pyright-internal",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/packages/pyright-internal/node_modules/jest/bin/jest"
},
{
"name": "Pyright fourslash current file",
"type": "node",
"request": "launch",
"args": [
"fourSlashRunner.test.ts",
"-t ${fileBasenameNoExtension}",
"--runInBand",
],
"cwd": "${workspaceRoot}/packages/pyright-internal",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/packages/pyright-internal/node_modules/jest/bin/jest"
}
]
}

16
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,16 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib",
"python.languageServer": "None",
}

79
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,79 @@
{
"version": "2.0.0",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"tasks": [
{
"label": "Watch extension",
"type": "npm",
"script": "watch:extension",
"isBackground": true,
// From vscode-tsl-problem-matcher.
"problemMatcher": {
"owner": "custom",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "\\[tsl\\] (ERROR|WARNING) in (.*)?\\((\\d+),(\\d+)\\)",
"severity": 1,
"file": 2,
"line": 3,
"column": 4
},
{
"regexp": "\\s*TS(\\d+):\\s*(.*)$",
"code": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "PublicPath: .*?"
},
"endsPattern": {
"regexp": "webpack compiled in .*? ms"
}
}
}
},
{
"label": "Watch test server",
"type": "npm",
"script": "watch:testserver",
"isBackground": true,
// From vscode-tsl-problem-matcher.
"problemMatcher": {
"owner": "custom",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "\\[tsl\\] (ERROR|WARNING) in (.*)?\\((\\d+),(\\d+)\\)",
"severity": 1,
"file": 2,
"line": 3,
"column": 4
},
{
"regexp": "\\s*TS(\\d+):\\s*(.*)$",
"code": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "PublicPath: .*?"
},
"endsPattern": {
"regexp": "webpack compiled in .*? ms"
}
}
}
}
]
}