Skip to content

Commit 6c788db

Browse files
authored
Migrate to builtin authentication provider & remove Configure Pipeline support (#595)
* Remove Azure Accounts dependency & delete configure flow * Don't bring in a new package for one API call * Only run MSA logic on MSAs * Account for the non-MSAL case * Further remove references to Configure Pipeline * Remove leftover comment * Use modern versions of vsce * Bump compilation target VS Code 1.82/Node 18 supports all the way up to ES2022. * Also remove uuid dependency * Switch to @vscode/test-cli * Provide a fast path for the single org scenario And use clearSessionPreference when the wrong account is used * Remove unused telemetry keys * Add user agent info * Add Extension Test Runner as a recommended extension
1 parent f71d2c0 commit 6c788db

Some content is hidden

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

58 files changed

+2433
-5829
lines changed

.azure-pipelines/common-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ steps:
3535

3636
# Acquire the `vsce` tool and use it to package
3737
- script: |
38-
npm install -g vsce
39-
vsce package --githubBranch main
38+
npm install -g @vscode/vsce
39+
vsce package
4040
displayName: Create VSIX
4141

4242
- script: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
coverage
12
dist
23
out
34
node_modules

.vscode-test.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// @ts-check
2+
3+
import { defineConfig } from '@vscode/test-cli';
4+
import path from 'path';
5+
6+
export default defineConfig({
7+
files: 'out/test/**/*.test.js',
8+
workspaceFolder: path.join(import.meta.dirname, 'src', 'test', 'workspace'),
9+
mocha: {
10+
timeout: 100000,
11+
},
12+
coverage: {
13+
reporter: ['cobertura', 'text', 'html'],
14+
output: './coverage',
15+
}
16+
});

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
44
"recommendations": [
5-
"dbaeumer.vscode-eslint"
5+
"dbaeumer.vscode-eslint",
6+
"ms-vscode.extension-test-runner"
67
]
78
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"name": "Extension Tests",
2222
"type": "extensionHost",
2323
"request": "launch",
24-
"runtimeExecutable": "${execPath}",
24+
"testConfiguration": "${workspaceFolder}/.vscode-test.js",
2525
"args": [
2626
"${workspaceFolder}/src/test/workspace",
2727
"--extensionDevelopmentPath=${workspaceFolder}",

.vscodeignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
21
.gitattributes
32
.gitignore
3+
.vscode-test.mjs
44
tsconfig.json
55
tslint.json
66
webpack.config.js
77
.azure-pipelines/
88
.vscode/
99
.vscode-test/
10+
coverage/
1011
dist/**/*.map
1112
examples/
1213
node_modules/

README.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,10 @@ Add this to your `settings.json`:
5656

5757
Both format on save and the `Format document` command should now work!
5858

59-
## Pipeline configuration
60-
61-
![Configure Pipeline Demo](https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/main/resources/configure-pipeline.gif)
62-
63-
To set up a pipeline, choose *Azure Pipelines: Configure Pipeline* from the command palette (Ctrl/Cmd + Shift + P) or right-click in the file explorer. The guided workflow will generate a starter YAML file defining the build and deploy process.
64-
65-
You can customize the pipeline using all the features offered by [Azure Pipelines.](https://azure.microsoft.com/services/devops/pipelines/).
66-
67-
Once the setup is completed, an automatic CI/CD trigger will fire for every code push. To set this up, the extension will ask for a GitHub PAT with *repo* and *admin:repo_hook* scope.
68-
69-
![GitHub PAT scope](resources/gitHubPatScope.png)
70-
7159
## Telemetry
7260

7361
VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy statement](https://go.microsoft.com/fwlink/?LinkID=528096&clcid=0x409) to learn more. If you don’t wish to send usage data to Microsoft, you can set the `telemetry.enableTelemetry` setting to `false`. Learn more in our [FAQ](https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting).
7462

75-
## Troubleshooting failures
76-
77-
- **Selected workspace is not a Git repository**: You can configure a pipeline for a Git repository backed by GitHub or Azure Repos. Initialize your workspace as a Git repo, commit your files, and add a remote to GitHub or Azure Repos. Run the following commands to configure git repository:
78-
79-
`git init`
80-
81-
`git add *`
82-
83-
`git commit -m <commit-message>`
84-
85-
`git remote add <remote-name> <remote-url>`
86-
87-
- **The current branch doesn't have a tracking branch, and the selected repository has no remotes**: You can configure a pipeline for a Git repository backed by GitHub or Azure Repos. To add a new remote Git repository, run `git remote add <remote-name> <remote-url>`
88-
89-
- **Failed to determine Azure Repo details from remote url**: If you're configuring a pipeline for a Git repository backed by Azure Repos, ensure that it has a remote pointing to a valid Azure Repos Git repo URL.
90-
9163
## Extension Development
9264

9365
If you are only working on the extension (i.e. syntax highlighting, configure pipeline, and the language client):

0 commit comments

Comments
 (0)