Skip to content

Commit

Permalink
ready for retest
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandiazFF committed Feb 20, 2025
1 parent 17d7086 commit 9d13d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "flutterflow-custom-code-editor",
"displayName": "FlutterFlow: Custom Code Editor",
"description": "Edit your FlutterFlow custom widgets, action, and functions.",
"version": "1.2.1",
"version": "1.2.4",
"publisher": "FlutterFlow",
"repository": {
"type": "git",
Expand Down
13 changes: 4 additions & 9 deletions src/actions/uriHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,11 @@ export async function handleFlutterFlowUri(
}

if (overwriteProjectChoice === 'Open Existing') {
const fullPath = path.join(projectDownloadPath, normalizedFileName);
const fullPath = path.join(currentWorkspacePath || '', normalizedFileName);

if (currentWorkspacePath === projectDownloadPath) {
// If project is already open in current workspace
if (fileName) {
if (fs.existsSync(fullPath)) {
const doc = await vscode.workspace.openTextDocument(fullPath);
await vscode.window.showTextDocument(doc);
}
}
if (fs.existsSync(fullPath)) {
const doc = await vscode.workspace.openTextDocument(fullPath);
await vscode.window.showTextDocument(doc);
return false;
} else {
// If project is not open in current workspace, open it
Expand Down

0 comments on commit 9d13d6b

Please sign in to comment.