File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ import { extensionArtifactCreator } from "./artifacts/extension.ts";
8
8
import { projectArtifactCreator } from "./artifacts/project.ts" ;
9
9
import { kEditorInfos , scanForEditors } from "./editor.ts" ;
10
10
11
- import { isInteractiveTerminal } from "../../core/platform.ts" ;
11
+ import {
12
+ isInteractiveTerminal ,
13
+ isRStudioWorkbench ,
14
+ } from "../../core/platform.ts" ;
12
15
import { runningInCI } from "../../core/ci-info.ts" ;
13
16
14
17
import { Command } from "cliffy/command/mod.ts" ;
@@ -56,6 +59,16 @@ export const createCommand = new Command()
56
59
const isInteractive = isInteractiveTerminal ( ) && ! runningInCI ( ) ;
57
60
const allowPrompt = isInteractive && ! ! options . prompt && ! options . json ;
58
61
62
+ // Specific case where opening automatically in an editor is not allowed
63
+ if ( options . open !== false && isRStudioWorkbench ( ) ) {
64
+ if ( options . open !== undefined ) {
65
+ info (
66
+ `The --open option is not supported in Posit Workbench - ignoring` ,
67
+ ) ;
68
+ }
69
+ options . open = false ;
70
+ }
71
+
59
72
// Resolve the type into an artifact
60
73
const resolved = await resolveArtifact (
61
74
type ,
You can’t perform that action at this time.
0 commit comments