mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
misc
This commit is contained in:
parent
06688228ae
commit
6386fc95ee
2 changed files with 2 additions and 4 deletions
|
|
@ -78,16 +78,13 @@ class SurroundingsRemover {
|
|||
removeCodeBlock = () => {
|
||||
const pm = this
|
||||
const foundCodeBlock = pm.removePrefix('```')
|
||||
console.log('A', this.i, this.j)
|
||||
if (!foundCodeBlock) return false
|
||||
|
||||
pm.removeFromStartUntil('\n', true) // language
|
||||
console.log('B', this.i, this.j)
|
||||
|
||||
const foundCodeBlockEnd = pm.removeSuffix('```')
|
||||
if (!foundCodeBlockEnd) return false
|
||||
|
||||
console.log('C', this.i, this.j)
|
||||
pm.removeSuffix('\n')
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ import { Action2, registerAction2 } from '../../../../platform/actions/common/ac
|
|||
import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js';
|
||||
import { localize2 } from '../../../../nls.js';
|
||||
import { INotificationService, Severity } from '../../../../platform/notification/common/notification.js';
|
||||
import { isMacintosh } from '../../../../base/common/platform.js';
|
||||
|
||||
const configOfBG = (color: Color) => {
|
||||
return { dark: color, light: color, hcDark: color, hcLight: color, }
|
||||
|
|
@ -1174,7 +1175,7 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService {
|
|||
this._notificationService.notify({
|
||||
severity: Severity.Warning,
|
||||
message: `Void Error: ${e.message}`,
|
||||
source: details ?? undefined
|
||||
source: details ? `(Hold ${isMacintosh ? 'Option' : 'Alt'} to hover) - ${details}` : undefined
|
||||
})
|
||||
onDone(true)
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue