File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
## NEXT
2
2
3
+ - [ Fixed] Language server now properly recognizes nested Dataconnect folders
4
+
3
5
## 1.5.0
4
6
5
7
- Update internal ` firebase-tools ` dependency to 14.9.0
Original file line number Diff line number Diff line change @@ -268,7 +268,10 @@ export class ResolvedDataConnectConfig {
268
268
}
269
269
270
270
get relativePath ( ) : string {
271
- return this . path . split ( "/" ) . pop ( ) ! ;
271
+ if ( ! getConfigPath ( ) ) {
272
+ return this . path . split ( "/" ) . pop ( ) ! ;
273
+ }
274
+ return path . relative ( getConfigPath ( ) ! , this . path ) ;
272
275
}
273
276
274
277
get relativeSchemaPath ( ) : string {
Original file line number Diff line number Diff line change @@ -141,15 +141,5 @@ export function setupLanguageClient(
141
141
outputChannel . appendLine ( "Firebase GraphQL Language Server restarted" ) ;
142
142
} ) ;
143
143
144
- // ** DISABLED FOR NOW WHILE WE TEST GENERATED YAML **
145
- // restart server whenever config file changes
146
- // const watcher = vscode.workspace.createFileSystemWatcher(
147
- // "**/.graphqlrc.*", // TODO: extend to schema files, and other config types
148
- // false,
149
- // false,
150
- // false,
151
- // );
152
- // watcher.onDidChange(() => restartGraphqlLSP());
153
-
154
144
return client ;
155
145
}
You can’t perform that action at this time.
0 commit comments