Skip to content

Commit

Permalink
fixed checking if container needs rebuild
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
  • Loading branch information
jonah-iden committed Feb 13, 2024
1 parent 119318a commit b4882b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class DockerContainerService {

const devcontainerFile = workspace.resolve('.devcontainer/devcontainer.json');

if (lastContainerInfo && fs.statSync(devcontainerFile.path.fsPath()).mtimeMs > lastContainerInfo.lastUsed) {
if (lastContainerInfo && fs.statSync(devcontainerFile.path.fsPath()).mtimeMs < lastContainerInfo.lastUsed) {
try {
container = docker.getContainer(lastContainerInfo.id);
if ((await container.inspect()).State.Running) {
Expand Down

0 comments on commit b4882b1

Please sign in to comment.