Skip to content

Commit

Permalink
update formatting (#564)
Browse files Browse the repository at this point in the history
* update formatting

* add extensions.json
  • Loading branch information
gcampbell-msft authored Mar 5, 2024
1 parent 8e48036 commit 889d4ff
Show file tree
Hide file tree
Showing 34 changed files with 11,364 additions and 8,586 deletions.
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"redhat.vscode-yaml"
]
}
102 changes: 49 additions & 53 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,51 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/**/*.js"
],
"env": {
"MAKEFILE_TOOLS_TESTING": "1",
"WindowsSDKVersion": "12.3.45678.9\\",
"CMT_DEVRUN": "1"
},
"preLaunchTask": "build-with-webpack-watch",
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/test/fakeSuite/Repros",
"--disable-workspace-trust",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/src/test/fakeSuite/index"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/*",
"${workspaceFolder}/out/src/*",
"${workspaceFolder}/out/src/test/**/*"
],
"env": {
"MAKEFILE_TOOLS_TESTING": "1",
"WindowsSDKVersion": "12.3.45678.9\\"
},
"preLaunchTask": "Pretest",
},
{
"name": "Node Attach",
"type": "node",
"request": "attach",
"port": 5858
}
]
}
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/**/*.js"],
"env": {
"MAKEFILE_TOOLS_TESTING": "1",
"WindowsSDKVersion": "12.3.45678.9\\",
"CMT_DEVRUN": "1"
},
"preLaunchTask": "build-with-webpack-watch"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/src/test/fakeSuite/Repros",
"--disable-workspace-trust",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/src/test/fakeSuite/index"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/*",
"${workspaceFolder}/out/src/*",
"${workspaceFolder}/out/src/test/**/*"
],
"env": {
"MAKEFILE_TOOLS_TESTING": "1",
"WindowsSDKVersion": "12.3.45678.9\\"
},
"preLaunchTask": "Pretest"
},
{
"name": "Node Attach",
"type": "node",
"request": "attach",
"port": 5858
}
]
}
45 changes: 35 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
// 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
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.detectIndentation": false,
"cmake.configureOnOpen": false // we want to use the TS server from our node_modules folder to control its version
}
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.detectIndentation": false,
"cmake.configureOnOpen": false, // we want to use the TS server from our node_modules folder to control its version
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
}
}
118 changes: 55 additions & 63 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,58 @@
{
"version": "2.0.0",
"tasks": [
"version": "2.0.0",
"tasks": [
{
"label": "build-with-webpack-watch",
"type": "npm",
"script": "compile",
"problemMatcher": [
{
"label": "build-with-webpack-watch",
"type": "npm",
"script": "compile",
"problemMatcher": [
{
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"severity": "error",
"pattern": [
{
"regexp": "\\[tsl\\] ERROR in (.*)?\\((\\d+),(\\d+)\\)",
"file": 1,
"line": 2,
"column": 3
},
{
"regexp": "\\s*TS\\d+:\\s*(.*)",
"message": 1
}
],
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "asset"
},
"endsPattern": {
"regexp": "webpack (.*?) compiled (.*?) ms"
}
}
}
],
"isBackground": true
},
{
"label": "Pretest",
"group": "build",
"isBackground": false,
"type": "shell",
"command": "yarn",
"args": [
"run",
"pretest"
],
"dependsOn": [
"Compile"
]
},
{
"label": "Compile",
"group": "build",
"isBackground": false,
"type": "shell",
"command": "yarn",
"args": [
"run",
"compile"
]
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"severity": "error",
"pattern": [
{
"regexp": "\\[tsl\\] ERROR in (.*)?\\((\\d+),(\\d+)\\)",
"file": 1,
"line": 2,
"column": 3
},
{
"regexp": "\\s*TS\\d+:\\s*(.*)",
"message": 1
}
],
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "asset"
},
"endsPattern": {
"regexp": "webpack (.*?) compiled (.*?) ms"
}
}
}
]
}
],
"isBackground": true
},
{
"label": "Pretest",
"group": "build",
"isBackground": false,
"type": "shell",
"command": "yarn",
"args": ["run", "pretest"],
"dependsOn": ["Compile"]
},
{
"label": "Compile",
"group": "build",
"isBackground": false,
"type": "shell",
"command": "yarn",
"args": ["run", "compile"]
}
]
}
Loading

0 comments on commit 889d4ff

Please sign in to comment.