Skip to content

Commit ce8fff6

Browse files
authored
Disable 'Open Git Repository in Terminal' if terminals are not available (#930)
* Disable 'Open Git Repository in Terminal' if terminals are not available https://github.com/jupyterlab/jupyterlab/blob/f0790b3ffd187b7dc923156b8ae227855abecefb/packages/terminal-extension/src/index.ts#L98 * Code formatting
1 parent f0b492a commit ce8fff6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commandsAndMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export function addCommands(
151151
main.dispose();
152152
}
153153
},
154-
isEnabled: () => gitModel.pathRepository !== null
154+
isEnabled: () =>
155+
gitModel.pathRepository !== null &&
156+
app.serviceManager.terminals.isAvailable()
155157
});
156158

157159
/** Add open/go to git interface command */

0 commit comments

Comments
 (0)