Skip to content

Commit 4a1bbb3

Browse files
Merge remote-tracking branch 'upstream/dev'
2 parents d9d30ec + b27b917 commit 4a1bbb3

256 files changed

Lines changed: 99835 additions & 1457 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# At least one of the code owners below will be required on each PR:
2+
3+
* @markAtMicrosoft @smmatte @adclements @abmahdy @iennae @nasadigital @isadorasophia @sagarmanchanda

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Description:
2+
3+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
## Type of change
6+
7+
Please delete options that are not relevant.
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] This change requires a documentation update
13+
14+
# Limitations:
15+
16+
Please describe limitations of this PR
17+
18+
# Testing:
19+
20+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
21+
22+
- [ ] Test A
23+
- [ ] Test B
24+
25+
# Checklist:
26+
27+
- [ ] My code follows the style guidelines of this project
28+
- [ ] My code has been formatted with `npm run format` and passes the checks in `npm run check`
29+
- [ ] I have performed a self-review of my own code
30+
- [ ] I have commented my code, particularly in hard-to-understand areas
31+
- [ ] I have made corresponding changes to the documentation
32+
- [ ] My changes generate no new warnings
33+
- [ ] Any dependent changes have been merged and published in downstream modules

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow will do a clean install of node dependencies, python dependencies, build the source code and run tests
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches: [ dev, staging ]
8+
pull_request:
9+
branches: [ dev, staging ]
10+
11+
jobs:
12+
build-and-test:
13+
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [macos-latest, windows-latest, ubuntu-18.04]
20+
node-version: [10.x]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Install Linux dependencies
25+
if: matrix.os == 'ubuntu-18.04'
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install g++-multilib
29+
sudo apt-get install -y build-essential
30+
sudo apt-get install libudev-dev
31+
- name: Use Node.js ${{ matrix.node-version }} and install npm dependencies
32+
uses: actions/setup-node@v2
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
- run: npm install
36+
- name: Setup Python environment
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: 3.x
40+
- run: |
41+
python -m pip install --upgrade pip
42+
pip install -r ./src/dev-requirements.txt
43+
- name: Use npm to compile, format-check and test
44+
uses: actions/setup-node@v1
45+
with:
46+
node-version: ${{ matrix.node-version }}
47+
- run: npm run compile
48+
- run: npm run check
49+
- name: Run tests
50+
uses: GabrielBB/xvfb-action@v1.0
51+
with:
52+
run: npm run test

.prettierrc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
trailingComma: "es5"
2+
tabWidth: 4
3+
semi: true
4+
endOfLine: auto
5+
printWidth: 80

.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+
"ms-vscode.vscode-typescript-tslint-plugin"
6+
]
7+
}

.vscode/launch.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
15+
"preLaunchTask": "npm: watch"
16+
},
17+
{
18+
"name": "Extension Tests",
19+
"type": "extensionHost",
20+
"request": "launch",
21+
"runtimeExecutable": "${execPath}",
22+
"args": [
23+
"--extensionDevelopmentPath=${workspaceFolder}",
24+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
25+
],
26+
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
27+
"preLaunchTask": "npm: watch"
28+
}
29+
]
30+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
}

.vscode/tasks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
"type": "gulp",
21+
"task": "add-locales",
22+
"problemMatcher": []
23+
}
24+
]
25+
}

CHANGELOG.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Change Log
22

3-
All notable changes to the "embedded-python" extension will be documented in
4-
this file.
3+
All notable changes to the "embedded-python" extension will be documented in this file.
54

6-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
7-
to structure this file.
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
86

97
## [Unreleased]
108

11-
- Initial release
9+
- Initial release

CODING_STANDARDS.md

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,24 @@
22

33
## Coding guidelines for TypeScript
44

5-
- The following standards are inspired from
6-
[Coding guidelines for TypeScript](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines)
7-
(which you should follow when something is not specified in this document,
8-
although any pre-existing practices in a file being edited trump either
9-
style guide).
5+
- The following standards are inspired from [Coding guidelines for TypeScript](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines) (which you should follow when something is not specified in this document, although any pre-existing practices in a file being edited trump either style guide).
106

117
### Names
128

139
- Use `PascalCase` for type names.
14-
- Use `I` as a prefix for interface names only when an interface is
15-
implemented by a class.
10+
- Use `I` as a prefix for interface names only when an interface is implemented by a class.
1611
- Use `PascalCase` for enum values.
1712
- Use `camelCase` for function names.
1813
- Use `camelCase` for property names and local variables.
19-
- Do not use `_` as a prefix for private properties (unless used as backing
20-
properties).
14+
- Do not use `_` as a prefix for private properties (unless used as backing properties).
2115
- Use whole words in names when possible.
2216

2317
### Types
2418

25-
- Do not export types/functions unless you need to share it across multiple
26-
components.
19+
- Do not export types/functions unless you need to share it across multiple components.
2720
- Do not introduce new types/values to the global namespace.
28-
- Shared types should be defined in `types.ts`. Within a file, type
29-
definitions should come first.
21+
- Shared types should be defined in `types.ts`.
22+
Within a file, type definitions should come first.
3023

3124
### null and undefined
3225

@@ -44,21 +37,16 @@ Use single quotes for strings.
4437
### Imports
4538

4639
- Use ES6 module imports.
47-
- Do not use bare `import *`; all imports should either explicitly pull in an
48-
object or import an entire module, otherwise you're implicitly polluting the
49-
global namespace and making it difficult to figure out from code examination
50-
where a name originates from.
40+
- Do not use bare `import *`; all imports should either explicitly pull in an object or import an entire module, otherwise you're implicitly polluting the global namespace and making it difficult to figure out from code examination where a name originates from.
5141

5242
### Style
5343

5444
- Use `prettier` to format `TypeScript` and `JavaScript` code.
5545
- Use arrow functions over anonymous function expressions.
56-
- Always surround loop and conditional bodies with curly braces. Statements on
57-
the same line are allowed to omit braces.
46+
- Always surround loop and conditional bodies with curly braces. Statements on the same line are allowed to omit braces.
5847
- Open curly braces always go on the same line as whatever necessitates them.
5948
- Parenthesized constructs should have no surrounding whitespace.
60-
- A single space follows commas, colons, and semicolons in those constructs.
61-
For example:
49+
- A single space follows commas, colons, and semicolons in those constructs. For example:
6250

6351
- `for (var i = 0, n = str.length; i < 10; i++) { }`
6452
- `if (x < 10) { }`
@@ -70,5 +58,4 @@ Use single quotes for strings.
7058

7159
## Coding Standards for Python
7260

73-
Please follow the
74-
[Google Python Style Guide](https://google.github.io/styleguide/pyguide.html).
61+
Please follow the [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html).

0 commit comments

Comments
 (0)