Skip to content

Commit

Permalink
add missing @Injectable()
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed Mar 6, 2023
1 parent 536a687 commit aaffc67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/node/filesystem-locking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// *****************************************************************************

import { Mutex } from 'async-mutex';
import type { interfaces } from 'inversify';
import { injectable, interfaces } from 'inversify';
import type { URI } from '../common';
import { FileUri } from './file-uri';
import path = require('path');
Expand All @@ -39,6 +39,7 @@ export interface FileSystemLocking {
isPathLocked(lockPath: string | URI): boolean;
}

@injectable()
export class FileSystemLockingImpl implements FileSystemLocking {

lockPath<T>(lockPath: string | URI, transaction: (lockPath: string) => T | Promise<T>, thisArg?: unknown): Promise<T> {
Expand Down

0 comments on commit aaffc67

Please sign in to comment.