mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
cf5b3b4ea6
commit
bac6fbaaf1
3 files changed
+7
-3
No files matched your search
+3
-1
@@ -205,7 +205,9 @@ export class Kubectl {
|
||||
})
|
||||
stream.on("error", (error) => {
|
||||
logger.error(error)
|
||||
fs.unlink(this.path, () => {})
|
||||
fs.unlink(this.path, () => {
|
||||
// do nothing
|
||||
})
|
||||
reject(error)
|
||||
})
|
||||
file.on("close", () => {
|
||||
|
||||
@@ -164,7 +164,9 @@ export class LensBinary {
|
||||
|
||||
stream.on("error", (error) => {
|
||||
logger.error(error)
|
||||
fs.unlink(binaryPath, () => {})
|
||||
fs.unlink(binaryPath, () => {
|
||||
// do nothing
|
||||
})
|
||||
throw(error)
|
||||
})
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
@@ -170,7 +170,7 @@ export class Terminal {
|
||||
// Handle custom hotkey bindings
|
||||
if (ctrlKey) {
|
||||
switch (code) {
|
||||
// Ctrl+C: prevent terminal exit on windows / linux (?)
|
||||
// Ctrl+C: prevent terminal exit on windows / linux (?)
|
||||
case "KeyC":
|
||||
if (this.xterm.hasSelection()) return false;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user