Skip to content

Conversation

@collinstevens
Copy link
Contributor

@collinstevens collinstevens commented Jun 27, 2025

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Setting typescript.enablePromptUseWorkspaceTsdk to true causes VSCode to show a prompt on startup to switch to the workspace TypeScript version as specified by typescript.tsdk.

The typescript.tsdk specifies the workspace TypeScript SDK location, but it doesn't force VSCode to use it as documented here https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions.

The typescript.tsdk workspace setting only tells VS Code that a workspace version of TypeScript exists. To actually start using the workspace version for IntelliSense, you must run the TypeScript: Select TypeScript Version command and select the workspace version.

The typescript.tsdk is currently specified in all the examples and templates and the repository's .vscode/settings.json files, but typescript.enablePromptUseWorkspaceTsdk is missing in the http-server example and the basic template. Both of the settings already exist in the cli and monorepo templates.

Context from Discord, https://discord.com/channels/795981131316985866/1388025470804561973.

@changeset-bot
Copy link

changeset-bot bot commented Jun 27, 2025

🦋 Changeset detected

Latest commit: 2523ac7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-effect-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@collinstevens collinstevens force-pushed the add-typescript-enablePromptUseWorkspaceTsdk-to-templates branch from 341c032 to 2523ac7 Compare June 27, 2025 07:46
@IMax153 IMax153 merged commit 89df09f into Effect-TS:main Jun 27, 2025
5 of 11 checks passed
@github-actions github-actions bot mentioned this pull request Jun 27, 2025
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.

2 participants