def get_json_contents(): from robocorp_code import __version__ base_package_contents = { "name": "robocorp-code", "displayName": "Robocorp Code", "description": "Extension for Robot development in VSCode using Robocorp Cloud", "author": "Fabio Zadrozny", "homepage": "https://github.com/robocorp/robotframework-lsp/blob/master/robocorp-code/README.md", "repository": { "type": "git", "url": "https://github.com/robocorp/robotframework-lsp.git", }, "license": "Apache 2.0", "version": __version__, "icon": "images/icon.png", "publisher": "robocorp", "engines": { "vscode": "^1.43.0" }, "categories": [], "activationEvents": get_activation_events_for_json(), "contributes": { "configuration": { "title": "Robocorp Code Language Server Configuration", "type": "object", "properties": get_settings_for_json(), }, "languages": [], "grammars": [], "debuggers": [], "keybindings": get_keybindings_for_json(), "commands": get_commands_for_json(), }, "main": "./vscode-client/out/extension", "scripts": { "vscode:prepublish": "cd vscode-client && npm run compile && cd ..", "compile": "cd vscode-client && tsc -p ./ && cd ..", "watch": "cd vscode-client && tsc -watch -p ./ && cd ..", "postinstall": "node ./node_modules/vscode/bin/install", }, "devDependencies": { "typescript": "^3.8.2", "vscode": "^1.1.37", "@types/node": "^10.0.0", "@types/mocha": "^2.2.32", }, "dependencies": { "vscode-languageclient": "^6.1.3", "path-exists": "^4.0.0", "http-proxy-agent": "^2.1.0", "https-proxy-agent": "^2.2.4", "vscode-nls": "^4.1.2", }, } return base_package_contents
def get_json_contents(): from robocorp_code import __version__ base_package_contents = { "name": "robocorp-code", "displayName": "Robocorp Code", "description": "Extension for Robot development in VSCode using Robocorp Cloud", "author": "Fabio Zadrozny", "homepage": "https://github.com/robocorp/robotframework-lsp/blob/master/robocorp-code/README.md", "repository": { "type": "git", "url": "https://github.com/robocorp/robotframework-lsp.git", }, "license": "SEE LICENSE IN LICENSE.txt", "version": __version__, "icon": "images/icon.png", "publisher": "robocorp", "engines": {"vscode": "^1.43.0"}, "categories": ["Debuggers"], "activationEvents": get_activation_events_for_json() + views.get_activation_events_for_json() + ["onLanguage:json"], "contributes": { "configuration": { "title": "Robocorp Code Language Server Configuration", "type": "object", "properties": get_settings_for_json(), }, "viewsContainers": views.get_views_containers(), "views": views.get_tree_views(), "languages": [], "grammars": [], "debuggers": [ { "type": "robocorp-code", "label": "Robocorp Code", "languages": [], "configurationAttributes": { "launch": { "properties": { "robot": { "type": "string", "description": "The robot.yaml file with the task to be launched.", "default": "${file}", }, "task": { "type": "string", "description": "The task name from the robot to be run.", }, "args": { "type": "array", "description": "Additional command line arguments for running the robot.", }, "env": { "type": "object", "description": "Environment variables to be added to the launch.", }, # We may want to add it in the future, but for now this is unsupported, # as we only support using the debug console. # "terminal": { # "type": "string", # "enum": ["none", "integrated", "external"], # "enumDescriptions": [ # "No terminal (pipes the output to the client debug console).", # "Use terminal integrated in client.", # "External terminal (configured in user settings).", # ], # "description": "The terminal to launch the program.", # "default": "none", # }, } } }, "configurationSnippets": [ { "label": "Robocorp Code: Launch task from robot.yaml", "description": "Add a new configuration for launching tasks from a robot.yaml.", "body": { "type": "robocorp-code", "name": "Robocorp Code: Launch task from robot.yaml", "request": "launch", # "terminal": "none", "robot": '^"\\${file}"', "task": "", }, } ], } ], "keybindings": get_keybindings_for_json(), "commands": get_commands_for_json(), "menus": {"view/title": views.get_menus()}, }, "main": "./vscode-client/out/extension", "scripts": { "vscode:prepublish": "cd vscode-client && npm run compile && cd ..", "compile": "cd vscode-client && tsc -p ./ && cd ..", "watch": "cd vscode-client && tsc -watch -p ./ && cd ..", "postinstall": "node ./node_modules/vscode/bin/install", }, "devDependencies": { "typescript": "^3.8.2", "vscode": "^1.1.37", "@types/node": "^10.0.0", "@types/mocha": "^2.2.32", }, "dependencies": { "vscode-languageclient": "^6.1.3", "path-exists": "^4.0.0", "http-proxy-agent": "^2.1.0", "https-proxy-agent": "^2.2.4", "vscode-nls": "^4.1.2", }, } return base_package_contents