{
	"name": "mlua",
	"publisher": "msw",
	"displayName": "mLua",
	"description": "mLua language support for Visual Studio Code",
	"version": "1.2.0",
	"engines": {
		"vscode": "^1.80.0"
	},
	"icon": "images/extension-icon.png",
	"categories": [
		"Programming Languages"
	],
	"keywords": [
		"multi-root ready"
	],
	"scripts": {
		"lint": "eslint ./scripts/client/src ./scripts/server/src --ext .ts,.tsx",
		"postinstall": "node npm-install-all.js",
		"test": "cd scripts/unitTest && npm test",
		"vscode:prepublish": "npm run build:prod",
		"build:dev": "set MODE_ENV=development&&node esbuild.js",
		"build:prod": "set MODE_ENV=production&&node esbuild.js",
		"build:typescript": "node tsbuild.config.js",
    	"vsix": "npm install && vsce package --out ./bin"
	},
	"main": "./scripts/client/out/extension",
	"activationEvents": [
		"onLanguage:mlua"
	],
	"contributes": {
		"configuration": {
			"title": "mLua",
			"properties": {
				"mlua.completion.commitCharacterSupport": {
					"type": "boolean",
					"default": true,
					"description": "Enable CommitCharacterSupport"
				}
			}
		},
		"themes": [
			{
				"label": "mLua Dark",
				"uiTheme": "vs-dark",
				"path": "./themes/mlua-dark.json"
			},
			{
				"label": "mLua Light",
				"uiTheme": "vs",
				"path": "./themes/mlua-light.json"
			}
		],
		"configurationDefaults": {
			"[mlua]": {
				"editor.insertSpaces": false,
				"editor.tabSize": 4,
				"editor.detectIndentation": false,
				"editor.quickSuggestions": {
					"other": "on",
					"comments": "off",
					"strings": "off"
				}
			},
			"workbench.colorTheme": "mLua Dark"
		},
		"commands": [
			{
				"command": "mlua.startLanguageServer",
				"title": "Start Language Server",
				"category": "mLua"
			},
			{
				"command": "mlua.stopLanguageServer",
				"title": "Stop Language Server",
				"category": "mLua"
			},
			{
				"command": "mlua.restartLanguageServer",
				"title": "Restart Language Server",
				"category": "mLua"
			},
			{
				"command": "mlua.context.newComponentFile",
				"title": "Component..."
			},
			{
				"command": "mlua.context.newEventTypeFile",
				"title": "EventType..."
			},
			{
				"command": "mlua.context.newItemTypeFile",
				"title": "ItemType..."
			},
			{
				"command": "mlua.context.newActionNodeTypeFile",
				"title": "ActionNode..."
			},
			{
				"command": "mlua.context.newDecoratorNodeTypeFile",
				"title": "DecoratorNode..."
			},
			{
				"command": "mlua.context.newCompositeNodeTypeFile",
				"title": "CompositeNode..."
			},
			{
				"command": "mlua.context.newStateTypeFile",
				"title": "StateType..."
			},
			{
				"command": "mlua.context.newStructTypeFile",
				"title": "StructType..."
			},
			{
				"command": "mlua.context.newLogicFile",
				"title": "Logic..."
			},
			{
				"command": "mlua.context.newConditionTypeFile",
				"title": "ConditionType..."
			},
			{
				"command": "mlua.newFile",
				"title": "New File",
				"category": "mLua"
			},
			{
				"command": "mlua.context.openApiReference",
				"title": "Open API Reference"
			}
		],
		"languages": [
			{
				"id": "mlua",
				"aliases": [
					"mlua"
				],
				"extensions": [
					".mlua"
				],
				"icon": {
					"dark": "images/mlua-icon.png",
					"light": "images/mlua-icon.png"
				},
				"configuration": "./mlua-language-configuration.json"
			}
		],
		"grammars": [
			{
				"language": "mlua",
				"scopeName": "source.mlua",
				"path": "./syntaxes/mlua.tmLanguage.json"
			}
		],
		"semanticTokenScopes": [
			{
				"language": "mlua",
				"scopes": {
					"type": [
						"entity.name.class"
					],
					"function": [
						"entity.name.function"
					],
					"property": [
						"variable.other.member"
					],
					"enum": [
						"entity.name.class.enum"
					],
					"enumMember": [
						"variable.other.enummember"
					],
					"variable": [
						"variable.other"
					],
					"parameter": [
						"variable.parameter"
					],
					"global": [
						"variable.other.global"
					],
					"reserved": [
						"variable.other.reserved"
					]
				}
			}
		],
		"submenus": [
			{
				"id": "newFile",
				"label": "New mLua File"
			},
			{
				"id": "newBTNodeFile",
				"label": "BTNodeType"
			}
		],
		"menus": {
			"commandPalette": [
				{
					"command": "mlua.context.newComponentFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newEventTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newItemTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newActionNodeTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newDecoratorNodeTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newCompositeNodeTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newStateTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newStructTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newLogicFile",
					"when": "false"
				},
				{
					"command": "mlua.context.newConditionTypeFile",
					"when": "false"
				},
				{
					"command": "mlua.context.openApiReference",
					"when": "false"
				},
				{
					"command": "mlua.newFile"
				},
				{
					"command": "mlua.startLanguageServer"
				},
				{
					"command": "mlua.stopLanguageServer"
				},
				{
					"command": "mlua.restartLanguageServer"
				}
			],
			"explorer/context": [
				{
					"submenu": "newFile",
					"group": "mlua",
					"when": "explorerResourceIsFolder && resourcePath =~ /.*\\\\MyDesk.*/"
				}
			],
			"editor/context": [
				{
					"command": "mlua.context.openApiReference",
					"when": "editorTextFocus && resourceLangId == mlua",
					"group": "mlua"
				}
			],
			"newFile": [
				{
					"command": "mlua.context.newComponentFile"
				},
				{
					"command": "mlua.context.newEventTypeFile"
				},
				{
					"command": "mlua.context.newItemTypeFile"
				},
				{
					"submenu": "newBTNodeFile"
				},
				{
					"command": "mlua.context.newStateTypeFile"
				},
				{
					"command": "mlua.context.newStructTypeFile"
				},
				{
					"command": "mlua.context.newLogicFile"
				},
				{
					"command": "mlua.context.newConditionTypeFile"
				}
			],
			"newBTNodeFile": [
				{
					"command": "mlua.context.newActionNodeTypeFile"
				},
				{
					"command": "mlua.context.newDecoratorNodeTypeFile"
				},
				{
					"command": "mlua.context.newCompositeNodeTypeFile"
				}
			]
		}
	},
	"devDependencies": {
		"@types/luaparse": "^0.2.9",
		"@types/mocha": "^9.1.0",
		"@types/node": "^16.18.34",
		"@types/node-fetch": "^2.6.4",
		"@typescript-eslint/eslint-plugin": "^5.54.0",
		"@typescript-eslint/parser": "^5.54.0",
		"await-notify": "^1.0.1",
		"cross-env": "7.0.3",
		"esbuild": "^0.25.0",
		"esbuild-plugin-tsconfig-paths": "^1.0.1",
		"esbuild-ts-paths": "^1.1.3",
		"eslint": "^8.35.0",
		"mocha": "^9.2.1",
		"path-browserify": "^1.0.1",
		"typescript": "^5.7.3"
	},
	"dependencies": {
		"module-alias": "^2.2.3",
		"moment": "^2.29.4",
		"node-fetch": "^2.6.12",
		"ts-node": "^10.9.2",
		"typescript-collections": "1.3.3",
		"xml2js": "^0.6.2"
	}
}
