Skip to content

Commit

Permalink
Changed the stop function name and updated the version
Browse files Browse the repository at this point in the history
  • Loading branch information
murtadapy committed Feb 18, 2024
1 parent 6d277c8 commit 0353a6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "teleporter",
"displayName": "Teleporter",
"description": "Teleport the mouse cursor anywhere you want",
"version": "1.0.1",
"version": "1.1.0",
"publisher": "maltarouti",
"icon":"images/icon.png",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/cursorTeleporter/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class CursorTeleporterBase {
maximumSizeOfMatches = 26 * 26;
isModeOn = false;

async stop() {
async dispose() {
if (this.isModeOn) {
const activeEditor = this.window.activeTextEditor;
activeEditor?.setDecorations(this.decorationType, []);
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function activate(context: vscode.ExtensionContext) {
async function stop() {
for (var t of teleporters) {
if (t.isModeOn) {
t.stop();
t.dispose();
return;
}
}
Expand Down

0 comments on commit 0353a6f

Please sign in to comment.