Skip to content

Init extension #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 40 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c306e7e
init
paulacamargo25 Mar 16, 2023
9839a83
Add config files
paulacamargo25 Mar 16, 2023
b492f86
add lint file
paulacamargo25 Mar 16, 2023
3f9a1cb
fix code
paulacamargo25 Mar 18, 2023
92b60c3
Add tests
paulacamargo25 Apr 4, 2023
2409e4a
Add clientOS
paulacamargo25 Apr 4, 2023
8f8216a
Update pythonAPI
paulacamargo25 Apr 4, 2023
0811725
add vscode ignore
paulacamargo25 Apr 4, 2023
0a7c477
Update imports
paulacamargo25 Apr 4, 2023
239150f
Fix debugger tests, with new pythonAPI calls
paulacamargo25 Apr 4, 2023
88b82b7
update factory
paulacamargo25 Apr 4, 2023
833e794
update code
paulacamargo25 Apr 4, 2023
b096ff8
Add prettier
paulacamargo25 Apr 4, 2023
c197a94
run prettier
paulacamargo25 Apr 4, 2023
12ed5fb
fix code
paulacamargo25 Apr 4, 2023
710cd46
update import
paulacamargo25 Apr 4, 2023
42c4842
Update code
paulacamargo25 Apr 4, 2023
388c5c0
remove tests
paulacamargo25 Apr 4, 2023
de9b578
fix initiation
paulacamargo25 Apr 4, 2023
5c935b5
Clean code
paulacamargo25 Apr 4, 2023
9fc78ab
Update debug type name
paulacamargo25 Apr 4, 2023
84bc90f
Update name, add translations and commands
paulacamargo25 Apr 10, 2023
2f4bc3a
Update extension activation
paulacamargo25 Apr 10, 2023
9227b7c
remove activationManager
paulacamargo25 Apr 11, 2023
b0ffa21
Remove unnecessary files
paulacamargo25 Apr 11, 2023
2e19a6d
Remove unnecessarya activation fields
paulacamargo25 Apr 12, 2023
d341028
Update pipelines
paulacamargo25 Apr 12, 2023
13a8c54
Update and remove unnecessary code
paulacamargo25 Apr 12, 2023
1dac1ad
Update debug configuration schema
paulacamargo25 Apr 12, 2023
2ff8656
Update package.json
paulacamargo25 Apr 19, 2023
651f29b
remove extensions
paulacamargo25 Apr 19, 2023
299b6e5
remove inversify
paulacamargo25 Apr 21, 2023
167d57f
Fix telemetry
paulacamargo25 May 1, 2023
94104c3
Update Settings
paulacamargo25 May 2, 2023
dcbbf01
refactor logging
paulacamargo25 May 2, 2023
6861a9c
migrate to node16
paulacamargo25 May 2, 2023
c2b1fa8
Fix package json
paulacamargo25 May 4, 2023
d3a29e0
Remove process and factory
paulacamargo25 May 4, 2023
3d6a6e6
Update init
paulacamargo25 May 15, 2023
269571b
remove inject
paulacamargo25 May 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
out
dist
node_modules
.vscode-test/
*.vsix
.venv/
.nox/
bundled/libs/
**/__pycache__
**/.pytest_cache
**/.vs
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
singleQuote: true,
printWidth: 120,
tabWidth: 4,
endOfLine: 'auto',
trailingComma: 'all',
overrides: [
{
files: ['*.yml', '*.yaml'],
options: {
tabWidth: 2
}
}
]
};
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher"]
}
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Unit Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"./out/test/**/*.unit.test.js",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/unittest/index"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js",
],
"preLaunchTask": "tasks: watch-tests"
},
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false, // set this to true to hide the "out" folder with the compiled JS files
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
},
"search.exclude": {
"out": true, // set this to false to include "out" folder in search results
"dist": true // set this to false to include "dist" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
40 changes: 40 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$ts-webpack-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "watch-tests",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": "build"
},
{
"label": "tasks: watch-tests",
"dependsOn": [
"npm: watch",
"npm: watch-tests"
],
"problemMatcher": []
}
]
}
23 changes: 23 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.vscode/**
.vscode-test/**
out/**
node_modules/**
src/**
.gitignore
.yarnrc
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.ts
.venv/**
.nox/**
.github/
**/__pycache__/**
**/.pyc
bundled/libs/bin/**
noxfile.py
.pytest_cache/**
.pylintrc
**/requirements.txt
**/requirements.in
58 changes: 58 additions & 0 deletions build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Run on a schedule
trigger: none
pr: none

schedules:
- cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT)
displayName: Nightly Pre-Release Schedule
always: false # only run if there are source code changes
branches:
include:
- main

resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco

extends:
template: azure-pipelines/extension/pre-release.yml@templates
parameters:
locTsConfigs: $(Build.SourcesDirectory)/tsconfig.json
locBundleDestination: $(Build.SourcesDirectory)/dist
buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '16.17.1'
displayName: Select Node version

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
addToPath: true
architecture: 'x64'
displayName: Select Python version

- script: npm ci
displayName: Install NPM dependencies

- script: python -m pip install -U pip
displayName: Upgrade pip

- script: python -m pip install wheel
displayName: Install wheel

- script: python -m pip install nox
displayName: Install wheel

- script: python -m nox --session install_bundled_libs
displayName: Install Python dependencies

- script: python ./build/update_ext_version.py --for-publishing
displayName: Update build number

- script: npm run package
displayName: Build extension
61 changes: 61 additions & 0 deletions build/azure-pipeline.stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
trigger: none
# branches:
# include:
# - release*
# tags:
# include: ['*']
pr: none

resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco

parameters:
- name: publishExtension
displayName: 🚀 Publish Extension
type: boolean
default: false

extends:
template: azure-pipelines/extension/stable.yml@templates
parameters:
locTsConfigs: $(Build.SourcesDirectory)/tsconfig.json
locBundleDestination: $(Build.SourcesDirectory)/dist
publishExtension: ${{ parameters.publishExtension }}
buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '16.17.1'
displayName: Select Node version

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
addToPath: true
architecture: 'x64'
displayName: Select Python version

- script: npm ci
displayName: Install NPM dependencies

- script: python -m pip install -U pip
displayName: Upgrade pip

- script: python -m pip install wheel
displayName: Install wheel

- script: python -m pip install nox
displayName: Install wheel

- script: python -m nox --session install_bundled_libs
displayName: Install Python dependencies

- script: python ./build/update_ext_version.py --release --for-publishing
displayName: Update build number

- script: npm run package
displayName: Build extension
Loading