aboutsummaryrefslogtreecommitdiff
path: root/plugin/package.json
blob: 7b6527d0594fa3f9b837fff63c4e18737221c8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94

{
  "name": "plugin",
  "displayName": "plugin",
  "description": "CIE pseudocode highlighting, Tab indentation, bracket checking and terminal execution for .cps files.",
  "version": "0.1.0",
  "publisher": "ovfor4",
  "author": "_ov4",
  "license": "AGPL-3.0-only",
  "repository": {
    "type": "git",
    "url": "https://github.com/ovfor4/cie-pseudocode-compiler.git",
    "directory": "plugin"
  },
  "engines": {
    "vscode": "^1.85.0"
  },
  "main": "./src/extension.js",
  "categories": [
    "Programming Languages",
    "Formatters"
  ],
  "scripts": {
    "check": "node --check src/extension.js && node --check src/indentation.js && node --check src/lexical.js && node --check src/brackets.js && node --check src/runner.js && node --check scripts/package.js",
    "test": "node --test test/*.test.js",
    "package": "npm run check && npm test && node scripts/package.js"
  },
  "contributes": {
    "commands": [
      {
        "command": "cie-pseudocode.runFile",
        "title": "Run Pseudocode File in Terminal",
        "enablement": "editorLangId == cie-pseudocode",
        "icon": "$(play)"
      }
    ],
    "menus": {
      "editor/title": [
        {
          "command": "cie-pseudocode.runFile",
          "when": "editorLangId == cie-pseudocode",
          "group": "navigation@1"
        }
      ]
    },
    "configuration": {
      "title": "CIE Pseudocode",
      "properties": {
        "cie-pseudocode.compilerPath": {
          "type": "string",
          "default": "cpsc",
          "scope": "resource",
          "description": "Compiler executable name on PATH or full path to cpsc (cpsc.exe on Windows)."
        }
      }
    },
    "languages": [
      {
        "id": "cie-pseudocode",
        "aliases": [
          "CIE Pseudocode",
          "cie-pseudocode"
        ],
        "extensions": [
          ".cps"
        ],
        "configuration": "./language-configuration.json"
      }
    ],
    "configurationDefaults": {
      "[cie-pseudocode]": {
        "editor.insertSpaces": false,
        "editor.tabSize": 4,
        "editor.detectIndentation": false,
        "editor.autoIndent": "full",
        "editor.formatOnType": true,
        "editor.defaultFormatter": "ovfor4.plugin",
        "editor.bracketPairColorization.enabled": true,
        "editor.bracketPairColorization.independentColorPoolPerBracketType": false
      }
    },
    "grammars": [
      {
        "language": "cie-pseudocode",
        "scopeName": "source.cie-pseudocode",
        "path": "./syntaxes/cie-pseudocode.tmLanguage.json"
      }
    ]
  },
  "devDependencies": {
    "@vscode/vsce": "^4.0.0",
    "vscode-oniguruma": "^2.0.1",
    "vscode-textmate": "^9.3.2"
  }
}