Skip to content

Commit e985cf5

Browse files
committed
Initial commit
1 parent aa782f6 commit e985cf5

16 files changed

+2216
-0
lines changed

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true,
7+
"mocha": true
8+
},
9+
"parserOptions": {
10+
"ecmaVersion": 2018,
11+
"ecmaFeatures": {
12+
"jsx": true
13+
},
14+
"sourceType": "module"
15+
},
16+
"rules": {
17+
"no-const-assign": "warn",
18+
"no-this-before-super": "warn",
19+
"no-undef": "warn",
20+
"no-unreachable": "warn",
21+
"no-unused-vars": "warn",
22+
"constructor-super": "warn",
23+
"valid-typeof": "warn"
24+
}
25+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint"
6+
]
7+
}

.vscode/launch.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// A launch configuration that launches the extension inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": [
14+
"--extensionDevelopmentPath=${workspaceFolder}"
15+
]
16+
},
17+
{
18+
"name": "Extension Tests",
19+
"type": "extensionHost",
20+
"request": "launch",
21+
"runtimeExecutable": "${execPath}",
22+
"args": [
23+
"--extensionDevelopmentPath=${workspaceFolder}",
24+
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
25+
]
26+
}
27+
]
28+
}

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode/**
2+
.vscode-test/**
3+
test/**
4+
.gitignore
5+
vsc-extension-quickstart.md
6+
**/jsconfig.json
7+
**/*.map
8+
**/.eslintrc.json

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# v1
2+
Vscode Extension made.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Cool extension

extension.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// The module 'vscode' contains the VS Code extensibility API
2+
// Import the module and reference it with the alias vscode in your code below
3+
const vscode = require('vscode');
4+
const extensionConfig = vscode.workspace.getConfiguration('lpp');
5+
var nrc = require('child_process');
6+
function compilePath(path){
7+
if(path.endsWith(".lpp")){
8+
var command = `java -jar "${extensionConfig.get("jar-path")}" "${path}"`;
9+
nrc.exec(command);
10+
}
11+
}
12+
// this method is called when your extension is activated
13+
// your extension is activated the very first time the command is executed
14+
15+
/**
16+
* @param {vscode.ExtensionContext} context
17+
*/
18+
function activate(context) {
19+
20+
// Use the console to output diagnostic information (console.log) and errors (console.error)
21+
// This line of code will only be executed once when your extension is activated
22+
console.log('Congratulations, your extension "LPP-pipeline" is now active!');
23+
24+
vscode.workspace.onDidSaveTextDocument((textDocument)=>{
25+
26+
compilePath(textDocument.fileName);
27+
});
28+
29+
}
30+
exports.activate = activate;
31+
32+
// this method is called when your extension is deactivated
33+
function deactivate() {}
34+
35+
module.exports = {
36+
activate,
37+
deactivate
38+
}

jsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es6",
5+
"checkJs": true, /* Typecheck .js files. */
6+
"lib": [
7+
"es6"
8+
]
9+
},
10+
"exclude": [
11+
"node_modules"
12+
]
13+
}

lpp-pipeline-0.0.1.vsix

15.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)