Skip to content
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

Modernization 3 #161

Merged
merged 12 commits into from
Aug 8, 2024
Merged

Modernization 3 #161

merged 12 commits into from
Aug 8, 2024

Conversation

phryneas
Copy link
Member

@phryneas phryneas commented Aug 2, 2024

No description provided.

@@ -28,7 +28,7 @@ import {
DiagnosticSeverity,
} from "vscode-languageserver/node";
import LZString from "lz-string";
import { stringifyUrl } from "query-string";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New versions of "query-string" are ESM only and I really don't want to touch the build process of the Extension right now.

@@ -412,7 +412,7 @@ export class GraphQLClientProject extends GraphQLProject {
this.frontendUrlRoot ?? "https://studio.apollographql.com";

const variant = this.config.variant;
const graphId = this.config.graph;
const graphId = this.studioGraphId;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I have a config file like

module.exports = {
  client: {
    service: {
      name: "localSchema",
      localSchemaFile: "./starwarsSchema.graphql",
    },
  },
};

graphId would be localSchema - of course, linking to studio for that is kinda useless, but that's exactly what the extension did until now.

@phryneas phryneas force-pushed the pr/modernization-3 branch from fedd51f to 6c675d6 Compare August 2, 2024 15:44
"vscode-apollo": patch
---

Only show "Run in Studio" gutter action for local graphs if an endpoint is configured.
Copy link
Member Author

@phryneas phryneas Aug 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure.. it seems like a good idea, but might someone get use from a link to explorer that doesn't fill in the endpoint?
My gut says removing this is the right thing, but I'd love a second opinion.

Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@phryneas phryneas merged commit 7fd5731 into main Aug 8, 2024
7 checks passed
@phryneas phryneas deleted the pr/modernization-3 branch August 8, 2024 09:10
@github-actions github-actions bot mentioned this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants