Skip to content

Commit dacdf4f

Browse files
committed
Merge branch 'main' into dependabot/npm_and_yarn/minimist-1.2.8
2 parents d3b5e47 + 5bd0c2c commit dacdf4f

File tree

89 files changed

+9670
-3390
lines changed

Some content is hidden

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

89 files changed

+9670
-3390
lines changed

.circleci/config.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.fantasticonrc.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//@ts-check
2+
3+
/** @type {import('@twbs/fantasticon').RunnerOptions} */
4+
const config = {
5+
name: 'glicons',
6+
prefix: 'glicon',
7+
codepoints: require('./images/icons/template/mapping.json'),
8+
inputDir: './images/icons',
9+
outputDir: './dist',
10+
fontsUrl: '#{root}/dist',
11+
// @ts-ignore
12+
fontTypes: ['woff2'],
13+
normalize: true,
14+
// @ts-ignore
15+
assetTypes: ['html', 'scss', 'json'],
16+
templates: {
17+
html: './images/icons/template/icons-contribution.hbs',
18+
scss: './images/icons/template/styles.hbs',
19+
},
20+
formatOptions: {
21+
json: {
22+
indent: 2,
23+
},
24+
},
25+
pathOptions: {
26+
woff2: './dist/glicons.woff2',
27+
scss: './dist/glicons.scss',
28+
html: './dist/icons-contribution.json',
29+
json: './images/icons/template/mapping.json',
30+
},
31+
};
32+
33+
module.exports = config;

.github/workflows/main.yml

Lines changed: 35 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,42 @@
1-
name: CI
1+
name: Node CI
22

3-
on:
4-
push:
5-
branches: [ main, beta, prerelease ]
6-
workflow_dispatch:
3+
on: [push, pull_request]
74

85
jobs:
96
build:
107
runs-on: ubuntu-latest
118

129
steps:
13-
- uses: actions/checkout@v2
14-
- name: Extract branch name
15-
shell: bash
16-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
17-
id: extract_branch
18-
- uses: actions/setup-node@v2
19-
with:
20-
node-version: '14'
21-
- run: yarn
22-
- run: yarn prepare-beta
23-
if: ${{ steps.extract_branch.outputs.branch == 'beta' }}
24-
- name: Run headless test
25-
uses: GabrielBB/xvfb-action@v1
26-
with:
27-
run: yarn test
28-
- run: yarn run prettier:check
29-
- run: yarn run lint
30-
- name: Publish to Visual Studio Marketplace
31-
if: ${{ steps.extract_branch.outputs.branch != 'prerelease' }}
32-
uses: HaaLeo/publish-vscode-extension@v1
33-
with:
34-
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
35-
registryUrl: https://marketplace.visualstudio.com
36-
yarn: true
37-
- name: Publish to Visual Studio Marketplace for pre-release
38-
if: ${{ steps.extract_branch.outputs.branch == 'prerelease' }}
39-
uses: HaaLeo/publish-vscode-extension@v1
40-
with:
41-
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
42-
registryUrl: https://marketplace.visualstudio.com
43-
yarn: true
44-
preRelease: true
45-
- name: Publish to Open VSX Registry
46-
uses: HaaLeo/publish-vscode-extension@v0
47-
with:
48-
pat: ${{ secrets.OPEN_VSX_TOKEN }}
49-
yarn: true
10+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
11+
12+
- name: Use Node.js
13+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
14+
with:
15+
node-version: '22.13.0'
16+
17+
- name: Cache Node.js modules
18+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.OS }}-node-
24+
${{ runner.OS }}-
25+
26+
- name: Install dependencies
27+
run: yarn
28+
29+
- name: Setup
30+
run: yarn build:setup
31+
32+
- name: Setup xvfb
33+
run: xvfb-run -a yarn run vscode:prepublish
34+
35+
- name: Run xvfb test
36+
run: xvfb-run -a yarn test
37+
38+
- name: Prettier
39+
run: yarn run prettier:check
40+
41+
- name: Lint
42+
run: yarn run lint

.github/workflows/release.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, beta, prerelease ]
6+
paths:
7+
- 'src/**'
8+
- 'package.json'
9+
- 'webpack.config.js'
10+
- 'tsconfig.json'
11+
- 'yarn.lock'
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
20+
with:
21+
fetch-depth: 2 # Need previous commit to compare versions
22+
23+
- name: Extract branch name
24+
shell: bash
25+
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
26+
id: extract_branch
27+
28+
- name: Check if version changed
29+
id: version_check
30+
run: |
31+
OLD_VERSION=$(git show HEAD~1:package.json 2>/dev/null | jq -r '.version' || echo "0.0.0")
32+
NEW_VERSION=$(jq -r '.version' package.json)
33+
echo "old_version=$OLD_VERSION"
34+
echo "new_version=$NEW_VERSION"
35+
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
36+
echo "Version changed from $OLD_VERSION to $NEW_VERSION"
37+
echo "changed=true" >> $GITHUB_OUTPUT
38+
else
39+
echo "Version unchanged ($NEW_VERSION)"
40+
echo "changed=false" >> $GITHUB_OUTPUT
41+
fi
42+
43+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
44+
with:
45+
node-version: '22.13.0'
46+
- run: yarn
47+
- run: yarn build:setup
48+
- run: yarn prepare-beta
49+
if: ${{ steps.extract_branch.outputs.branch == 'beta' }}
50+
- run: xvfb-run -a yarn test
51+
- run: yarn run prettier:check
52+
- run: yarn run lint
53+
- name: Publish to Visual Studio Marketplace
54+
if: ${{ (steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch') && steps.extract_branch.outputs.branch != 'prerelease' }}
55+
uses: HaaLeo/[email protected]
56+
with:
57+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
58+
registryUrl: https://marketplace.visualstudio.com
59+
yarn: true
60+
61+
- name: Publish to Visual Studio Marketplace for pre-release
62+
if: ${{ (steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch') && steps.extract_branch.outputs.branch == 'prerelease' }}
63+
uses: HaaLeo/[email protected]
64+
with:
65+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
66+
registryUrl: https://marketplace.visualstudio.com
67+
yarn: true
68+
preRelease: true
69+
70+
- name: Publish to Open VSX Registry
71+
if: ${{ steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch' }}
72+
uses: HaaLeo/publish-vscode-extension@v0
73+
with:
74+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
75+
yarn: true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ yarn-error.log
66
dist
77
coderefs/
88
.vscode/settings.json
9-
.idea
9+
.idea
10+
.yarn/
11+
package-lock.json

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode-test.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// .vscode-test.js
2+
const { defineConfig } = require('@vscode/test-cli');
3+
4+
module.exports = defineConfig([
5+
{
6+
label: 'unitTests',
7+
files: ['out/test/*.test.js'],
8+
version: 'insiders',
9+
workspaceFolder: './sampleWorkspace',
10+
mocha: {
11+
ui: 'tdd',
12+
timeout: 20000
13+
}
14+
}]
15+
);

.vscode/launch.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
11
{
22
"version": "0.1.0",
33
"configurations": [
4+
{
5+
"name": "Extension Tests",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceFolder}",
11+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
12+
],
13+
"outFiles": ["${workspaceFolder}/out/test/*.test.js"]
14+
},
415
{
516
"name": "Run Debug Extension",
617
"type": "extensionHost",
718
"request": "launch",
819
"runtimeExecutable": "${execPath}",
920
"args": ["--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}"],
1021
"sourceMaps": true,
11-
"outFiles": ["${workspaceFolder}/out/**/*.js"]
22+
"outFiles": ["${workspaceFolder}/dist/*"]
23+
//"preLaunchTask": "yarn"
24+
},
25+
{
26+
"name": "Run Debug Extension - Profile",
27+
"type": "extensionHost",
28+
"request": "launch",
29+
"runtimeExecutable": "${execPath}",
30+
"args": ["--profile=vscode-testing", "--extensionDevelopmentPath=${workspaceFolder}", "--enable-proposed-api=launchdarklyofficial.launchdarkly"],
31+
"sourceMaps": true,
32+
"outFiles": ["${workspaceFolder}/dist/*"]
1233
//"preLaunchTask": "yarn"
1334
},
1435
{

.vscodeignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ webpack.config.js
88
**/*.ts
99
*.vsix
1010
CHANGELOG.md
11+
.vscode-test/
12+
coderefs/
13+
.github
14+
.circleci
15+
.nyc_output

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,55 @@
22

33
All notable changes to the "launchdarkly" extension will be documented in this file.
44

5+
6+
## [6.2.0] - 2026-01-28
7+
8+
### Added
9+
10+
- Added "EU" as a first-class option in the instance picker during sign-in, making it easier for EU customers to connect to `app.eu.launchdarkly.com`
11+
12+
## [6.1.0] - 2025-12-05
13+
- Bumping major and minor version to address rogue published version that is not captured in our package.json
14+
15+
16+
## [5.1.0] - 2025-09-01
17+
18+
### Fixed
19+
20+
- Bug with token validation
21+
- Updated broken quick link urls
22+
- Upgraded failing dependencies
23+
24+
### Changed
25+
26+
- Login flow
27+
- Better handling of invalid sessions
28+
29+
### Added
30+
31+
- Ability to sign out of session
32+
- Custom error handling for failed authentication
33+
- Developement instructions into README
34+
35+
## [5.0.0] - 2024-02-06
36+
37+
### Fixed
38+
39+
- Numerous performance issues related to code lens.
40+
- Initial setup now recovers better if there's been a problem.
41+
42+
## Changed
43+
- Initial setup is now split into Sign in and Configuration.
44+
- Updated CLI version of Code References.
45+
46+
## Added
47+
- Code lens and hover now show SDK availability of a flag.
48+
- Sign via through AuthProvider API.
49+
- `LaunchDarkly: Flag Actions` command.
50+
- Quick Targeting allows you to add/remove single context or rule from a flag.
51+
- Flags in File now has inline commands on entry.
52+
- Status bar icon that tells you current configured project and environment.
53+
554
## [4.0.2] - 2023-02-15
655

756
### Fixed

0 commit comments

Comments
 (0)