The TypeScript Server should be watching these files already so we do not need to tell it to 'reloadProjects'. In the current case, 'reloadProjects' is causing a TS Server error
https://github.com/Microsoft/TypeScript/issues/30005Fixes#68428
Fixes#68029
Use the `typescript.preferences.renameShorthandProperties` and `javascript.preferences.renameShorthandProperties` to disable shorthand property renames. Default to enabling renames
This fixes a problem where the `typescript` VSCode task runs `tsc` with `-p`
when it should run `-b` when `tsconfig.json` has the `"references"` property.
```js
{
"extends": "./tsconfig.app.json",
// meow
"references": [{ "path": "./tsconfig.lib.json" }]
}
```
This bug happens because while `tsconfig.json` file allows comment, the
parsing logic here uses vanilla `JSON.parse` which cannot parse comments.
This commit fixes it by using `jsonc.parse` instead.
After further discussion with the TS team, we determined that we do not need to stop sending semantic commands when the language service disables itself
Part of #62110
`autoFix` is a confusing term since we have a `auto fix` command now. Using `fix all` as this term is used by many linters for this type of operation
Part of #62110
* Adds a new `CodeActionKind`: `source.autoFix`.
* Implements a simple auto fix provider for typescript. This provider can auto fix `implement interface` and `spelling` errors (provided there is only a single valid fix listed)
The provider is likely not something we actually want to check it (especially in its current state), we should ask TS for proper autoFix support
Part of #62110
Use the more generic name as suggested in https://github.com/Dart-Code/Dart-Code/issues/1393. This makes the intent of the field more clear and also allows us to extend the concept of preferred code actions to refactorings and other classes of code actions
Experimentally also allows a `preferred` value for `apply` when configuring code aciton keyboard shortcuts. This applies the preferred code action returned from the list of code actions returned
Part of #62110
- Adds a new field `canAutoApply` to code actions. This field indicates that a code action can be applied without additional user input. For quick fixes, this should be set if the fix properly addresses the error
- Enable auto fixes for TS spelling errors
- Added a `editor.action.autoFix` command to triggers auto fixes at the current cursor position
Fixes#66366Fixes#66367
Avoid printing the error twice in the trace
Make sure we show helpful error information in the VS Code dev tools when a TS server error occurrs