Skip to content

Commit

Permalink
feat(vscode): introduce RobotCode: Start Terminal REPL command for la…
Browse files Browse the repository at this point in the history
…unching the interactive Robot Framework interpreter directly from VSCode
  • Loading branch information
d-biehl committed Oct 8, 2024
1 parent be386d2 commit f4025fb
Show file tree
Hide file tree
Showing 11 changed files with 2,933 additions and 87 deletions.
15 changes: 10 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"CMD_VAR_LONG": "long",
},
"args": [
"--verbose",
"--format",
"toml",
// "--verbose",
// "--format",
// "toml",
// "robot"
// "debug-launch",
// "--pipe-server",
Expand All @@ -54,8 +54,13 @@
// "discover",
// "files",
// ".."
"config",
"show",
// "config",
// "show",
"repl",
"-d", "output",
"-i",
"-v", "CMD_LINE_VAR:cmd_line_var",
// "E:\\source\\uvtestprj\\tests\\first.robotrepl"
]
},
{
Expand Down
106 changes: 63 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 52 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"Behavior Driven Testing",
"BDT",
"Robotic Process Automation",
"RPA"
"RPA",
"notebookKernelRobotframeworkRepl"
],
"featureFlags": {
"usingNewInterpreterStorage": true
Expand All @@ -64,7 +65,8 @@
"onDebug",
"onDebugResolve:robotcode",
"onDebugInitialConfigurations",
"onDebugDynamicConfigurations:robotcode"
"onDebugDynamicConfigurations:robotcode",
"onNotebook:robotframework-repl"
],
"galleryBanner": {
"theme": "dark",
Expand All @@ -81,6 +83,17 @@
],
"main": "./out/extension.js",
"contributes": {
"notebooks": [
{
"type": "robotframework-repl",
"displayName": "RobotFramework REPL",
"selector": [
{
"filenamePattern": "*.robotnb"
}
]
}
],
"markdown.markdownItPlugins": true,
"icons": {
"robotcode-robot": {
Expand Down Expand Up @@ -381,6 +394,21 @@
],
"configuration": "./language-configuration.json"
},
{
"id": "robotframework-repl",
"aliases": [
"Robot Framework REPL",
"robotframework repl"
],
"icon": {
"light": "./icons/robot-light.png",
"dark": "./icons/robot-dark.png"
},
"extensions": [
".robotrepl"
],
"configuration": "./language-configuration.json"
},
{
"id": "robotframework-injection"
}
Expand All @@ -399,6 +427,19 @@
"comment"
]
},
{
"language": "robotframework-repl",
"scopeName": "source.robotframework-repl",
"path": "./syntaxes/robotframework-repl.tmLanguage.json",
"tokenTypes": {
"string.unquoted.argument.robotframework": "other",
"variable.expression.robotframework": "other"
},
"unbalancedBracketScopes": [
"comment.robotframework",
"comment"
]
},
{
"language": "robotframework-injection",
"scopeName": "markdown.robotframework.codeblock",
Expand Down Expand Up @@ -1016,6 +1057,11 @@
"category": "RobotCode",
"command": "robotcode.restartLanguageServers"
},
{
"title": "Start Terminal REPL",
"category": "RobotCode",
"command": "robotcode.startTerminalRepl"
},
{
"title": "Disable RoboCop",
"category": "RobotCode",
Expand Down Expand Up @@ -1635,16 +1681,16 @@
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/compat": "^1.2.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.1",
"@eslint/js": "^9.12.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.7.2",
"@types/vscode": "^1.86.0",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.1.1",
"esbuild": "^0.24.0",
"eslint": "^9.11.1",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.10.0",
Expand All @@ -1657,4 +1703,4 @@
"workspaces": [
"docs"
]
}
}
Loading

0 comments on commit f4025fb

Please sign in to comment.