Skip to content

indexing cost too long time (40min+) Only occurs in the VS Code - Insiders #4277

Closed

Description

@mozhuanzuojing

We have four tasks blocked waiting for the index to build, and it’s extremely slow because it’s only running on one thread. How can we make this process run in parallel?

Image Image

Activity

  1. changed the title [-]indexing cost too long time (10min+)[/-] [+]indexing cost too long time (20min+)[/+] on Dec 1, 2025
  2. mozhuanzuojing commented on Dec 1, 2025

    @mozhuanzuojing
    ContributorAuthor

    Hey, can we make the indexing run with 4 parallel workers? They shouldn’t block each other. By the way, I noticed VS Code Insiders keeps rebuilding the index on every startup.

  3. fbricon commented on Dec 1, 2025

    @fbricon
    Collaborator

    @snjeza could you please investigate?

  4. fbricon commented on Dec 1, 2025

    @fbricon
    Collaborator

    @mozhuanzuojing please enable verbose tracing ("java.trace.server":"verbose"), restart the extension and attach the logs from the Language Support for Java output view. There might be some specific config that triggers the reindexing on restart.

  5. mozhuanzuojing commented on Dec 1, 2025

    @mozhuanzuojing
    ContributorAuthor

    I know my computer’s performance is a bit weak, but here’s the real situation with the indexing: one core is on the job, while the other five are just… well, being bystanders.

    Image Image Image Image
  6. mozhuanzuojing commented on Dec 1, 2025

    @mozhuanzuojing
    ContributorAuthor

    @mozhuanzuojing please enable verbose tracing ("java.trace.server":"verbose"), restart the extension and attach the logs from the Language Support for Java output view. There might be some specific config that triggers the reindexing on restart.

    @fbricon Quick heads-up: I’ll provide the logs later today. The indexing just finished, so I need to capitalize on this and work for a couple of hours.

  7. self-assigned this
    on Dec 1, 2025
  8. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    @fbricon log file : .log

  9. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor
  10. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    vscode-insiders settings.json

    windows settings.json

    {
        "git.autofetch": true,
        "files.autoGuessEncoding": true,
        "git.confirmSync": false,
        "workbench.iconTheme": "material-icon-theme",
        "[vue]": {
            "editor.defaultFormatter": "Vue.volar"
        },
        "vue.format.wrapAttributes":"force-expand-multiline",
         // 关闭debug前强制编译
        "java.debug.settings.forceBuildBeforeLaunch": false,
        "extensions.ignoreRecommendations": true,
        "Codegeex.License": "",
        "Codegeex.Privacy": true,
        "[javascript]": {
            "editor.defaultFormatter": "vscode.typescript-language-features"
        },
        "[jsonc]": {
            "editor.defaultFormatter": "vscode.json-language-features"
        },
        "javascript.updateImportsOnFileMove.enabled": "always",
        "[json]": {
            "editor.defaultFormatter": "vscode.json-language-features"
        },
        "files.associations": {
            "*.json": "jsonc"
        },
        "roo-cline.allowedCommands": [
            "git log",
            "git diff",
            "git show",
            "npm test",
            "npm install",
            "tsc"
        ],
        "terminal.integrated.defaultProfile.windows": "PowerShell",
        "terminal.integrated.defaultProfile.linux": "bash",
        "security.workspace.trust.untrustedFiles": "open",
        "remote.SSH.remotePlatform": {
            "49.232.172.112": "linux"
        },
        "roo-cline.deniedCommands": [],
        "redhat.telemetry.enabled": true,
        "files.exclude": {
            "**/.git": true,
            "**/target": false,
            "**/.svn": true,
            "**/.hg": true,
            "**/CVS": true,
            "**/.DS_Store": true,
            "**/Thumbs.db": true
        },
        "search.exclude": {
            "**/target": true,
            "**/node_modules": true,
            "**/bower_components": true,
            "**/*.code-search": true
        },
        "java.jdt.ls.vmargs": "-Dsun.jnu.encoding=utf8 -Dfile.encoding=utf8 -Xms1g -Xmx5g",
        "java.configuration.runtimes": [
            {
                "name": "JavaSE-1.8",
                "path": "C:/Program Files/Eclipse Adoptium/jdk-8.0.382.5-hotspot",
            },
            {
                "name": "JavaSE-17",
                "path": "C:/Program Files/Eclipse Adoptium/jdk-17.0.11.9-hotspot"
            },
            {
                "name": "JavaSE-25",
                "path": "C:/Program Files/Eclipse Adoptium/jdk-25.0.1.8-hotspot",
                "default": true
            }
        ],
        "java.configuration.maven.userSettings": "E:/java/apache-maven-3.9.9/conf/settings.xml",
        "maven.pomfile.autoUpdateEffectivePOM": true,
        "maven.terminal.customEnv": [
            {
                "environmentVariable": "MAVEN_OPTS",
                "value": " -DarchetypeCatalog=internal -Dfile.encoding=utf8 -Dsun.jnu.encoding=utf8 "
            }
        ],
        "maven.terminal.useJavaHome": true,
        "maven.executable.path": "F:/java/apache-maven-3.9.9/bin/mvn.cmd",
        "java.settings.url": "file:///C:/Users/l/AppData/Roaming/Code/User/relax.org.eclipse.jdt.core.prefs",
        "explorer.autoReveal": false,
        "explorer.fileNesting.expand": false,
        // 仅格式化修改行(通过git对比)
        "editor.formatOnSaveMode": "modificationsIfAvailable",
        "editor.stickyScroll.enabled": true,
        "debug.console.acceptSuggestionOnEnter": "on",
        "debug.openExplorerOnEnd": true,
        "java.debug.settings.hotCodeReplace": "auto",
        "java.completion.maxResults": 36,
        "java.completion.chain.enabled": true,
        "java.completion.matchCase": "off",
        "java.completion.guessMethodArguments": "insertBestGuessedArguments",
        "java.referencesCodeLens.enabled": true,
        "java.implementationCodeLens": "all",
        "java.symbols.includeSourceMethodDeclarations": true,
        "java.maven.downloadSources": true,
        "java.eclipse.downloadSources": true,
        "editor.lightbulb.enabled": "on",
        "git.replaceTagsWhenPull": true,
        "java.trace.server": "verbose",
        "svelte.enable-ts-plugin": true,
        "java.gradle.buildServer.enabled": "on",
        "javascript.referencesCodeLens.enabled": true,
        "javascript.referencesCodeLens.showOnAllFunctions": true,
        "typescript.referencesCodeLens.enabled": true,
        "typescript.referencesCodeLens.showOnAllFunctions": true,
        "diffEditor.codeLens": true,
        "gitlens.codeLens.includeSingleLineSymbols": true,
        "typescript.implementationsCodeLens.enabled": true,
        "typescript.implementationsCodeLens.showOnInterfaceMethods": true,
        "xml.codeLens.enabled": true,
        "boot-java.highlight-copilot-codelens.on": true,
        "javascript.preferGoToSourceDefinition": true,
        "typescript.preferGoToSourceDefinition": true,
        // 文件分隔符
        "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?,。?:;“”【】!",
        "remote.autoForwardPortsSource": "hybrid",
        "gradle.allowParallelRun": true,
        "typescript.updateImportsOnFileMove.enabled": "always",
         // 关闭引用定义
        "java.references.includeDeclarations": false,
        "[typescript]": {
            "editor.defaultFormatter": "vscode.typescript-language-features"
        },
        "workbench.colorTheme": "Default Dark+",
        "security.allowedUNCHosts": [
            "wsl.localhost"
        ],
        "diffEditor.hideUnchangedRegions.enabled": true,
        "java.maxConcurrentBuilds": 4,
    }

    wsl2 settings.json

    {
        "git.repositoryScanMaxDepth": 3,
        "java.configuration.runtimes": [
            {
                "name": "JavaSE-1.8",
                "path": "/usr/lib64/jvm/jdk8"
            },
            {
                "name": "JavaSE-17",
                "path": "/usr/lib64/jvm/jdk17"
            },
            {
                "name": "JavaSE-25",
                "path": "/usr/lib64/jvm/jdk25",
                "default": true
            }
        ],
        "java.jdt.ls.vmargs": "-Dsun.jnu.encoding=gb2312 -Dfile.encoding=gb2312 -Xms2g -Xmx5g  -XX:+UseStringDeduplication -XX:GCTimeRatio=9 -XX:AdaptiveSizePolicyWeight=90 ",
        // java格式化
        "java.format.settings.url": "/usr/local/java/config/vscode-java-google-style.xml",
        // JDT编译器诊断 -- strict
        "java.settings.url": "/usr/local/java/config/strict.org.eclipse.jdt.core.prefs",
        "java.completion.chain.enabled": true,
        "java.completion.matchCase": "off",
        "java.completion.guessMethodArguments": "insertBestGuessedArguments",
        "java.debug.settings.hotCodeReplace": "auto",
        "debug.console.acceptSuggestionOnEnter": "on",
        "debug.openExplorerOnEnd": true,
         // 关闭调试显示行内值
        "debug.inlineValues": "off",
        // 内部停用gradleServer
        "java.gradle.buildServer.enabled": "off",
        "java.referencesCodeLens.enabled": true,
        "java.implementationCodeLens": "all",
        "java.symbols.includeSourceMethodDeclarations": true,
        // "java.cleanup.actions": [
        //     "redundantModifiers",
        //     "redundantIfCondition",
        //     "redundantComparisonStatement",
        //     "lambdaExpressionFromAnonymousClass",
        //     "organizeImports",
        //     "addOverride",
        //     "tryWithResource",
        //     "switchExpression",
        //     "lambdaExpression",
        //     "instanceofPatternMatch"
        // ],
        // 左侧树的目录固定在顶部
        "workbench.tree.enableStickyScroll": true,
        // 编辑器里的函数固定在顶部
        "editor.stickyScroll.enabled": true,
        "java.maven.downloadSources": true,
        "java.eclipse.downloadSources": true,
        // 自动展开调试变量值
        "debug.autoExpandLazyVariables": "on",
        // 并行运行
        "gradle.allowParallelRun": true,
        // 关闭debug前强制编译
        "java.debug.settings.forceBuildBeforeLaunch": false,
        "java.maxConcurrentBuilds": 4,
        "java.saveActions.organizeImports": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit"
        },
        "java.trace.server": "verbose"
    }
  11. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    /usr/local/java/config/strict.org.eclipse.jdt.core.prefs

    eclipse.preferences.version=10
    
    org.eclipse.jdt.core.builder.annotationPath.allLocations=disabled
    org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
    org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
    org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
    org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
    org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
    org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
    org.eclipse.jdt.core.compiler.annotation.notowning=org.eclipse.jdt.annotation.NotOwning
    org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
    org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
    org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
    org.eclipse.jdt.core.compiler.annotation.owning=org.eclipse.jdt.annotation.Owning
    org.eclipse.jdt.core.compiler.annotation.resourceanalysis=disabled
    org.eclipse.jdt.core.compiler.doc.comment.support=enabled
    org.eclipse.jdt.core.compiler.problem.APILeak=warning
    org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated=info
    org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore
    org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
    org.eclipse.jdt.core.compiler.problem.comparingIdentical=error
    org.eclipse.jdt.core.compiler.problem.deadCode=error
    org.eclipse.jdt.core.compiler.problem.deprecation=warning
    org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
    org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
    org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
    org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
    org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
    org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
    org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
    org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
    org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
    org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=ignore
    org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
    org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=ignore
    org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
    org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=ignore
    org.eclipse.jdt.core.compiler.problem.incompatibleOwningContract=ignore
    org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
    org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
    org.eclipse.jdt.core.compiler.problem.insufficientResourceAnalysis=ignore
    org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
    org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
    org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
    org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
    org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=default
    org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
    org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=ignore
    org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
    org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
    org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
    org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
    org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
    org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
    org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
    org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=no_tag
    org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
    org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
    org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
    org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
    org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
    org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
    org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
    org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
    org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error
    org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=ignore
    org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
    org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=ignore
    org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=ignore
    org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
    org.eclipse.jdt.core.compiler.problem.nullReference=error
    org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
    org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=ignore
    org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=ignore
    org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
    org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=ignore
    org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
    org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
    org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
    org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
    org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=ignore
    org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
    org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
    org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
    org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
    org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
    org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
    org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=ignore
    org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
    org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
    org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed=info
    org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
    org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
    org.eclipse.jdt.core.compiler.problem.terminalDeprecation=ignore
    org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore
    org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
    org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
    org.eclipse.jdt.core.compiler.problem.unclosedCloseable=error
    org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
    org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore
    org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=ignore
    org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled
    org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info
    org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
    org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
    org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
    org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=ignore
    org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
    org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
    org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
    org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
    org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
    org.eclipse.jdt.core.compiler.problem.unusedImport=error
    org.eclipse.jdt.core.compiler.problem.unusedLabel=error
    org.eclipse.jdt.core.compiler.problem.unusedLambdaParameter=ignore
    org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
    org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
    org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
    org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
    org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
    org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
    org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
    org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
    org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore
    org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=ignore
    
    
  12. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor
    Image
  13. 7 remaining items

  14. snjeza commented on Dec 2, 2025

    @snjeza
    Collaborator

    By the way, I noticed VS Code Insiders keeps rebuilding the index on every startup.

    @mozhuanzuojing Could you try to disable Gradle for Java and update Test Runner for Java to 0.43.2?

  15. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    Could you try to disable Gradle for Java and update Test Runner for Java to 0.43.2?

    @snjeza Right now, the latest version of Test Runner for Java hasn't been pushed to the plugin marketplace yet. I'll test it tomorrow morning at 9 AM (that's in about 10 hours).

  16. fbricon commented on Dec 2, 2025

    @fbricon
    Collaborator

    0.43.2 is the latest Test Runner for Java release available on the marketplace. It's more recent than the months old pre-release version you're using. Microsoft is working on a new pre-release but we have no ETA when they'll release it. So you should definitely switch.

  17. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    0.43.2 is the latest release available on the marketplace. It's more recent than the months old pre-release version you're using. Microsoft is working on a new pre-release but we have no ETA when they'll release it. So you should definitely switch.Test Runner for Java

    @fbricon I see. I'll switch to the official version in a moment.

  18. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    Could you try to disable Gradle for Java and update Test Runner for Java to 0.43.2?

    @snjeza @fbricon This is the result of the recent test.

    Image Image
  19. mozhuanzuojing commented on Dec 2, 2025

    @mozhuanzuojing
    ContributorAuthor

    Could you try to disable Gradle for Java and update Test Runner for Java to 0.43.2?

    @fbricon @snjeza It seems to have some effect. The indexing task now finishes in about 5-6 minutes.

    Image
  20. mozhuanzuojing commented on Dec 10, 2025

    @mozhuanzuojing
    ContributorAuthor

    I suspect that the Java index building in the vscode-insiders version is incomplete.

    The following screenshot is from my company's computer, where the environment is essentially identical. With approximately 20,000 source code files and about 50,000 JARs scanned for indexing (including duplicates), cleaning and rebuilding the entire workspace takes only 5 minutes. All extension configurations are set to the preview version. in wsl2.

    Image
  21. mozhuanzuojing commented on Dec 10, 2025

    @mozhuanzuojing
    ContributorAuthor

    The configuration of the company computer is as follows.

    Image

    Comparative Analysis of the Two Environments

    Comparison Item My Laptop Company Computer
    VS Code Version VS Code Insiders (Preview) VS Code Stable (Official Release)
    CPU Cores 4 cores 8 cores
    RAM ddr3(32GB) ddr4(32GB)
    Extension Pack for Java Version pre-release pre-release
    os system WSL2(Ubuntu24.04) WSL2(Ubuntu24.04)
    java number ~7000 ~21000
    jar number ~7000 ~8000
    indexing cost 40 - 80min 5 - 10min
  22. changed the title [-]indexing cost too long time (20min+)[/-] [+]indexing cost too long time (40min+)[/+] on Dec 10, 2025
  23. changed the title [-]indexing cost too long time (40min+)[/-] [+]indexing cost too long time (40min+) **Only occurs in the `VS Code - Insiders`**[/+] on Dec 15, 2025
  24. changed the title [-]indexing cost too long time (40min+) **Only occurs in the `VS Code - Insiders`**[/-] [+]indexing cost too long time (40min+) Only occurs in the `VS Code - Insiders`[/+] on Dec 15, 2025
  25. mozhuanzuojing commented on Dec 15, 2025

    @mozhuanzuojing
    ContributorAuthor

    @fbricon @snjeza Upon comparison today, we found that the issue of the index-building process taking too long occurs only in VS Code Insiders (Preview).

  26. fbricon commented on Dec 17, 2025

    @fbricon
    Collaborator

    can you try setting "java.sharedIndexes.enabled":"off", as it's automatically enabled in vscode insiders.

    Image

    You can also change the index location, see if a fresh index would help (when sharedIndexes are enabled).

  27. mozhuanzuojing commented on Dec 18, 2025

    @mozhuanzuojing
    ContributorAuthor

    can you try setting "java.sharedIndexes.enabled":"off", as it's automatically enabled in vscode insiders.

    @fbricon Thanks a lot. After disabling the shared index, everything is working normally now.

    You can also change the index location, see if a fresh index would help (when sharedIndexes are enabled).

    @fbricon Changing the index location had no effect on the slow index build speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions