diff --git a/.github/workflows/scip-snapshot.yml b/.github/workflows/scip-snapshot.yml index 3ea3ace71..1164bb4b7 100644 --- a/.github/workflows/scip-snapshot.yml +++ b/.github/workflows/scip-snapshot.yml @@ -10,7 +10,10 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Install asdf. diff --git a/packages/pyright-internal/src/analyzer/program.ts b/packages/pyright-internal/src/analyzer/program.ts index 6dd178d73..9084964d1 100644 --- a/packages/pyright-internal/src/analyzer/program.ts +++ b/packages/pyright-internal/src/analyzer/program.ts @@ -293,7 +293,9 @@ export class Program { } // Add the new files. Only the new items will be added. - this.addTrackedFiles(filePaths); + // Normalize paths to ensure consistency with other code paths. + const normalizedFilePaths = filePaths.map(path => normalizePathCase(this._fs, path)); + this.addTrackedFiles(normalizedFilePaths); return this._removeUnneededFiles(); } diff --git a/packages/pyright-scip/package.json b/packages/pyright-scip/package.json index 048aaeb44..fab7c36f5 100644 --- a/packages/pyright-scip/package.json +++ b/packages/pyright-scip/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "build": "webpack --mode production --progress", + "build-agent": "webpack --mode development", "clean": "shx rm -rf ./dist ./out README.md LICENSE.txt", "prepack": "npm run clean && shx cp ../../README.md . && shx cp ../../LICENSE.txt . && npm run build", "check-snapshots": "npm run update-snapshots -- --check",