Skip to content

Commit 276721b

Browse files
authored
Merge pull request #799 from nagilson/nagilson-axios
Migrate to Axios to fix caching bugs & Reduce development burden + Other QOL Fixes
2 parents e17e399 + 90ad5f5 commit 276721b

36 files changed

+13822
-9516
lines changed

CODE_OWNERS.txt

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
The following is a list of owners for different areas of the VSCode .NET Core extension code.
2-
Each of the owners is responsible for ensuring that changes in their areas
3-
are reviewed, either by themselves or by someone they designate, in
4-
addition to being the final word for the architecture and content of an area.
1+
# CODEOWNERS file per https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
52

6-
List sorted by last name and the fields are Name (N), GitHub user account (G),
7-
Description (D).
8-
9-
Note: If you don't find the area in the below list, or you have a general
10-
question, send a message to Sarah Oslund (@sfoslund) or Marc Paine (@marcpopMSFT).
11-
They can ensure that the question gets forwarded to theright person or answer it themselves.
12-
13-
N: Sarah Oslund
14-
G: sfoslund
15-
D: Everything
3+
# Default owners
4+
* @dotnet/dotnet-cli

Documentation/contributing-workflow.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ We use and recommend the following workflow:
2121
4. Make and commit your changes.
2222
- Please follow our [Commit Messages](contributing.md#commit-messages) guidance.
2323
5. Add new tests corresponding to your change, if applicable.
24-
If you are having difficulty debugging changes, note that you can add breakpoints into the tests for the library, runtime, or SDK by opening their corresponding workspace folder and launching the debug tab for their tests in VS Code. If you want to breakpoint the code, you'll need to breakpoint the test in typescript, but then every reload add breakpoints to the JS code generated from the typescript code if you want to debug code outside of the tests thesmelves that the tests run.
24+
25+
If you are having difficulty debugging changes to the library, you may want to incorporate the logging messages into your test session. To do so, set the debugOn flag to true [Here](../vscode-dotnet-runtime-library/src/Utils/Debugging.ts).
26+
Note that the runtime and sdk extensions can be tested (with breakpoints as well, through the .js files) using their corresponding workspace and launch profiles by opening their root folders in vscode.
27+
For the library, those tests are reachable by going through the runtime extension workspace and adding the runtime-library folder to the workspace. But logging may be a better approach to debug this code.
28+
29+
30+
If you are having difficulty debugging all other changes, note that you can add breakpoints into the tests for the library, runtime, or SDK by opening their corresponding workspace folder and launching the debug tab for their tests in VS Code. If you want to breakpoint the code, you'll need to breakpoint the test in typescript, but then every reload add breakpoints to the JS code generated from the typescript code if you want to debug code outside of the tests thesmelves that the tests run.
31+
2532
6. Build the repository with your changes.
2633
- Make sure that the builds are clean.
2734
- Make sure that the tests are all passing, including your new tests.

azure-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ stages:
4141
steps:
4242
- task: NodeTool@0
4343
inputs:
44-
versionSpec: '15.x'
44+
versionSpec: '16.10.0'
4545
displayName: 'Install Node.js'
4646
- script: build.cmd
4747
displayName: Build Windows
@@ -75,7 +75,7 @@ stages:
7575
steps:
7676
- task: NodeTool@0
7777
inputs:
78-
versionSpec: '15.x'
78+
versionSpec: '16.10.0'
7979
displayName: 'Install Node.js'
8080
- bash: |
8181
npm install --cache /temp/empty-cache
@@ -98,11 +98,11 @@ stages:
9898
scriptSource: 'filePath'
9999
scriptPath: 'dependency-verifier.py'
100100
arguments: '$(System.PullRequest.TargetBranch)'
101-
failOnStderr: true
101+
failOnStderr: true
102102
##### Package and Publish #####
103103
- job: Package
104104
displayName: 'Package and Publish'
105-
dependsOn:
105+
dependsOn:
106106
- Build
107107
- TSLint
108108
condition: succeeded()
@@ -119,7 +119,7 @@ stages:
119119
steps:
120120
- task: NodeTool@0
121121
inputs:
122-
versionSpec: '15.x'
122+
versionSpec: '16.10.0'
123123
displayName: 'Install Node.js'
124124
- bash: |
125125
if ([ $(is-sdk-release) = 'True' ] && [ $(package-name) = 'vscode-dotnet-sdk' ]) || ([ $(is-runtime-release) = 'True' ] && [ $(package-name) = 'vscode-dotnet-runtime' ]); then

dependency-verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def NpmChangesMirrorYarnChanges(changedFiles, packageLockPath, targetBranch):
7777
else:
7878
outOfDateYarnLocks.append(yarnLockPath)
7979
if(outOfDateYarnLocks != []):
80-
sys.exit(f"The yarn.lock and package-lock appear to be out of sync with the changes made after {targetBranch}. Update by doing yarn import or yarn add dep@package-lock-version for {outOfDateYarnLocks}. For sub-dependencies, try adding just the main dependency first.")
80+
sys.exit(f"The yarn.lock and package-lock appear to be out of sync with the changes made after {targetBranch}. Update by first using npm to push to the registry, doing npm install package@version. Then, do yarn add package@version for {outOfDateYarnLocks}. During the yarn add process, you may need to npm install specific dependencies that yarn will flag to allow yarn to proceed. You may consider (yarn import). Note this tool will list dependencies of packages, but you should try adding just the main package first. If you can confirm the new changes are in sync, then you may ignore this failure.")
8181
else:
8282
return 0 # OK, status here is not used
8383

package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
},
1616
"dependencies": {
1717
"vsce": "2.11.0"
18+
},
19+
"devDependencies": {
20+
"@types/source-map-support": "^0.5.6"
1821
}
1922
}

0 commit comments

Comments
 (0)