Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Madhur/reduce common W-19442343#616

Merged
mshanemc merged 23 commits into
mainfrom
madhur/reduce-common
Sep 10, 2025
Merged

Madhur/reduce common W-19442343#616
mshanemc merged 23 commits into
mainfrom
madhur/reduce-common

Conversation

@madhur310
Copy link
Copy Markdown
Contributor

@madhur310 madhur310 commented Sep 4, 2025

What does this PR do?

Reduces the size and extracts out stuff out of common package. This should lead to easier to moving of code across the package.

What issues does this PR fix or reference?

@W-19442343@

@madhur310 madhur310 requested a review from a team as a code owner September 4, 2025 23:59
Comment thread packages/aura-language-server/jest.setup.js
Copy link
Copy Markdown
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaner, please

Comment thread packages/aura-language-server/src/context/aura-context.ts Outdated
Comment thread packages/aura-language-server/src/util/component-util.ts
Comment thread packages/lightning-lsp-common/src/base-context.ts
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/jest.setup.js
Comment thread packages/lwc-language-server/package.json Outdated
Comment thread packages/lwc-language-server/src/lwc-utils.ts Outdated
Comment thread packages/lwc-language-server/src/lwc-utils.ts Outdated
Comment thread packages/lwc-language-server/src/lwc-utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/context.ts
Comment thread packages/lwc-language-server/src/context/lwc-context.ts Outdated
Comment thread packages/lwc-language-server/src/context/lwc-context.ts Outdated
Comment thread packages/lwc-language-server/src/context/lwc-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/__tests__/component-util.test.ts
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lwc-language-server/src/decorators/lwc-decorators.ts Outdated
@madhur310 madhur310 requested review from mshanemc and removed request for klewis-sfdc September 8, 2025 21:44
Copy link
Copy Markdown
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly the fs-utils is the problem,

I know cleanup can be a bottomless pit, but I'm kinda looking at this as an educational opportunity and bar-setting exercise.

Comment thread packages/lightning-lsp-common/src/fs-utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/fs-utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/fs-utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/fs-utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/fs-utils.ts Outdated
Comment thread packages/lightning-lsp-common/src/base-context.ts Outdated
Comment thread packages/lightning-lsp-common/src/logger.ts
Comment thread packages/lwc-language-server/src/__tests__/lwc-server.test.ts
Comment thread packages/lightning-lsp-common/src/utils.ts Outdated
Comment thread package.json Outdated
@madhur310 madhur310 requested a review from mshanemc September 10, 2025 15:11
Comment thread .eslintrc.json
"@typescript-eslint/semi": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"func-style": ["error", "expression"],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love this rule

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I like the const = way much better, easier to read imo and find unused stuff..

Copy link
Copy Markdown
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved, not tested.

removeFile(codeWorkspacePath);
removeFile(launchPath);
removeFile(tsconfigPathForce);
fs.rmSync(jsconfigPathGlobal, { recursive: true, force: true });
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recursive isn't necessary for files, but it probably doesn't hurt anything?

@mshanemc mshanemc merged commit 5b1d04a into main Sep 10, 2025
8 checks passed
@mshanemc mshanemc deleted the madhur/reduce-common branch September 10, 2025 19:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants