Skip to content

Commit

Permalink
chore: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Jun 29, 2022
1 parent 9c567c2 commit 28a6d47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/debug/src/browser/debug-memory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { clamp } from 'lodash';

import { Injectable, Autowired } from '@opensumi/di';
import { Path } from '@opensumi/ide-utils/lib/path';
import {
Event,
FileSystemProvider,
Expand All @@ -15,6 +15,8 @@ import {
ILogger,
} from '@opensumi/ide-core-common';

import clamp from 'lodash/clamp';

import {
DEBUG_MEMORY_SCHEME,
IDebugSession,
Expand All @@ -25,7 +27,7 @@ import {
MemoryRangeType,
} from '../common';

import { DebugSessionManager } from '.';
import { DebugSessionManager } from './debug-session-manager';

@Injectable()
export class DebugMemoryFileSystemProvider implements FileSystemProvider {
Expand Down Expand Up @@ -136,7 +138,7 @@ export class DebugMemoryFileSystemProvider implements FileSystemProvider {
offset = { fromOffset: Number(rangeMatch[1]), toOffset: Number(rangeMatch[2]) };
}

const [, memoryReference] = uri.path.split('/');
const [, memoryReference] = uri.path.split(Path.separator);

return {
session,
Expand Down

0 comments on commit 28a6d47

Please sign in to comment.