When did Jesus stop teaching the whole ten commandments? Never. Even his Revelation teachings tell us the Ark containing them, the Ten Commandments written on stone, is still there in heaven, even heaven in the future, even now in our time today.
The Book of Revelation describes a vision in which the Ark of the Covenant appears in heaven. In Revelation 11:19, John writes, "Then God’s temple in heaven was opened, and the ark of his covenant was seen within his temple." The purpose of the Ark is to hold the Ten Commandments written in stone, enduring, core. This has not gone away. The ten commandments remain core to the truth in Christ.