Closed
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.74.0, OS: Darwin arm64 22.1.0
- OS Version: Mac OS Ventura 13.0.1 (22A400) (Apple Silicon, M1 Pro)
Steps to Reproduce:
- Created a React-Native Project based of typescript, and have path alias added in babel.config.js and tsconfig.json
- When project opens, it shows initialising JS/TS features and disappears normally
- After some time (around 10 mins while developing in code, this randomly appears and never stops).
- This, stops intellisense to work and have to manually restart TS server
I have tried all the possible solutions provided in microsoft/vscode#68896 and none of them seem to work. I have tried clearing cache and re-installing vscode but issue still seems to persist.
After manually restarting ts server, this message doesn't seem to persist and works normally but after sometime again this appears
Attaching TS server logs and babel.config and tsconfig
babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
alias: {
'@assets': './src/assets',
'@api': './src/api',
'@app': './src/app',
'@components': './src/components',
'@config': './src/config',
'@constants': './src/constants',
'@content': './src/content',
'@hooks': './src/hooks',
'@icons': './src/icons',
'@interfaces': './src/interfaces',
'@navigation': './src/navigation',
'@screens': './src/screens',
'@services': './src/services',
'@styles': './src/styles',
'@types': './src/types',
'@utils': './src/utils',
},
},
],
['react-native-paper/babel'],
['optional-require'],
],
};
tsconfig
{
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@api/*": ["api/*"],
"@app/*": ["app/*"],
"@assets/*": ["assets/*"],
"@components/*": ["components/*"],
"@config/*": ["config/*"],
"@constants/*": ["constants/*"],
"@content/*": ["content/*"],
"@hooks/*": ["hooks/*"],
"@icons/*": ["icons/*"],
"@interfaces/*": ["interfaces/*"],
"@navigation/*": ["navigation/*"],
"@screens/*": ["screens/*"],
"@services/*": ["services/*"],
"@styles/*": ["styles/*"],
"@types/*": ["types/*"],
"@utils/*": ["utils/*"]
},
"skipLibCheck": true
},
"extends": "@tsconfig/react-native/tsconfig.json"
}