We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34f2cb5 + 730d6f5 commit 91b9764Copy full SHA for 91b9764
src/extension.ts
@@ -7,7 +7,6 @@ import cloneDeep from 'lodash.clonedeep'
7
import { YamlCliFlags } from '@graphql-codegen/cli'
8
9
import globby from 'globby'
10
-import { generateSearchPlaces } from './generateSearchPlaces'
11
12
/**
13
* Current workspace directory
@@ -105,7 +104,11 @@ const getConfigPath = async () => {
105
104
return makePathAbsolute(userConfigPath)
106
}
107
108
- const foundConfigs = await globby(generateSearchPlaces('codegen'), {
+ if (cli == null) {
+ return; // cli should already be loaded here
109
+ }
110
+
111
+ const foundConfigs = await globby(cli.generateSearchPlaces('codegen'), {
112
cwd: firstWorkspaceDirectory()
113
})
114
src/generateSearchPlaces.ts
0 commit comments