{
  "name": "vscode-extension-dashbuilder-editor",
  "version": "10.2.0",
  "description": "Edit Dashbuilder files",
  "license": "Apache-2.0",
  "publisher": "redhat",
  "keywords": [],
  "homepage": "https://github.com/apache/incubator-kie-tools",
  "repository": {
    "type": "git",
    "url": "https://github.com/apache/incubator-kie-tools.git"
  },
  "bugs": {
    "url": "https://github.com/apache/incubator-kie-tools/issues"
  },
  "browser": "./dist/browser/extension.js",
  "main": "dist/extension/extension.js",
  "dependencies": {
    "portfinder": "^1.0.32",
    "vscode-languageserver-types": "^3.16.0",
    "@kie-tools-core/editor": "10.2.0",
    "@kie-tools-core/envelope-bus": "10.2.0",
    "@kie-tools-core/i18n": "10.2.0",
    "@kie-tools-core/notifications": "10.2.0",
    "@kie-tools-core/patternfly-base": "10.2.0",
    "@kie-tools-core/vscode-extension": "10.2.0",
    "@kie-tools-core/vscode-java-code-completion": "10.2.0",
    "@kie-tools-core/workspace": "10.2.0",
    "@kie-tools/dashbuilder-viewer": "10.2.0",
    "@kie-tools/dashbuilder-language-service": "10.2.0"
  },
  "devDependencies": {
    "@types/chai": "^4.3.6",
    "@types/fs-extra": "^11.0.1",
    "@types/mocha": "^10.0.7",
    "@types/react": "^17.0.6",
    "@types/selenium-webdriver": "^4.1.27",
    "@types/vscode": "1.67.0",
    "@vscode/test-web": "^0.0.66",
    "@vscode/vsce": "^3.7.1",
    "chai": "^4.3.10",
    "copy-webpack-plugin": "^11.0.0",
    "cpr": "^3.0.1",
    "mocha": "^10.6.0",
    "mocha-jenkins-reporter": "^0.4.8",
    "mocha-junit-reporter": "^2.2.1",
    "mocha-multi-reporters": "^1.5.1",
    "process": "^0.11.10",
    "rimraf": "^3.0.2",
    "sanitize-filename-ts": "^1.0.2",
    "selenium-webdriver": "^4.27.0",
    "typescript": "^5.9.3",
    "vscode-extension-tester": "^8.10.0",
    "webpack": "^5.104.1",
    "webpack-cli": "^4.10.0",
    "webpack-dev-server": "^4.15.2",
    "webpack-merge": "^5.9.0",
    "@kie-tools/dashbuilder-client": "10.2.0",
    "@kie-tools/eslint": "10.2.0",
    "@kie-tools/root-env": "10.2.0",
    "@kie-tools/tsconfig": "10.2.0",
    "@kie-tools-core/webpack-base": "10.2.0",
    "@kie-tools/vscode-extension-common-test-helpers": "10.2.0"
  },
  "engines": {
    "vscode": "^1.67.0"
  },
  "displayName": "Apache KIE™ Dashbuilder Editor",
  "contributes": {
    "capabilities": {
      "untrustedWorkspaces": {
        "supported": false
      }
    },
    "commands": [
      {
        "command": "extension.kogito.dashbuilder.setupAutomaticallyOpenDashboardEditorAlongsideTextEditor",
        "title": "Dashbuilder: Setup automatically open Dashboard Editor alongside Text Editor"
      },
      {
        "command": "extension.kogito.dashbuilder.openAsDashboard",
        "icon": "$(open-preview)",
        "title": "Dashbuilder: Open as Dashboard (to the side)"
      },
      {
        "command": "extension.kogito.dashbuilder.openAsSource",
        "icon": "$(go-to-file)",
        "title": "Dashbuilder: Open as Source"
      }
    ],
    "configuration": {
      "properties": {
        "kogito.dashbuilder.automaticallyOpenDashboardEditorAlongsideTextEditor": {
          "default": "Ask next time",
          "enum": [
            "Open automatically",
            "Do not open",
            "Ask next time"
          ],
          "markdownDescription": "When opening Dashbuilder files, decide whether or not to open the Dashboard Editor alongside the text editor. Regardless of the configured option, you can always open the dashbuilder Dashboard Editor using the 'Open as Dashboard' button.",
          "type": "string"
        }
      },
      "title": "Dashbuilder Editor"
    },
    "configurationDefaults": {
      "files.associations": {
        "*.dash.json": "json",
        "*.dash.yaml": "yaml",
        "*.dash.yml": "yaml"
      },
      "yaml.schemas": {
        "https://www.dashbuilder.org/schemas/0.1/dashbuilder.json": [
          "**/*.dash.yml",
          "**/*.dash.yaml",
          "**/*.dash.json"
        ]
      }
    },
    "customEditors": [
      {
        "displayName": "Dashbuilder Editor",
        "priority": "option",
        "selector": [
          {
            "filenamePattern": "*.dash.{yaml,yml,json}"
          }
        ],
        "viewType": "kieKogitoWebviewEditorsDashbuilder"
      }
    ],
    "javaExtensions": [],
    "keybindings": [
      {
        "command": "extension.kogito.dashbuilder.openAsDashboard",
        "key": "ctrl+k v",
        "mac": "cmd+k v",
        "when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.dash\\.(json|yaml|yml)$/"
      },
      {
        "command": "extension.kogito.dashbuilder.openAsSource",
        "key": "ctrl+k v",
        "mac": "cmd+k v",
        "when": "activeCustomEditorId == kieKogitoWebviewEditorsDashbuilder"
      }
    ],
    "languages": [
      {
        "aliases": [
          "dashbuilder (JSON)",
          "dash.json"
        ],
        "extensions": [
          ".dash.json"
        ],
        "id": "dash-json"
      },
      {
        "aliases": [
          "dashbuilder (YAML)",
          "dash.yaml",
          "dash.yml",
          "dash.json"
        ],
        "extensions": [
          ".dash.yml",
          ".dash.yaml",
          ".dash.json"
        ],
        "id": "dash-yaml"
      }
    ],
    "menus": {
      "commandPalette": [
        {
          "command": "extension.kogito.dashbuilder.openAsDashboard",
          "when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.dash\\.(json|yaml|yml)/"
        },
        {
          "command": "extension.kogito.dashbuilder.openAsSource",
          "when": "activeCustomEditorId == kieKogitoWebviewEditorsDashbuilder"
        }
      ],
      "editor/title": [
        {
          "command": "extension.kogito.dashbuilder.openAsDashboard",
          "group": "navigation",
          "when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.dash\\.(json|yaml|yml)/"
        },
        {
          "command": "extension.kogito.dashbuilder.openAsSource",
          "group": "navigation",
          "when": "activeCustomEditorId == kieKogitoWebviewEditorsDashbuilder"
        }
      ]
    }
  },
  "activationEvents": [
    "onLanguage:json",
    "onLanguage:yaml",
    "onLanguage:dash-json",
    "onLanguage:dash-yaml",
    "onCustomEditor:kieKogitoWebviewEditorsDashbuilder"
  ],
  "extensionDependencies": [
    "redhat.vscode-yaml"
  ],
  "icon": "icon.png",
  "vsce": {
    "dependencies": false
  },
  "scripts": {
    "build:dev": "rimraf dist && webpack --env dev",
    "build:prod": "rimraf dist && webpack && pnpm pack:prod && pnpm test-e2e",
    "compile": "webpack",
    "lint": "run-script-if --bool \"$(build-env linters.run)\" --then \"kie-tools--eslint ./src\"",
    "pack:prod": "vsce package --githubBranch main --no-dependencies -o ./dist/vscode_extension_dashbuilder_editor_$npm_package_version.vsix",
    "run:webmode": "pnpm exec vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --version=stable",
    "test-e2e": "run-script-if --ignore-errors \"$(build-env endToEndTests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then \"pnpm test-e2e:clean\" \"cpr e2e-tests/resources e2e-tests-tmp/resources\" \"tsc --project tsconfig.e2e-tests.json --skipLibCheck --sourceMap true\" \"extest setup-and-run --yarn -c max -u -e ./test-resources -o ./e2e-tests/settings.json out/*.test.js\"",
    "test-e2e:clean": "rimraf ./dist-tests-e2e && rimraf ./test-resources && rimraf ./out && rimraf ./e2e-tests-tmp && rimraf *.vsix",
    "test-e2e:insider": "rimraf ./test-resources && rimraf ./out && tsc --project tsconfig.e2e-tests.json --skipLibCheck --sourceMap true && extest setup-and-run --yarn -t insider -u -e ./test-resources -o ./e2e-tests/settings.json out/*.test.js",
    "watch": "export WEBPACK__sourceMaps=true; WEBPACK__minimize=false; webpack --env dev"
  }
}