# java-imports-search **Repository Path**: mirrors_sourcegraph/java-imports-search ## Basic Information - **Project Name**: java-imports-search - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-12-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Java imports search ## ⚠️ Deprecation notice **Sourcegraph extensions have been deprecated with the September 2022 Sourcegraph release. [Learn more](https://docs.sourcegraph.com/extensions/deprecation).** The repo and the docs below are kept to support older Sourcegraph versions. ## Description Lets you easily search for all files using a Java package. Adds a new operator `java.imports:` for all import statements of the package passed to the operator. NOTE: regular expression search mode is required for the `java.imports` keyword to work. The extension automatically appends `patternType:regexp` to queries containing `java.imports`. This extension also adds a "See all usages" link at the end of import statement lines, which will execute the `java.imports` search for the relevant module. To enable "See all usages" links, add `"javaImports.showAllUsagesLinks": true` to your user settings. ## Prerequisites Sourcegraph extensions are written in TypeScript and are distributed as bundled JavaScript files that run on the client. For creation, publishing, and viewing, you need: - **Creation**: Install [Node.js](https://nodejs.org). - **Publishing**: Install the [Sourcegraph CLI (`src`)](https://github.com/sourcegraph/src-cli#installation) and create a [Sourcegraph.com account](https://sourcegraph.com/sign-up). - **Viewing**: Install the Sourcegraph extension for [Chrome](https://chrome.google.com/webstore/detail/sourcegraph/dgjhfomjieaadpoljlnidmbgkdffpack) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/sourcegraph/). ## Set up ``` npm install ``` ## Lint and type check ``` npm run tslint npm run typecheck ``` ## Publish ``` src extensions publish ``` ## Sourcegraph extension API Visit the [Sourcegraph extension documentation](https://github.com/sourcegraph/sourcegraph-extension-docs) and check out some [Sourcegraph extension samples](https://github.com/sourcegraph/sourcegraph-extension-samples).