Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6488 +/- ##
==========================================
- Coverage 81.95% 81.76% -0.19%
==========================================
Files 173 170 -3
Lines 14034 13993 -41
Branches 2879 2865 -14
==========================================
- Hits 11501 11441 -60
- Misses 2069 2086 +17
- Partials 464 466 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DanTup
left a comment
There was a problem hiding this comment.
Some feedback, but since this is quite big and will conflict with other PRs, I think we should wait until after the upcoming release before landing any of this (so this will need updating/rebasing to not lose any of those changes in these moves).
|
|
||
| - name: vsce package | ||
| run: vsce package | ||
| run: (cd extensions/dart && ../../node_modules/.bin/vsce package --no-dependencies -o ../..) |
There was a problem hiding this comment.
Why did we add --no-dependencies?
| src/** | ||
| out/src/** | ||
| out/extensions/** | ||
| **/*.map | ||
| *.vsix | ||
| **/.git | ||
| **/.gitattributes | ||
| **/.gitignore | ||
| media/screenshots/** |
There was a problem hiding this comment.
Why did so much of this file get removed? There are lots of things listed in the original file that might exist on users machines even if they're not on yours.
IMPORTANT: THIS PR MUST BE REBASE-COMMITTED (DO NOT SQUASH-MERGE)
Caution
Do NOT use the Squash Merge Queue or Squash & Merge. Commit 1 (
Move Dart extension files into extensions/dart/) is intentionally a puregit mvcommit with zero content edits sogit log --followrename history stays intact (100% similarity) across small files and the 3,800-linepackage.json. Land this PR via rebase-commit / non-squash admin merge.Fixes #6471
Part of #6439 (Step 2 of 9).
Summary
Commit 1: Pure
git mvcommit (f12442c8f)media/(including themedia/doc-iconssubmodule in.gitmodules, preserving[submodule "media/doc-icons"]withpath = extensions/dart/media/doc-icons),src/extension/,src/debug/,package.json,snippets/,syntaxes/,telemetry.json,.vscodeignore,CHANGELOG.md, andREADME.mdintoextensions/dart/(200 renames at 100% similarity).LICENSEin place and copied it toextensions/dart/LICENSE.Commit 2: Workspace wiring commit (
8157cb282)package.json("name": "dart-code-workspace","private": true, omittingversion/publisher/engines) with updated scripts, and syncedpackage-lock.json(removing the stale top-level"version").extensions/dart/package.jsona pure extension manifest (noscripts,dependencies,devDependencies,optionalDependencies), added"repository.directory": "extensions/dart", and fixedcontributes.debuggers[0].programto./out/dist/debug.js.extensions/dart/.vscodeignore(src/**,out/src/**,out/extensions/**,**/*.map,*.vsix,**/.git,**/.gitattributes,**/.gitignore,media/screenshots/**).snippetsURL inextensions/dart/README.md(https://github.com/Dart-Code/Dart-Code/tree/master/extensions/dart/snippets) and created a contributor-facing rootREADME.mdlinking to files (extensions/dart/README.md,CONTRIBUTING.md,docs/README.md).../shared/prefixes across 92 files inextensions/dart/src/{extension,debug}/**to../../../../src/shared/(leavingfrom "../shared"forviews/shared.tsuntouched), updatedextension_apiimports inextension.ts/api/extension_api.ts, and updated the 3 debug helper imports insrc/test/.webpack.config.jsto emitextensions/dart/out/dist/{extension,debug}.jswithdevtoolModuleFilenameTemplate: "../../../../[resource-path]"andonlyCompileBundledFiles: true."rootDir": "."and"outDir": "extensions/dart/out"intsconfig.json(withextensions/dart/outexcluded from TS/ESLint/Git/VS Code/vsce). Emitting compiled test/shared output insideextensions/dart/out/ensures VS Code's Extension Host natively resolvesrequire("vscode")in tests toDart-Code.dart-code's API instance so Sinon stubs onvs.window/vs.commands/vs.debugintercept extension calls cleanly without any module-loader shims.eslint.config.js,codecov.yml,.gitignore,.vscode/settings.json,.vscode/launch.json,AGENTS.md,src/test/helpers.ts(repoRoot),src/test/dart/util.test.ts,src/test/test_all.ts,.github/workflows/build-and-test.yml(Lycheelink_checkglobs), and.github/workflows/nightly-build.yml.Operational Notes
git submodule sync && git submodule update --init && rm -rf media/after pulling.Dart-Code/E2E-Testsrun, and avoid cutting releases fromDart-Code/Dart-Codeuntil Step 7 lands.Verification
git log --followconfirmed across the move forextensions/dart/package.jsonandextensions/dart/CHANGELOG.mdnpm run lint,npm run build,npm run build-tests,npx tsc --noEmit,npx tsc -p ./tsconfig.build.json --noEmitnpm run test-grammar(4/4 snapshots passed) &npm run find-duplicatesnpm run vscode:prepublish,(cd extensions/dart && ../../node_modules/.bin/vsce ls --no-dependencies), andvsce package --no-dependenciessmoke check (10,237 files, 9.94 MB; confirmedout/src/**,out/extensions/**,src/**,**/*.map, andmedia/screenshots/**are excluded)BOT=darttests (564 passing, 3 conditional pending),BOT=miscsrc/test/not_activated/dart_create/extension.test.ts(2 passing, 1 skipped), andBOT=dart npm run test:with-coverage src/test/dart/extension.test.ts(10 passing;lcov.infoSF:paths verified underextensions/dart/src/extension/andsrc/shared/)