Skip to content

Commit acf5aa5

Browse files
Merge pull request #5 from salesforce/r-n-d/import-projects-wizard
R-n-d/import-projects-wizard
2 parents 2c25d6e + 33e7ae3 commit acf5aa5

28 files changed

+13287
-1926
lines changed

.eslintrc.json

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
{
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-
}
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/naming-convention": "warn",
13+
"@typescript-eslint/semi": "warn",
14+
"curly": "warn",
15+
"eqeqeq": "warn",
16+
"no-throw-literal": "warn",
17+
"semi": "off"
18+
}
2519
}

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v2
14+
with:
15+
distribution: 'zulu' # See 'Supported distributions' for available options
16+
java-version: '11'
17+
18+
- name: Build VSCode extension
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '14'
22+
- run: sudo npm install -g vsce
23+
- run: npm install
24+
- run: npm run compile
25+
- run: vsce package

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
2+
bazel-ls-eclipse
3+
out
4+
dist
25
.vscode-test/
36
*.vsix

.vscode/extensions.json

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

.vscode/launch.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1+
// A launch configuration that compiles the extension and then opens it 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
15
{
26
"version": "0.2.0",
37
"configurations": [
48
{
59
"name": "Run Extension",
610
"type": "extensionHost",
711
"request": "launch",
8-
"runtimeExecutable": "${execPath}",
912
"args": [
1013
"--extensionDevelopmentPath=${workspaceFolder}"
11-
]
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/out/**/*.js"
17+
],
18+
"preLaunchTask": "${defaultBuildTask}"
1219
},
1320
{
1421
"name": "Extension Tests",
1522
"type": "extensionHost",
1623
"request": "launch",
17-
"runtimeExecutable": "${execPath}",
1824
"args": [
1925
"--extensionDevelopmentPath=${workspaceFolder}",
20-
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
21-
]
26+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/out/test/**/*.js"
30+
],
31+
"preLaunchTask": "${defaultBuildTask}"
2232
}
2333
]
2434
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off"
11+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
20+
}

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
.vscode/**
22
.vscode-test/**
3+
out/test/**
4+
src/**
35
test/**
46
.gitignore
57
**/jsconfig.json
68
**/*.map
79
**/.eslintrc.json
10+
.yarnrc
11+
vsc-extension-quickstart.md
12+
**/tsconfig.json
13+
**/.eslintrc.json
14+
**/*.map
15+
**/*.ts
816
gulpfile.js
917
node_modules
1018
bazel-ls-eclipse/**

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ Installation
1111
```
1212
2. Clone the repository
1313
```bash
14-
git clone --recurse-submodules [email protected]:salesforce/bazel-ls-vscode.git
14+
git clone [email protected]:salesforce/bazel-ls-vscode.git
1515
```
1616
3. Install the dependencies:
1717
```bash
1818
cd bazel-ls-vscode
1919
npm install
2020
```
21-
4. Package the extension:
21+
4. Compile source code:
22+
```bash
23+
npm run compile
24+
```
25+
5. Package the extension:
2226
```bash
2327
vsce package
2428
```
25-
5. Open the _Extensions_ tab in VS Code
26-
6. Select _Install from VSIX..._ and choose file built in the fourth step
27-
7. Once installed, restart VS Code
29+
6. Open the _Extensions_ tab in VS Code
30+
7. Select _Install from VSIX..._ and choose file built in the fourth step
31+
8. Once installed, restart VS Code

bazel-ls-eclipse

Submodule bazel-ls-eclipse deleted from 2d7a94b

0 commit comments

Comments
 (0)