{
  "name": "vscode-extension-yard-editor",
  "version": "0.27.0",
  "description": "Edit yard definitions",
  "license": "Apache-2.0",
  "publisher": "redhat",
  "keywords": [],
  "homepage": "https://github.com/kiegroup/kie-tools",
  "repository": {
    "type": "git",
    "url": "https://github.com/kiegroup/kie-tools.git"
  },
  "bugs": {
    "url": "https://github.com/kiegroup/kie-tools/issues"
  },
  "browser": "./dist/extension/extensionWeb.js",
  "main": "dist/extension/extension.js",
  "dependencies": {
    "monaco-editor": "^0.33.0",
    "monaco-yaml": "^4.0.0",
    "openapi-types": "^7.0.1",
    "vscode-languageserver-textdocument": "^1.0.4",
    "vscode-languageserver-types": "^3.16.0",
    "yaml": "^2.0.1",
    "@kie-tools-core/backend": "0.27.0",
    "@kie-tools-core/i18n": "0.27.0",
    "@kie-tools-core/notifications": "0.27.0",
    "@kie-tools-core/patternfly-base": "0.27.0",
    "@kie-tools-core/vscode-extension": "0.27.0",
    "@kie-tools-core/vscode-java-code-completion": "0.27.0",
    "@kie-tools-core/workspace": "0.27.0",
    "@kie-tools-core/editor": "0.27.0",
    "@kie-tools-core/envelope-bus": "0.27.0",
    "@kie-tools-core/guided-tour": "0.27.0",
    "@kie-tools/yard-editor": "0.27.0"
  },
  "devDependencies": {
    "@types/chai": "^4.2.17",
    "@types/mocha": "^8.2.2",
    "@types/selenium-webdriver": "^4.1.9",
    "@types/vscode": "^1.66.0",
    "@vscode/test-web": "^0.0.30",
    "@vscode/vsce": "^2.15.0",
    "chai": "^4.3.4",
    "cpr": "^3.0.1",
    "mocha": "^9.2.0",
    "mocha-jenkins-reporter": "^0.4.5",
    "mocha-junit-reporter": "^2.0.2",
    "mocha-multi-reporters": "^1.5.1",
    "monaco-editor-webpack-plugin": "^7.0.1",
    "rimraf": "^3.0.2",
    "selenium-webdriver": "^4.7.1",
    "typescript": "^4.4.2",
    "vscode-extension-tester": "5.3.0",
    "vscode-test": "^1.6.1",
    "webpack": "^5.36.2",
    "webpack-cli": "^4.10.0",
    "webpack-dev-server": "^4.7.3",
    "webpack-merge": "^5.8.0",
    "@kie-tools-core/webpack-base": "0.27.0",
    "@kie-tools/eslint": "0.27.0",
    "@kie-tools/root-env": "0.27.0",
    "@kie-tools/tsconfig": "0.27.0"
  },
  "engines": {
    "vscode": "^1.66.0"
  },
  "displayName": "Kogito yard Editor",
  "categories": [
    "Other"
  ],
  "contributes": {
    "commands": [
      {
        "command": "extension.kogito.yard.setupAutomaticallyOpenDiagramEditorAlongsideTextEditor",
        "title": "yard: Setup automatically open Diagram Editor alongside Text Editor"
      },
      {
        "command": "extension.kogito.yard.openAsDiagram",
        "icon": "$(open-preview)",
        "title": "yard: Open as Diagram (to the side)"
      },
      {
        "command": "extension.kogito.yard.openAsSource",
        "icon": "$(go-to-file)",
        "title": "yard: Open as Source"
      }
    ],
    "configuration": {
      "properties": {
        "kogito.yard.automaticallyOpenDiagramEditorAlongsideTextEditor": {
          "default": "Ask next time",
          "enum": [
            "Open automatically",
            "Do not open",
            "Ask next time"
          ],
          "markdownDescription": "When opening yard files, decide whether or not to open the Diagram Editor alongside the text editor. Regardless of the configured option, you can always open the yard Diagram Editor using the 'Open as Diagram' button.",
          "type": "string"
        },
        "kogito.yard.runOnSave": {
          "markdownDescription": "Execute a command on each save operation of the yard file.",
          "type": "string"
        }
      },
      "title": "yard Editor"
    },
    "configurationDefaults": {
      "[yaml]": {
        "editor.wordBasedSuggestions": false
      },
      "[yard-json]": {
        "editor.wordBasedSuggestions": false
      },
      "[yard-yaml]": {
        "editor.wordBasedSuggestions": false
      },
      "files.associations": {
        "*.yard.yaml": "yaml",
        "*.yard.yml": "yaml"
      }
    },
    "customEditors": [
      {
        "displayName": "yard Editor",
        "priority": "option",
        "selector": [
          {
            "filenamePattern": "*.{yard.yaml,yard.yml}"
          }
        ],
        "viewType": "kieKogitoWebviewEditorsYard"
      }
    ],
    "grammars": [
      {
        "language": "yard-yaml",
        "path": "./syntaxes/YAML.tmLanguage.json",
        "scopeName": "source.yaml"
      }
    ],
    "keybindings": [
      {
        "command": "extension.kogito.yard.openAsDiagram",
        "key": "ctrl+k v",
        "mac": "cmd+k v",
        "when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)$/"
      },
      {
        "command": "extension.kogito.yard.openAsSource",
        "key": "ctrl+k v",
        "mac": "cmd+k v",
        "when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
      }
    ],
    "languages": [
      {
        "aliases": [
          "yard (YAML)",
          "yard.yaml",
          "yard.yml"
        ],
        "configuration": "./languageConfiguration/yamlLanguageConfiguration.json",
        "extensions": [
          ".yard.yml",
          ".yard.yaml"
        ],
        "id": "yard-yaml"
      }
    ],
    "menus": {
      "commandPalette": [
        {
          "command": "extension.kogito.yard.openAsSource",
          "when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
        },
        {
          "command": "extension.kogito.yard.openAsDiagram",
          "when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)/"
        }
      ],
      "editor/title": [
        {
          "command": "extension.kogito.yard.openAsSource",
          "group": "navigation",
          "when": "activeCustomEditorId == kieKogitoWebviewEditorsYard"
        },
        {
          "command": "extension.kogito.yard.openAsDiagram",
          "group": "navigation",
          "when": "!activeCustomEditorId && resourceFilename =~ /^.*\\.yard\\.(yaml|yml)/"
        }
      ]
    }
  },
  "activationEvents": [
    "onLanguage:yaml",
    "onLanguage:yard-yaml",
    "onCustomEditor:kieKogitoWebviewEditorsYard"
  ],
  "icon": "icon.png",
  "capabilities": {
    "untrustedWorkspaces": {
      "supported": false
    }
  },
  "vsce": {
    "dependencies": false
  },
  "scripts": {
    "build:dev": "rimraf dist && webpack --env dev",
    "build:prod": "rimraf dist && webpack && pnpm pack:prod && pnpm test:it",
    "compile": "webpack --env dev",
    "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_yard_editor_$npm_package_version.vsix",
    "run:webmode": "pnpm vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --version=stable",
    "test:it": "run-script-if --ignore-errors \"$(build-env integrationTests.ignoreFailures)\" --bool \"$(build-env integrationTests.run)\" --then \"pnpm test:it:clean\" \"cpr it-tests/resources it-tests-tmp/resources\" \"tsc --project tsconfig.it-tests.json --skipLibCheck --sourceMap true\" \"extest setup-and-run --yarn -c max -u -e ./test-resources -o ./it-tests/settings.json out/*.test.js\"",
    "test:it:clean": "rimraf ./dist-it-tests && rimraf ./test-resources && rimraf ./out && rimraf ./it-tests-tmp && rimraf test-resou && rimraf *.vsix",
    "watch": "webpack --env dev"
  }
}