debt - fix some JS compile errors (#178472)

* debt - fix some JS compile errors

* simplify
This commit is contained in:
Benjamin Pasero 2023-03-28 09:52:01 +02:00 committed by GitHub
parent d490dfe9f7
commit 3edcfeb381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -51,9 +51,9 @@ if (nlsConfig && nlsConfig.pseudo) {
}
/**
* @param {string} entrypoint
* @param {(value: any) => void} onLoad
* @param {(err: Error) => void} onError
* @param {string=} entrypoint
* @param {(value: any) => void=} onLoad
* @param {(err: Error) => void=} onError
*/
exports.load = function (entrypoint, onLoad, onError) {
if (!entrypoint) {

View file

@ -668,7 +668,7 @@ export class CodeApplication extends Disposable {
private shouldBlockURI(uri: URI): boolean {
if (uri.authority === Schemas.file && isWindows) {
const { options, buttonIndeces } = massageMessageBoxOptions({
type: 'question',
type: 'warning',
buttons: [
localize({ key: 'open', comment: ['&& denotes a mnemonic'] }, "&&Yes"),
localize({ key: 'cancel', comment: ['&& denotes a mnemonic'] }, "&&No")