{
  "name": "foam-vscode",
  "displayName": "Foam for VSCode (Wikilinks to Markdown)",
  "description": "Generate markdown reference lists from wikilinks in a workspace",
  "author": "Jani Eväkallio",
  "repository": {
    "url": "https://github.com/foambubble/foam",
    "type": "git"
  },
  "homepage": "https://github.com/foambubble/foam",
  "version": "0.7.2",
  "license": "MIT",
  "publisher": "foam",
  "engines": {
    "vscode": "^1.45.1"
  },
  "icon": "icon/FOAM_ICON_256.png",
  "categories": [
    "Other"
  ],
  "activationEvents": [
    "workspaceContains:.vscode/foam.json",
    "onView:foam-vscode.tags-explorer",
    "onCommand:foam-vscode.update-wikilinks",
    "onCommand:foam-vscode.open-daily-note",
    "onCommand:foam-vscode.janitor",
    "onCommand:foam-vscode.copy-without-brackets",
    "onCommand:foam-vscode.show-graph"
  ],
  "main": "./out/extension.js",
  "contributes": {
    "views": {
      "explorer": [
        {
          "id": "foam-vscode.tags-explorer",
          "name": "Tag Explorer",
          "icon": "media/dep.svg",
          "contextualTitle": "Tags Explorer"
        }
      ]
    },
    "commands": [
      {
        "command": "foam-vscode.set-log-level",
        "title": "Foam: Set log level"
      },
      {
        "command": "foam-vscode.show-graph",
        "title": "Foam: Show graph"
      },
      {
        "command": "foam-vscode.update-wikilinks",
        "title": "Foam: Update Markdown Reference List"
      },
      {
        "command": "foam-vscode.open-daily-note",
        "title": "Foam: Open Daily Note"
      },
      {
        "command": "foam-vscode.janitor",
        "title": "Foam: Run Janitor (Experimental)"
      },
      {
        "command": "foam-vscode.copy-without-brackets",
        "title": "Foam: Copy To Clipboard Without Brackets"
      },
      {
        "command": "foam-vscode.create-note-from-template",
        "title": "Foam: Create New Note From Template"
      }
    ],
    "configuration": {
      "title": "Foam",
      "properties": {
        "foam.files.ignore": {
          "type": [
            "array"
          ],
          "default": [
            "**/.vscode/**/*",
            "**/_layouts/**/*",
            "**/_site/**/*",
            "**/node_modules/**/*"
          ],
          "description": "Specifies the list of globs that will be ignored by Foam (e.g. they will not be considered when creating the graph). To ignore the all the content of a given folder, use `<folderName>/**/*`"
        },
        "foam.logging.level": {
          "type": "string",
          "default": "info",
          "enum": [
            "off",
            "debug",
            "info",
            "warn",
            "error"
          ]
        },
        "foam.edit.linkReferenceDefinitions": {
          "type": "string",
          "default": "withoutExtensions",
          "enum": [
            "withExtensions",
            "withoutExtensions",
            "off"
          ],
          "enumDescriptions": [
            "Include extension in wikilinks paths",
            "Remove extension in wikilink paths",
            "Disable wikilink definitions generation"
          ]
        },
        "foam.openDailyNote.fileExtension": {
          "type": "string",
          "scope": "resource",
          "default": "md"
        },
        "foam.openDailyNote.filenameFormat": {
          "type": "string",
          "default": "isoDate",
          "markdownDescription": "Specifies how the daily note filename is formatted. See the [dateformat docs](https://www.npmjs.com/package/dateformat) for valid formats",
          "scope": "resource"
        },
        "foam.openDailyNote.titleFormat": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "markdownDescription": "Specifies how the daily note title is formatted. Will default to the filename format if set to null. See the [dateformat docs](https://www.npmjs.com/package/dateformat) for valid formats",
          "scope": "resource"
        },
        "foam.openDailyNote.directory": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "description": "The directory into which daily notes should be created. Defaults to the workspace root."
        },
        "foam.dateSnippets.afterCompletion": {
          "type": "string",
          "default": "createNote",
          "enum": [
            "noop",
            "createNote",
            "navigateToNote"
          ],
          "enumDescriptions": [
            "Nothing happens after selecting the completion item",
            "The note is created following your daily note settings if it does not exist, but no navigation takes place",
            "Navigates to the note, creating it following your daily note settings if it does not exist"
          ],
          "description": "Whether or not to navigate to the target daily note when a daily note snippet is selected."
        },
        "foam.graph.titleMaxLength": {
          "type": "number",
          "default": 24,
          "description": "The maximum title length before being abbreviated. Set to 0 or less to disable."
        }
      }
    },
    "keybindings": [
      {
        "command": "foam-vscode.open-daily-note",
        "key": "alt+d"
      }
    ]
  },
  "scripts": {
    "build": "tsc -p ./",
    "test": "jest",
    "lint": "eslint src --ext ts",
    "clean": "tsc --build ./tsconfig.json ../foam-core/tsconfig.json --clean",
    "watch": "tsc --build ./tsconfig.json ../foam-core/tsconfig.json --watch",
    "vscode:start-debugging": "yarn clean && yarn watch",
    "vscode:prepublish": "yarn npm-install && yarn run build",
    "npm-install": "rimraf node_modules && npm i",
    "npm-cleanup": "rimraf package-lock.json node_modules && yarn",
    "package-extension": "npx vsce package && yarn npm-cleanup",
    "install-extension": "code --install-extension ./foam-vscode-$npm_package_version.vsix",
    "publish-extension": "npx vsce publish --packagePath foam-vscode-$npm_package_version.vsix && yarn npm-cleanup"
  },
  "devDependencies": {
    "@babel/core": "^7.11.0",
    "@babel/preset-env": "^7.11.0",
    "@babel/preset-typescript": "^7.10.4",
    "@types/dateformat": "^3.0.1",
    "@types/glob": "^7.1.1",
    "@types/node": "^13.11.0",
    "@types/vscode": "^1.45.1",
    "@typescript-eslint/eslint-plugin": "^2.30.0",
    "@typescript-eslint/parser": "^2.30.0",
    "babel-jest": "^26.2.2",
    "eslint": "^6.8.0",
    "glob": "^7.1.6",
    "jest": "^26.2.2",
    "rimraf": "^3.0.2",
    "typescript": "^3.8.3",
    "vscode-test": "^1.3.0"
  },
  "dependencies": {
    "dateformat": "^3.0.3",
    "foam-core": "^0.7.2"
  }
}
