Skip to content

Commit 609ec26

Browse files
committed
rename src folder to vscode-client, implement 4SpacesTab
1 parent 10dfe75 commit 609ec26

File tree

7 files changed

+21
-6
lines changed

7 files changed

+21
-6
lines changed

package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@
6060
"path": "./syntaxes/robotframework.tmLanguage.json"
6161
}
6262
],
63+
"keybindings": [
64+
{
65+
"key": "tab",
66+
"command": "type",
67+
"args": {
68+
"text": " "
69+
},
70+
"when": "editorTextFocus && editorLangId == robotframework && !editorHasSelection && !inSnippetMode && !suggestWidgetVisible && config.robotcode.editor.4SpacesTab"
71+
}
72+
],
6373
"configuration": [
6474
{
6575
"title": "RobotCode",
@@ -71,6 +81,11 @@
7181
"description": "Specifies the python executable to be used for RobotCode. If no path is specified, try to get it from \"python\" extension. Requires a VSCode restart to take effect.",
7282
"scope": "resource"
7383
},
84+
"robotcode.editor.4SpacesTab": {
85+
"type": "boolean",
86+
"default": true,
87+
"description": "If actived insert 4 spaces if TAB is pressed."
88+
},
7489
"robotcode.languageServer.mode": {
7590
"type": "string",
7691
"default": "stdio",
@@ -441,7 +456,7 @@
441456
"compile": "tsc -p ./",
442457
"watch": "tsc -watch -p ./",
443458
"pretest": "npm run compile && npm run lint",
444-
"lint": "eslint src --ext ts",
459+
"lint": "eslint vscode-client --ext ts",
445460
"test": "node ./out/test/runTest.js"
446461
},
447462
"extensionDependencies": [
@@ -460,9 +475,9 @@
460475
"@types/vscode": "^1.56.0",
461476
"@typescript-eslint/eslint-plugin": "^4.22.1",
462477
"@typescript-eslint/parser": "^4.22.1",
463-
"eslint": "^7.25.0",
478+
"eslint": "^7.26.0",
464479
"glob": "^7.1.7",
465-
"mocha": "^8.3.2",
480+
"mocha": "^8.4.0",
466481
"ts-loader": "^9.1.2",
467482
"typescript": "^4.2.4",
468483
"vsce": "^1.88.0",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"target": "es6",
55
"outDir": "out",
66
"lib": [
7-
"es6"
7+
"ES2019"
88
],
99
"sourceMap": true,
10-
"rootDir": "src",
10+
"rootDir": "vscode-client",
1111
"strict": true /* enable all strict type-checking options */
1212
/* Additional Checks */
1313
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
File renamed without changes.
File renamed without changes.
File renamed without changes.

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const path = require('path');
88
const config = {
99
target: 'node', // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
1010

11-
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
11+
entry: './vscode-client/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
1212
output: {
1313
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
1414
path: path.resolve(__dirname, 'out'),

0 commit comments

Comments
 (0)