-
Notifications
You must be signed in to change notification settings - Fork 463
Create --variant flag, deprecate --tag flag #1849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fdb552f
df140d8
33d6f71
74bd14a
271982a
4549acf
373d364
9658ff5
ed9bd15
5a67bbb
a2fa163
fe93251
598f2ae
272434a
3813df4
9524e26
5d09944
606e18b
5f44ed1
c47a12b
85e49e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,7 +135,7 @@ export class ApolloConfig { | |
| public name?: string; | ||
| public service?: ServiceConfigFormat; | ||
| public client?: ClientConfigFormat; | ||
| private _tag?: string; | ||
| private _variant?: string; | ||
|
|
||
| constructor(public rawConfig: ApolloConfigFormat, public configURI?: URI) { | ||
| this.isService = !!rawConfig.service; | ||
|
|
@@ -162,12 +162,12 @@ export class ApolloConfig { | |
| return configs; | ||
| } | ||
|
|
||
| set tag(tag: string) { | ||
| this._tag = tag; | ||
| set variant(tag: string) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My only concern is if this breaks anything in vs code. But I don’t think it should
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I admit I didn't test with VS code, but mainly because I don't know how to test a local build! Is there a QA practice we go through before release?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not in a consistent way! I’ll run through all this before releasing, but I don’t expect any issue here since it only interfaces with the language server anyway :) |
||
| this._variant = tag; | ||
| } | ||
|
|
||
| get tag(): string { | ||
| if (this._tag) return this._tag; | ||
| get variant(): string { | ||
| if (this._variant) return this._variant; | ||
| let tag: string = "current"; | ||
| if (this.client && typeof this.client.service === "string") { | ||
| const specifierTag = parseServiceSpecifier(this.client | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting of this entry isn’t consistent with what we have but I’m not concerned too much there, and that’s non blocking. I can amend before releasing since I’ll have to do that anyway