Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant committed May 26, 2022
1 parent 03ad2d9 commit 6789619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kernels/variables/debuggerVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class DebuggerVariables
if (this.active) {
// Note, full variable results isn't necessary for this call. It only really needs the variable value.
const result = this.lastKnownVariables.find((v) => v.name === name);
if (result && kernel?.resourceUri?.fsPath.endsWith('.ipynb')) {
if (result && kernel?.resourceUri?.path.endsWith('.ipynb')) {
sendTelemetryEvent(Telemetry.RunByLineVariableHover);
}
return result;
Expand Down Expand Up @@ -160,7 +160,7 @@ export class DebuggerVariables
);

const notebook = getAssociatedNotebookDocument(kernel);
let fileName = notebook ? path.basename(notebook.uri.fsPath) : '';
let fileName = notebook ? path.basename(notebook.uri.path) : '';
if (!fileName && this.debugLocation?.fileName) {
fileName = path.basename(this.debugLocation.fileName);
}
Expand Down

0 comments on commit 6789619

Please sign in to comment.