mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Don't try to enable proposed API's on stable
This commit is contained in:
parent
f9494f1147
commit
be4977da7f
3 changed files with 17 additions and 21 deletions
|
@ -38,17 +38,11 @@ export class Config {
|
|||
]
|
||||
.map(opt => `${this.rootSection}.${opt}`);
|
||||
|
||||
readonly packageJsonVersion: string = vscode
|
||||
.extensions
|
||||
.getExtension(this.extensionId)!
|
||||
.packageJSON
|
||||
.version;
|
||||
|
||||
readonly releaseTag: string | undefined = vscode
|
||||
.extensions
|
||||
.getExtension(this.extensionId)!
|
||||
.packageJSON
|
||||
.releaseTag ?? undefined;
|
||||
readonly package: {
|
||||
version: string;
|
||||
releaseTag: string | undefined;
|
||||
enableProposedApi: boolean | undefined;
|
||||
} = vscode.extensions.getExtension(this.extensionId)!.packageJSON;
|
||||
|
||||
private cfg!: vscode.WorkspaceConfiguration;
|
||||
|
||||
|
@ -62,7 +56,7 @@ export class Config {
|
|||
const enableLogging = this.cfg.get("trace.extension") as boolean;
|
||||
log.setEnabled(enableLogging);
|
||||
log.debug(
|
||||
"Extension version:", this.packageJsonVersion,
|
||||
"Extension version:", this.package.version,
|
||||
"using configuration:", this.cfg
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue