Skip to content

Commit 063b063

Browse files
authored
perf(Update the condition that triggers flow syntax helper): (#231)
1 parent 29e43cb commit 063b063

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/language-service/schema/flowSchema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521
"properties": {
522522
"version": {
523523
"type": "string",
524-
"enum": ["v1beta1"]
524+
"enum": ["v1beta1", "v1"]
525525
},
526526
"type": {
527527
"type": "string",

src/utils/document.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function isPartialTpl(document: vscode.TextDocument): boolean {
5858
export function isFlowDefinitionDocument(document: vscode.TextDocument): boolean {
5959
if (isYamlFile(document)) {
6060
const textDocument = document.getText();
61-
return flowVersionRegExp.test(textDocument) && flowTypeRegExp.test(textDocument);
61+
return flowTypeRegExp.test(textDocument);
6262
}
6363
return false;
6464
}

0 commit comments

Comments
 (0)