Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Aug 11, 2022
1 parent d53a127 commit 347b3f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ export class DebugStartupCodeProvider implements IStartupCodeProvider {
public priority = StartupCodePriority.Base;

async getCode(kernel: IKernel): Promise<string[]> {
if (
!isPythonKernelConnection(kernel.kernelConnectionMetadata)
) {
if (!isPythonKernelConnection(kernel.kernelConnectionMetadata)) {
return [];
}
)
return [
'import os as __VSCODE_os',
// Required to get pydevd to work properly in Python kernel, more info here https://github.com/microsoft/vscode-jupyter/issues/11033
Expand Down
2 changes: 1 addition & 1 deletion src/kernels/serviceRegistry.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { ServerPreload } from './jupyter/launcher/serverPreload.node';
import { KernelStartupCodeProvider } from './kernelStartupCodeProvider.node';
import { KernelAutoReConnectFailedMonitor } from './kernelAutoReConnectFailedMonitor';
import { KernelAutoReconnectMonitor } from './kernelAutoReConnectMonitor';
import { DebugStartupCodeProvider } from './debuggerStartupCodeProvider.';
import { DebugStartupCodeProvider } from './debuggerStartupCodeProvider';

export function registerTypes(serviceManager: IServiceManager, isDevMode: boolean) {
serviceManager.addSingleton<IExtensionSingleActivationService>(IExtensionSingleActivationService, Activation);
Expand Down
2 changes: 1 addition & 1 deletion src/kernels/serviceRegistry.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { PythonVariablesRequester } from './variables/pythonVariableRequester';
import { CellOutputDisplayIdTracker } from './execution/cellDisplayIdTracker';
import { KernelAutoReConnectFailedMonitor } from './kernelAutoReConnectFailedMonitor';
import { KernelAutoReconnectMonitor } from './kernelAutoReConnectMonitor';
import { DebugStartupCodeProvider } from './debuggerStartupCodeProvider.';
import { DebugStartupCodeProvider } from './debuggerStartupCodeProvider';

@injectable()
class RawNotebookSupportedService implements IRawNotebookSupportedService {
Expand Down

0 comments on commit 347b3f8

Please sign in to comment.