Commit d64984b9 authored by Paul Marshall's avatar Paul Marshall Committed by Tomas Vik (OOO back on 2026-08-31)
Browse files

feat: add scope and search level to advance search prompt

parent 59f6345a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ You can use [Command Palette](https://code.visualstudio.com/docs/getstarted/user

- `GitLab: Search Project Issues (Supports Filters)`. [Read more](#search-with-filters)
- `GitLab: Search Project Merge Requests (Supports Filters)`. [Read more](#search-with-filters)
- `GitLab: Project Advanced Search (Issues, Merge Requests, Commits, Comments...)`. [Read more](#search-with-advanced-search)
- `GitLab: Advanced Search (Issues, Merge Requests, Commits, Comments...)`. [Read more](#search-with-advanced-search)
- `GitLab: Create Snippet` - Create public, internal or private snippet from entire file or selection. [Read more](#create-snippet).
- `GitLab: Insert Snippet` - Insert a project snippet, supports multi-file snippets. [Read more](#insert-snippet).
- `GitLab: Compare Current Branch with Default Branch` - Compare your branch with the repository's default branch and view changes on GitLab. [Read more](#compare-with-default-branch).
@@ -237,7 +237,7 @@ It can become more powerful by allowing you to filter issues/MRs by author, assi

#### Search with Advanced Search

GitLab provides [Advanced Search feature which is backed by Elasticsearch](https://docs.gitlab.com/ee/integration/elasticsearch.html). Please see [Advanced Search syntax](https://docs.gitlab.com/ee/user/search/advanced_search_syntax.html) for more details.
GitLab provides [Advanced Search feature which is backed by Elasticsearch](https://docs.gitlab.com/ee/integration/elasticsearch.html). Please see [Advanced Search syntax](https://docs.gitlab.com/ee/user/search/advanced_search.html#syntax) for more details.

### Create snippet

+2 −1
Original line number Diff line number Diff line
@@ -22,7 +22,8 @@
        "url": "^0.11.0"
      },
      "devDependencies": {
        "@types/jest": "^29.5.0",
        "@jest/globals": "^29.5.0",
        "@types/jest": "^29.4.0",
        "@types/node": "^13.13.52",
        "@types/request-promise": "^4.1.48",
        "@types/semver": "^7.3.8",
+5 −4
Original line number Diff line number Diff line
@@ -125,8 +125,8 @@
        "category": "GitLab"
      },
      {
        "command": "gl.projectAdvancedSearch",
        "title": "Project Advanced Search (Issues, Merge Requests, Commits, Comments...)",
        "command": "gl.advancedSearch",
        "title": "Advanced Search (Issues, Merge Requests, Commits, Comments...)",
        "category": "GitLab"
      },
      {
@@ -468,7 +468,7 @@
          "when": "gitlab:validState"
        },
        {
          "command": "gl.projectAdvancedSearch",
          "command": "gl.advancedSearch",
          "when": "gitlab:validState"
        },
        {
@@ -1110,7 +1110,8 @@
    "update-ci-variables": "node ./scripts/update_ci_variables.js"
  },
  "devDependencies": {
    "@types/jest": "^29.5.0",
    "@jest/globals": "^29.5.0",
    "@types/jest": "^29.4.0",
    "@types/node": "^13.13.52",
    "@types/request-promise": "^4.1.48",
    "@types/semver": "^7.3.8",
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ export const USER_COMMANDS = {
  PIPELINE_ACTIONS: 'gl.pipelineActions',
  ISSUE_SEARCH: 'gl.issueSearch',
  MERGE_REQUEST_SEARCH: 'gl.mergeRequestSearch',
  PROJECT_ADVANCED_SEARCH: 'gl.projectAdvancedSearch',
  ADVANCED_SEARCH: 'gl.advancedSearch',
  COMPARE_CURRENT_BRANCH: 'gl.compareCurrentBranch',
  CREATE_SNIPPET: 'gl.createSnippet',
  INSERT_SNIPPET: 'gl.insertSnippet',
+2 −2
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ import { selectedProjectStore } from './gitlab/selected_project_store';
import {
  showIssueSearchInput,
  showMergeRequestSearchInput,
  showProjectAdvancedSearchInput,
  showAdvancedSearchInput,
} from './search_input';
import { migrateCredentials } from './accounts/credentials_migrator';
import { migrateSelectedProjects } from './gitlab/migrate_selected_projects';
@@ -123,7 +123,7 @@ const registerCommands = (
    [USER_COMMANDS.PIPELINE_ACTIONS]: runWithValidProject(triggerPipelineAction),
    [USER_COMMANDS.ISSUE_SEARCH]: runWithValidProject(showIssueSearchInput),
    [USER_COMMANDS.MERGE_REQUEST_SEARCH]: runWithValidProject(showMergeRequestSearchInput),
    [USER_COMMANDS.PROJECT_ADVANCED_SEARCH]: runWithValidProject(showProjectAdvancedSearchInput),
    [USER_COMMANDS.ADVANCED_SEARCH]: runWithValidProject(showAdvancedSearchInput),
    [USER_COMMANDS.COMPARE_CURRENT_BRANCH]: runWithValidProject(openers.compareCurrentBranch),
    [USER_COMMANDS.CREATE_SNIPPET]: runWithValidProject(createSnippet),
    [USER_COMMANDS.INSERT_SNIPPET]: runWithValidProject(insertSnippet),
Loading