Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support multiple workspaces #9265

Merged
merged 13 commits into from
Sep 22, 2023
Merged

Conversation

imbrian
Copy link
Contributor

@imbrian imbrian commented Sep 22, 2023

↪️ Pull Request

  • Supports multiple workspaces
  • Checks for sentinel file on start, then watches for directory changes
  • Adds documentation/readme

💻 Examples

🚨 Test instructions

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@imbrian imbrian merged commit be75803 into lsp-ux-explorations Sep 22, 2023
8 of 15 checks passed
@parcel-benchmark
Copy link

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 1.79s -36.00ms
Cached 380.00ms +64.00ms ⚠️

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/index.8692583b.js 1.48kb +0.00b 479.00ms +25.00ms ⚠️
dist/legacy/index.a2819fc3.js 1.06kb +0.00b 479.00ms +25.00ms ⚠️
dist/modern/index.d90ef1a6.js 917.00b +0.00b 479.00ms +26.00ms ⚠️
dist/legacy/index.html 826.00b +0.00b 524.00ms +39.00ms ⚠️
dist/modern/index.html 749.00b +0.00b 524.00ms +40.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 4.88s -54.00ms
Cached 480.00ms +4.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/PermalinkedComment.3145598b.js 3.94kb +0.00b 378.00ms -22.00ms 🚀
dist/UserProfile.b37bbaff.js 1.38kb +0.00b 378.00ms -21.00ms 🚀
dist/NotFound.c08212ea.js 265.00b +0.00b 378.00ms -21.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/index.js 460.91kb +0.00b 1.23s +68.00ms ⚠️
dist/PermalinkedComment.3145598b.js 3.94kb +0.00b 428.00ms +37.00ms ⚠️
dist/UserProfile.b37bbaff.js 1.38kb +0.00b 428.00ms +37.00ms ⚠️
dist/NotFound.c08212ea.js 265.00b +0.00b 428.00ms +37.00ms ⚠️
dist/logo.8dd07848.png 244.00b +0.00b 304.00ms +25.00ms ⚠️

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 42.63s +50.00ms
Cached 2.99s +150.00ms ⚠️

Cold Bundles

Bundle Size Difference Time Difference
dist/media-viewer.bc1a2415.js 537.32kb +0.00b 10.98s -3.41s 🚀
dist/archive.fe044de4.js 60.16kb +0.00b 10.98s -3.41s 🚀
dist/component-lazy.aeb22f50.js 59.50kb +0.00b 7.06s -477.00ms 🚀
dist/media-viewer-analytics-error-boundary.54c54975.js 3.19kb +0.00b 12.95s -1.44s 🚀
dist/codeViewerRenderer.7d374cd5.js 2.61kb +0.00b 10.98s -3.44s 🚀
dist/heading3.82217cc7.js 1.35kb +0.00b 7.06s -360.00ms 🚀
dist/heading4.bc1ea347.js 1.12kb +0.00b 7.06s -361.00ms 🚀
dist/ro.ee42c980.js 478.00b +0.00b 7.93s -2.54s 🚀
dist/index.html 248.00b +0.00b 7.92s -6.51s 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/component-lazy.aeb22f50.js 59.50kb +0.00b 7.62s +881.00ms ⚠️
dist/codeViewerRenderer.7d374cd5.js 2.61kb +0.00b 14.45s +4.13s ⚠️
dist/ro.ee42c980.js 478.00b +0.00b 10.28s +2.69s ⚠️

Three.js ✅

Timings

Description Time Difference
Cold 3.71s +18.00ms
Cached 379.00ms -30.00ms 🚀

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/Three.js 572.22kb +0.00b 1.18s -70.00ms 🚀

Click here to view a detailed benchmark overview.

@imbrian imbrian deleted the imbrian/lsp-ux-explorations branch September 27, 2023 19:45
celinanperalta added a commit that referenced this pull request Oct 23, 2023
* Add vscode workspace setting

Disable js/ts validation for the workspace
(packages that have .tsconfig should still work)

* WIP: detect lsp server in reporter

If the server isn't running, the reporter should do nothing.

* Update todo doc

* Add ideas to todo doc

* Fix kitchen-sync example

* support multiple workspaces (#9265)

* WIP: lsp sentinel watcher

* garbage

* f

* add initial sentinel check to watch

* remove event emitter from reporter

* update README, add reporter README

* support multiple LSP clients

- changed reporter project root to used process.cwd
- only add client when workspace root matches project root

* remove generated files

* remove other generated files

* move vscode-extension-TODO into extension dir

* clean up

* remove unused import

---------

Co-authored-by: Celina Peralta <cperalta@atlassian.com>

* remove examples changes

* revert html example changes

* move development info to CONTRIBUTING.md

* Remove log

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/reporters/lsp-reporter/src/LspReporter.js

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/reporters/lsp-reporter/src/LspReporter.js

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/utils/parcel-lsp/src/LspServer.ts

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/utils/parcel-lsp/src/LspServer.ts

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/reporters/lsp-reporter/src/LspReporter.js

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/utils/parcel-lsp/src/LspServer.ts

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/reporters/lsp-reporter/src/LspReporter.js

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* Update packages/utils/parcel-lsp/src/LspServer.ts

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>

* add sentinel file cleanup

* Apply suggestions from code review

* linting

---------

Co-authored-by: Eric Eldredge <lettertwo@gmail.com>
Co-authored-by: Brian Tedder <6571474+imbrian@users.noreply.github.com>
Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants