This commit is contained in:
Andrew Pareles 2025-01-12 19:10:33 -08:00
parent 06688228ae
commit 6386fc95ee
2 changed files with 2 additions and 4 deletions

View file

@ -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
}

View file

@ -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)
},