We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29e43cb commit 063b063Copy full SHA for 063b063
src/language-service/schema/flowSchema.json
@@ -521,7 +521,7 @@
521
"properties": {
522
"version": {
523
"type": "string",
524
- "enum": ["v1beta1"]
+ "enum": ["v1beta1", "v1"]
525
},
526
"type": {
527
src/utils/document.ts
@@ -58,7 +58,7 @@ export function isPartialTpl(document: vscode.TextDocument): boolean {
58
export function isFlowDefinitionDocument(document: vscode.TextDocument): boolean {
59
if (isYamlFile(document)) {
60
const textDocument = document.getText();
61
- return flowVersionRegExp.test(textDocument) && flowTypeRegExp.test(textDocument);
+ return flowTypeRegExp.test(textDocument);
62
}
63
return false;
64
0 commit comments