Skip to content

Commit 461c127

Browse files
committed
Add betaServer feature flag to enable pre-releases
1 parent e22e78b commit 461c127

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

vscode/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,10 @@
562562
"launcher": {
563563
"description": "Opt-in/out of the new launcher mode",
564564
"type": "boolean"
565+
},
566+
"betaServer": {
567+
"description": "Opt-in/out of beta server versions",
568+
"type": "boolean"
565569
}
566570
},
567571
"default": {}

vscode/src/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ function getLspExecutables(workspaceFolder: vscode.WorkspaceFolder, env: NodeJS.
135135
args.push("--use-launcher");
136136
}
137137

138+
if (featureEnabled("betaServer")) {
139+
args.push("--beta");
140+
}
141+
138142
run = { command, args, options: executableOptions };
139143
debug = {
140144
command,

vscode/src/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const FEATURE_FLAGS = {
8484
tapiocaAddon: 1.0,
8585
launcher: 0.3,
8686
fullTestDiscovery: 1.0,
87+
betaServer: -1,
8788
};
8889

8990
type FeatureFlagConfigurationKey = keyof typeof FEATURE_FLAGS | "all";

0 commit comments

Comments
 (0)