AngelscriptLanguageServer/package.json

257 lines
5.5 KiB
JSON

{
"name": "angelscript-languageserver",
"description": "Language server for Angelscript, provides grammars and basic compile checks.",
"author": "Deukhoofd",
"publisher": "Deukhoofd",
"license": "MIT",
"version": "1.2.0",
"repository": {
"type": "git",
"url": "https://git.p-epsilon.com/Deukhoofd/AngelscriptLanguageServer"
},
"categories": [],
"keywords": [
"Angelscript"
],
"engines": {
"vscode": "^1.43.0"
},
"activationEvents": [
"onLanguage:Angelscript",
"onLanguage:AngelscriptTypeDefinition"
],
"main": "./client/out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Angelscript",
"properties": {
"angelscript-languageserver.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"angelscript-languageserver.defines": {
"scope": "window",
"type": "array",
"items": {
"type": "string"
}
},
"angelscript-languageserver.engine-settings": {
"scope": "window",
"type": "object",
"properties": {
"asEP_ALLOW_UNSAFE_REFERENCES": {
"type": "boolean",
"default": false
},
"asEP_OPTIMIZE_BYTECODE": {
"type": "boolean",
"default": true
},
"asEP_COPY_SCRIPT_SECTIONS": {
"type": "boolean",
"default": true
},
"asEP_MAX_STACK_SIZE ": {
"type": "integer",
"default": 0
},
"asEP_USE_CHARACTER_LITERALS": {
"type": "boolean",
"default": false
},
"asEP_ALLOW_MULTILINE_STRINGS ": {
"type": "boolean",
"default": false
},
"asEP_ALLOW_IMPLICIT_HANDLE_TYPES": {
"type": "boolean",
"default": false
},
"asEP_BUILD_WITHOUT_LINE_CUES": {
"type": "boolean",
"default": false
},
"asEP_INIT_GLOBAL_VARS_AFTER_BUILD": {
"type": "boolean",
"default": true
},
"asEP_REQUIRE_ENUM_SCOPE": {
"type": "boolean",
"default": true
},
"asEP_SCRIPT_SCANNER": {
"type": "integer",
"default": 1,
"enum": [
0,
1
]
},
"asEP_INCLUDE_JIT_INSTRUCTIONS": {
"type": "boolean",
"default": false
},
"asEP_STRING_ENCODING": {
"type": "integer",
"default": 0,
"enum": [
0,
1
]
},
"asEP_PROPERTY_ACCESSOR_MODE": {
"type": "integer",
"default": 3,
"enum": [
0,
1,
2,
3
]
},
"asEP_EXPAND_DEF_ARRAY_TO_TMPL": {
"type": "boolean",
"default": false
},
"asEP_AUTO_GARBAGE_COLLECT": {
"type": "boolean",
"default": true
},
"asEP_DISALLOW_GLOBAL_VARS": {
"type": "boolean",
"default": false
},
"asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT": {
"type": "boolean",
"default": false
},
"asEP_COMPILER_WARNINGS": {
"type": "integer",
"default": 1,
"enum": [
0,
1,
2
]
},
"asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE": {
"type": "boolean",
"default": false
},
"asEP_ALTER_SYNTAX_NAMED_ARGS": {
"type": "integer",
"default": 0,
"enum": [
0,
1,
2
]
},
"asEP_DISABLE_INTEGER_DIVISION": {
"type": "boolean",
"default": false
},
"asEP_DISALLOW_EMPTY_LIST_ELEMENTS": {
"type": "boolean",
"default": false
},
"asEP_PRIVATE_PROP_AS_PROTECTED": {
"type": "boolean",
"default": false
},
"asEP_ALLOW_UNICODE_IDENTIFIERS": {
"type": "boolean",
"default": false
},
"asEP_HEREDOC_TRIM_MODE": {
"type": "integer",
"default": 1,
"enum": [
0,
1,
2
]
},
"asEP_MAX_NESTED_CALLS": {
"type": "integer",
"default": 100
},
"asEP_GENERIC_CALL_MODE": {
"type": "integer",
"default": 1,
"enum": [
0,
1
]
},
"asEP_INIT_STACK_SIZE": {
"type": "integer",
"default": 4096
},
"asEP_INIT_CALL_STACK_SIZE ": {
"type": "integer",
"default": 10
},
"asEP_MAX_CALL_STACK_SIZE": {
"type": "integer",
"default": 0
}
},
"additionalProperties": false
}
}
},
"languages": [
{
"id": "Angelscript",
"filenamePatterns": [
"*.as"
],
"configuration": "./language-configuration.json"
},
{
"id": "AngelscriptTypeDefinition",
"filenamePatterns": [
"*.astypedef"
],
"configuration": "./astypedef-configuration.json"
}
],
"grammars": [
{
"language": "Angelscript",
"scopeName": "source.angelscript",
"path": "./syntaxes/as.tmGrammar"
},
{
"language": "AngelscriptTypeDefinition",
"scopeName": "source.angelscript",
"path": "./syntaxes/astypedef.tmGrammar"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
},
"devDependencies": {
"@types/mocha": "^8.0.3",
"mocha": "^8.1.1",
"@types/node": "^12.12.0",
"eslint": "^6.4.0",
"@typescript-eslint/parser": "^2.3.0",
"typescript": "^4.0.2"
}
}