Skip to content

Commit

Permalink
Use path.sep instead of \
Browse files Browse the repository at this point in the history
  • Loading branch information
debonte committed Apr 4, 2023
1 parent 2ae226e commit 9b4bfd2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import * as path from '../../platform/vscode-path/path';
import { inject, injectable } from 'inversify';
import { Disposable, extensions, Uri, workspace, window } from 'vscode';
import { INotebookEditorProvider } from '../../notebooks/types';
Expand Down Expand Up @@ -126,7 +127,8 @@ export class NotebookPythonPathService implements IExtensionSingleActivationServ
return undefined;
}

const notebookPath = `${textDocumentUri.fsPath.replace('\\InteractiveInput-', 'Interactive-')}.interactive`;
const inputBoxPrefix = path.sep + 'InteractiveInput-';
const notebookPath = `${textDocumentUri.fsPath.replace(inputBoxPrefix, 'Interactive-')}.interactive`;
const notebookUri = textDocumentUri.with({ scheme: 'vscode-interactive', path: notebookPath });
let result: string | undefined = undefined;
window.tabGroups.all.find((group) => {
Expand Down

0 comments on commit 9b4bfd2

Please sign in to comment.