Skip to content

Commit

Permalink
change launch.json && update settings && remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Feb 21, 2024
1 parent b03b7f9 commit 654fdf7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 53 deletions.
22 changes: 15 additions & 7 deletions starsky/starsky/clientapp/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"name": "Jest file",
"type": "pwa-node",
"request": "launch",
"args": ["test", "--runInBand"],
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/jest",
"args": [
"${fileBasenameNoExtension}",
"--runInBand",
"--watch",
"--coverage=false",
"--no-cache"
],
"cwd": "${workspaceRoot}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/react-scripts",
"protocol": "inspector"
"sourceMaps": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
]
}
3 changes: 3 additions & 0 deletions starsky/starsky/clientapp/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"eslint.alwaysShowStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,49 +157,3 @@ const MenuOptionDesktopEditorOpen: React.FunctionComponent<IMenuOptionDesktopEdi
});

export default MenuOptionDesktopEditorOpen;

// async function moveToTrashSelection() {
// if (!select || isReadOnly) return;

// const toUndoTrashList = new URLPath().MergeSelectFileIndexItem(select, state.fileIndexItems);

// if (!toUndoTrashList) return;
// const selectParams = new URLPath().ArrayToCommaSeparatedStringOneParent(toUndoTrashList, "");
// if (selectParams.length === 0) return;

// const bodyParams = new URLSearchParams();
// // noinspection PointlessBooleanExpressionJS
// const collections = new URLPath().StringToIUrl(history.location.search).collections !== false;

// bodyParams.append("f", selectParams);
// bodyParams.set("Tags", "!delete!");
// bodyParams.set("append", "true");
// bodyParams.set("Colorclass", "8");
// bodyParams.set("collections", collections.toString());

// const resultDo = await FetchPost(new UrlQuery().UrlMoveToTrashApi(), bodyParams.toString());

// if (
// resultDo.statusCode === 404 ||
// resultDo.statusCode === 400 ||
// resultDo.statusCode === 500 ||
// resultDo.statusCode === 502
// ) {
// return;
// }

// undoSelection();
// dispatch({ type: "remove", toRemoveFileList: toUndoTrashList });
// ClearSearchCache(history.location.search);
// // Client side Caching: the order of files in a normal folder has changed
// new FileListCache().CacheCleanEverything();
// }

// /**
// * When pressing delete its moved to the trash
// */
// useHotKeys({ key: "E", ctrlKeyOrMetaKey: true }, () => {
// moveToTrashSelection().then(() => {
// // do nothing
// });
// });

0 comments on commit 654fdf7

Please sign in to comment.