microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.53k stars 28.11k forks source link

TS/JS intelisense not complete after 30 minutes (Initialize loop) #101500

Closed dimaslanjaka closed 4 years ago

dimaslanjaka commented 4 years ago

image

Steps to Reproduce:

  1. after 30 minutes when I started vscode, ts/js not complete initializing

Screenshot: image

Still not complete (initializing loop)

My package.json

{
  "author": {
    "email": "dimaslanjaka@gmail.com",
    "name": "dimaslanjaka"
  },
  "bugs": {
    "url": "https://github.com/dimaslanjaka/universal-framework/issues"
  },
  "dependencies": {
    "@types/swfobject": "^2.2.27",
    "ajv": "^6.12.2",
    "amd-loader": "*",
    "analytics-node": "^3.3.0",
    "animate.css": "^4.1.0",
    "ansi-escapes": "^4.3.1",
    "ansi-regex": "^5.0.0",
    "archiver": "*",
    "async": "3.2.0",
    "axios": "^0.19.2",
    "babel-cli": "^6.26.0",
    "babel-core": "6.26.3",
    "babel-eslint": "10.1.0",
    "babel-plugin-add-module-exports": "1.0.2",
    "babel-plugin-es6-promise": "1.1.1",
    "babel-plugin-syntax-async-functions": "6.13.0",
    "babel-plugin-transform-async-to-generator": "6.24.1",
    "babel-plugin-transform-object-assign": "6.22.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-register": "^6.26.0",
    "babel-runtime": "^6.26.0",
    "benchmark": "^2.1.4",
    "bluebird": "*",
    "body-parser": "^1.19.0",
    "bootbox": "^5.4.0",
    "browserify": "16.5.1",
    "budo": "^11.6.4",
    "bufferutil": "^4.0.1",
    "chai": "^4.2.0",
    "codemirror": "*",
    "colors.css": "*",
    "concurrently": "^5.2.0",
    "cookie-parser": "~1.4.5",
    "cross-env": "7.0.2",
    "cross-spawn": "^7.0.3",
    "crypto-js": "*",
    "css-loader": "^3.6.0",
    "css-select": "^2.1.0",
    "css-what": "^3.3.0",
    "csstype": "*",
    "datatables.net": "^1.10.21",
    "datatables.net-autofill": "^2.3.5",
    "datatables.net-autofill-bs4": "^2.3.5",
    "datatables.net-bs4": "^1.10.21",
    "datatables.net-buttons": "^1.6.2",
    "datatables.net-buttons-bs4": "^1.6.2",
    "datatables.net-buttons-dt": "^1.6.2",
    "datatables.net-colreorder": "^1.5.2",
    "datatables.net-colreorder-bs4": "^1.5.2",
    "datatables.net-colreorder-dt": "^1.5.2",
    "datatables.net-dt": "^1.10.21",
    "datatables.net-editor": "^1.6.5",
    "datatables.net-editor-bs4": "^1.6.3",
    "datatables.net-fixedcolumns": "^3.3.1",
    "datatables.net-fixedcolumns-bs4": "^3.3.1",
    "datatables.net-fixedcolumns-dt": "^3.3.1",
    "datatables.net-fixedheader": "^3.1.7",
    "datatables.net-fixedheader-bs4": "^3.1.7",
    "datatables.net-fixedheader-dt": "^3.1.7",
    "datatables.net-keytable": "^2.5.2",
    "datatables.net-keytable-bs4": "^2.5.2",
    "datatables.net-keytable-dt": "^2.5.2",
    "datatables.net-responsive": "^2.2.5",
    "datatables.net-responsive-bs4": "^2.2.5",
    "datatables.net-responsive-dt": "^2.2.5",
    "datatables.net-rowgroup": "^1.1.2",
    "datatables.net-rowgroup-bs4": "^1.1.2",
    "datatables.net-rowgroup-dt": "^1.1.2",
    "datatables.net-rowreorder": "*",
    "datatables.net-rowreorder-bs4": "^1.2.7",
    "datatables.net-rowreorder-dt": "*",
    "datatables.net-scroller-bs4": "^2.0.2",
    "datatables.net-searchpanes": "^1.1.1",
    "datatables.net-searchpanes-bs4": "^1.1.1",
    "datatables.net-searchpanes-dt": "^1.1.1",
    "datatables.net-select-bs4": "^1.3.1",
    "debounce": "^1.2.0",
    "debug": "~4.1.1",
    "del": "^5.1.0",
    "depcheck": "^0.9.2",
    "depurar": "0.3.0",
    "ejs": "^3.1.3",
    "ejs-locals": "^1.0.2",
    "es6-promise": "^4.2.8",
    "eslint-config-standard": "14.1.1",
    "eslint-plugin-promise": "4.2.1",
    "eslint-plugin-standard": "4.0.1",
    "esprima": "^4.0.1",
    "express": "^4.17.1",
    "fakefile": "0.0.10",
    "faker": "^4.1.0",
    "fancy-log": "*",
    "file-loader": "^6.0.0",
    "fs-extra": "9.0.1",
    "ga-gtag": "^1.0.1",
    "globby": "11.0.1",
    "google-scraper": "^1.1.2",
    "google-scrapper": "^1.0.1",
    "googleapis": "^52.1.0",
    "grunt-contrib-concat": "^1.0.1",
    "grunt-contrib-jshint": "^2.1.0",
    "grunt-mkdir": "^1.0.0",
    "grunt-mocha-test": "^0.13.3",
    "grunt-shell": "^3.0.1",
    "gulp-series": "^1.0.2",
    "gulp-typescript": "^5.0.1",
    "har-to-curl": "^0.4.1",
    "highlight.js": "*",
    "hma-proxy-scraper": "0.0.4",
    "html-webpack-plugin": "^4.3.0",
    "html2pug": "^4.0.0",
    "http-errors": "~1.8.0",
    "http-server": "^0.12.3",
    "indent-string": "4.0.0",
    "inquirer": "^7.2.0",
    "invig": "0.0.22",
    "jade": "^1.11.0",
    "javascript-obfuscator": "*",
    "jit-grunt": "^0.10.0",
    "jquery-autocomplete": "^1.2.8",
    "jquery-ui": "^1.12.1",
    "js-proxy-finder": "0.0.4",
    "js-yaml": "^3.14.0",
    "jshint": "^2.11.1",
    "jshint-stylish": "^2.2.1",
    "jsonplus": "^1.2.1",
    "jszip": "^3.5.0",
    "linkifyjs": "^2.1.9",
    "masonry": "0.0.2",
    "masonry-layout": "^4.2.2",
    "materialize-css": "^1.0.0",
    "mdbootstrap": "^4.19.1",
    "merge-stream": "^2.0.0",
    "minimist": "^1.2.5",
    "mkdirp": "^1.0.4",
    "mobx": "^5.15.4",
    "mobx-react": "^6.2.2",
    "mocha": "^8.0.1",
    "morgan": "^1.10.0",
    "mysql": "*",
    "mysql2": "^2.1.0",
    "ncp": "*",
    "node-localstorage": "*",
    "node-sass": "^4.14.1",
    "nodemon": "^2.0.4",
    "npm-registry-client": "^8.6.0",
    "npm-run-all": "4.1.5",
    "observatory": "^1.0.0",
    "open-iconic": "^1.1.1",
    "opn": "^6.0.0",
    "pako": "^1.0.11",
    "pdfmake": "^0.1.66",
    "php-express": "0.0.3",
    "php-node": "0.0.2",
    "popper": "^1.0.1",
    "prompt": "*",
    "proxy-finder": "^1.0.0",
    "pug": "^3.0.0",
    "q": "^1.5.1",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-router-dom": "^5.2.0",
    "recaptcha-v3": "^1.8.0",
    "request": "^2.88.2",
    "requirejs": "^2.3.6",
    "run-sequence": "^2.2.1",
    "sass": "*",
    "scp2": "^0.5.0",
    "sequelize": "^6.2.3",
    "serve": "^11.3.2",
    "shelljs": "*",
    "slash": "*",
    "standard": "*",
    "strip-ansi": "*",
    "strip-ansi-stream": "*",
    "strip-indent": "3.0.0",
    "style-loader": "^1.2.1",
    "stylelint": "^13.6.1",
    "stylelint-config-standard": "^20.0.0",
    "stylelint-processor-html": "^1.0.0",
    "supertest": "^4.0.2",
    "sweetalert": "*",
    "swfobject": "^2.2.1",
    "systemjs": "*",
    "terser": "*",
    "time-grunt": "^2.0.0",
    "tmp": "0.2.1",
    "toastr": "*",
    "ts-loader": "^7.0.5",
    "ts-npm-lint": "^0.1.0",
    "typeahead.js": "^0.11.1",
    "typescript-closure-compiler": "^1.8.11",
    "typescript-tslint-plugin": "^0.5.5",
    "typings-for-css-modules-loader": "^1.7.0",
    "ua-parser-js": "^0.7.21",
    "uglifycss": "*",
    "upath": "^1.2.0",
    "url-loader": "^4.1.0",
    "utf-8-validate": "^5.0.2",
    "vscode": "^1.1.37",
    "webpack": "^4.43.0",
    "webpack-cli": "^3.3.12",
    "webpack-node-externals": "^1.7.2",
    "which": "*",
    "ws": "^7.3.0",
    "yargs": "^15.3.1",
    "youtube-mp3-downloader": "^0.6.8",
    "ytdl-core": "*"
  },
  "description": "Universal framework php javascript",
  "devDependencies": {
    "@types/analytics-node": "^3.1.3",
    "@types/archiver": "*",
    "@types/body-parser": "^1.19.0",
    "@types/bootstrap": "*",
    "@types/chai": "^4.2.11",
    "@types/chalk": "^2.2.0",
    "@types/chokidar": "^2.1.3",
    "@types/codemirror": "*",
    "@types/cross-spawn": "^6.0.2",
    "@types/crypto-js": "*",
    "@types/datatables.net": "^1.10.19",
    "@types/datatables.net-buttons": "*",
    "@types/del": "^4.0.0",
    "@types/depcheck": "^0.9.1",
    "@types/express": "^4.17.6",
    "@types/fancy-log": "^1.3.1",
    "@types/fs-extra": "9.0.1",
    "@types/gulp": "^4.0.6",
    "@types/gulp-typescript": "2.13.0",
    "@types/inquirer": "^6.5.0",
    "@types/jquery": "^3.5.0",
    "@types/merge-stream": "^1.1.2",
    "@types/minimist": "^1.2.0",
    "@types/mocha": "^7.0.2",
    "@types/morgan": "^1.9.1",
    "@types/mysql": "^2.15.14",
    "@types/node": "^14.0.14",
    "@types/node-localstorage": "*",
    "@types/npm": "*",
    "@types/react": "^16.9.41",
    "@types/react-dom": "^16.9.8",
    "@types/react-router-dom": "^5.1.5",
    "@types/request": "^2.48.5",
    "@types/requirejs": "^2.1.32",
    "@types/rimraf": "^3.0.0",
    "@types/run-sequence": "0.0.30",
    "@types/sass": "*",
    "@types/sequelize": "*",
    "@types/supertest": "^2.0.10",
    "@types/tmp": "0.2.0",
    "@types/toastr": "^2.1.38",
    "@types/typeahead": "^0.11.32",
    "@types/uglifycss": "*",
    "@types/ws": "^7.2.6",
    "audit": "0.0.6",
    "autoprefixer": "^9.8.4",
    "browser-sync": "^2.26.7",
    "chalk": "^4.1.0",
    "chokidar": "^3.4.0",
    "coffeetape": "^2.0.0",
    "dedupe": "^3.0.2",
    "eslint": "^7.3.1",
    "fix": "0.0.6",
    "grunt": "^1.1.0",
    "grunt-browserify": "^5.3.0",
    "grunt-contrib-clean": "^2.0.0",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-rework": "^0.1.0",
    "gulp": "^4.0.2",
    "gulp-babel": "^8.0.0",
    "gulp-clean": "^0.4.0",
    "gulp-coffee": "^3.0.3",
    "gulp-coffeescript": "0.0.15",
    "gulp-concat": "^2.6.1",
    "gulp-image": "^6.2.0",
    "gulp-inject": "^5.0.5",
    "gulp-postcss": "^8.0.0",
    "gulp-rename": "^2.0.0",
    "gulp-sass": "^4.1.0",
    "gulp-sourcemaps": "^2.6.5",
    "gulp-uglify": "^3.0.2",
    "gulp-uglify-es": "^2.0.0",
    "jquery": "^3.5.1",
    "lodash": "^4.17.15",
    "mq4-hover-shim": "^0.3.0",
    "node": "^14.4.0",
    "npm": "^6.14.5",
    "nyc": "^15.1.0",
    "panini": "^1.6.3",
    "prettier": "^2.0.5",
    "rimraf": "^3.0.2",
    "tap-nyc": "^1.0.3",
    "tap-spec": "^5.0.0",
    "ts-node": "^8.10.2",
    "tslib": "^2.0.0",
    "tslint": "^6.1.2",
    "tslint-config-airbnb": "^5.11.2",
    "tslint-react": "^5.0.0",
    "typescript": "^3.9.5",
    "webpack-dashboard": "^3.2.0",
    "webpack-dev-server": "^3.11.0"
  },
  "displayName": "UNIVERSAL FRAMEWORK [PHPJS]",
  "homepage": "https://github.com/dimaslanjaka/universal-framework#readme",
  "keywords": [
    "SFTP",
    "PHP",
    "COMMONJS",
    "WINDOWS",
    "FRAMEWORK",
    "GUI",
    "project",
    "typescript",
    "javascript",
    "tools",
    "python"
  ],
  "license": "MIT",
  "main": "index.js",
  "maintainers": [
    {
      "email": "dimaslanjaka@gmail.com",
      "name": "Dimas Lanjaka",
      "url": "https://www.github.com/dimaslanjaka"
    }
  ],
  "name": "universal-framework",
  "peerDependencies": {
    "gulp": "*",
    "typescript": "*",
    "tslint": "*",
    "eslint": "*",
    "grunt": "*"
  },
  "publisher": "dimaslanjaka",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/dimaslanjaka/universal-framework.git"
  },
  "scripts": {
    "postinstall": "",
    "preinstall": ""
  },
  "version": "3.0.0"
}
mjbvz commented 4 years ago

/needsMoreInfo

dimaslanjaka commented 4 years ago

I have installed vscode system (not user) on my windows 10. Sometime TS/JS Server not completely Initialized. At bottom left corner still showing "Initializing TS/JS intelisense" more than 30 minutes. I dont know why, but i have laptop with RAM 8 GB 1TB HDD.

my typehint of typescript (*.d.ts) not working if TS Server not completely Initialized. :(

dimaslanjaka commented 4 years ago

I also doing restart pc, restart vscode without plugin. But, it's not fixed. Please help

dimaslanjaka commented 4 years ago

This is my settings of .vscode workspace https://github.com/dimaslanjaka/universal-framework/tree/master/.vscode

dimaslanjaka commented 4 years ago

and also, if TS Server not complete initialized. Some extension formatter (like: prettier) not working, and showing notification Formatting in progress but not complete more than 5 minutes (i cancel it, and saved not formatted)

dimaslanjaka commented 4 years ago

image

look

dimaslanjaka commented 4 years ago

Its fixed with editing tsconfig.json

/*
 * VSCode Typehinting Module
 */
{
  "compilerOptions": {
    "module": "CommonJS",
    "skipLibCheck": true,
    "declaration": true,
    "emitDeclarationOnly": true,
    "declarationDir": "tmp/ts",
    "outDir": "tmp/js",
    "allowJs": true
  },
  "include": [
    "./libs/src/**/*",
    "./libs/js/**/*",
    "./views/**/*",
    "./src/MVC/themes/**/*",
    "./assets/node/**/*"
  ],
  "exclude": [
    "node_modules",
    "**/node_modules/*",
    "./src",
    "./vendor",
    "./tmp",
    "./assets/js",
    "**.min.js",
    "**/*.min.js",
    "./src/MVC/themes/assets/js",
    "./libs/compiler/**/*",
    "./libs/src/compiler/framework.js",
    "./libs/compiler/framework.js",
    "**/framework.js"
  ]
}