Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
seeM committed Apr 2, 2024
1 parent 53b55c9 commit 88ea24a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class NotebookController implements vscode.Disposable {

await Promise.all([
updateNotebookLanguage(e.notebook, this.languageId),
this.startNewRuntimeSession(e.notebook),
this.startRuntimeSession(e.notebook),
]);
} else {
await notebookSessionService.shutdownRuntimeSession(e.notebook.uri);
Expand All @@ -78,12 +78,12 @@ export class NotebookController implements vscode.Disposable {
}

/**
* Start a new runtime session for a notebook.
* Start a runtime session for a notebook.
*
* @param notebook The notebook to start a runtime for.
* @returns Promise that resolves when the runtime has started.
*/
public async startNewRuntimeSession(notebook: vscode.NotebookDocument): Promise<positron.LanguageRuntimeSession> {
public async startRuntimeSession(notebook: vscode.NotebookDocument): Promise<positron.LanguageRuntimeSession> {
try {
return await this.notebookSessionService.startRuntimeSession(notebook.uri, this.languageId);
} catch (err) {
Expand All @@ -98,7 +98,7 @@ export class NotebookController implements vscode.Disposable {
retry,
);
if (selection === retry) {
return vscode.window.withProgress(this.startProgressOptions(notebook), () => this.startNewRuntimeSession(notebook));
return vscode.window.withProgress(this.startProgressOptions(notebook), () => this.startRuntimeSession(notebook));
}

throw err;
Expand Down Expand Up @@ -126,7 +126,7 @@ export class NotebookController implements vscode.Disposable {

// No session has been started for this notebook, start one.
if (!session) {
session = await vscode.window.withProgress(this.startProgressOptions(notebook), () => this.startNewRuntimeSession(notebook));
session = await vscode.window.withProgress(this.startProgressOptions(notebook), () => this.startRuntimeSession(notebook));
}

for (const cell of cells) {
Expand Down

0 comments on commit 88ea24a

Please sign in to comment.