mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
stop running magics that dont exist (#10894)
This commit is contained in:
@@ -382,7 +382,8 @@ export class JupyterSession implements nb.ISession {
|
||||
}
|
||||
|
||||
private async setEnvironmentVars(skip: boolean = false): Promise<void> {
|
||||
if (!skip && this.sessionImpl) {
|
||||
// The PowerShell kernel doesn't define the %cd and %set_env magics; no need to run those here then
|
||||
if (!skip && this.sessionImpl?.kernel?.name !== 'powershell') {
|
||||
let allCode: string = '';
|
||||
// Ensure cwd matches notebook path (this follows Jupyter behavior)
|
||||
if (this.path && path.dirname(this.path)) {
|
||||
|
||||
Reference in New Issue
Block a user