mirror of
https://github.com/coder/code-server.git
synced 2026-05-12 07:17:26 +02:00
chore(vscode): update to 1.54.2
This commit is contained in:
@@ -105,7 +105,7 @@ export class OpenerService implements IOpenerService {
|
||||
|
||||
constructor(
|
||||
@ICodeEditorService editorService: ICodeEditorService,
|
||||
@ICommandService commandService: ICommandService,
|
||||
@ICommandService commandService: ICommandService
|
||||
) {
|
||||
// Default external opener is going through window.open()
|
||||
this._defaultExternalOpener = {
|
||||
@@ -166,7 +166,7 @@ export class OpenerService implements IOpenerService {
|
||||
// check with contributed validators
|
||||
const targetURI = typeof target === 'string' ? URI.parse(target) : target;
|
||||
// validate against the original URI that this URI resolves to, if one exists
|
||||
const validationTarget = this._resolvedUriTargets.get(targetURI) ?? target;
|
||||
const validationTarget = this._resolvedUriTargets.get(targetURI) ?? targetURI;
|
||||
for (const validator of this._validators) {
|
||||
if (!(await validator.shouldOpen(validationTarget))) {
|
||||
return false;
|
||||
@@ -188,7 +188,9 @@ export class OpenerService implements IOpenerService {
|
||||
for (const resolver of this._resolvers) {
|
||||
const result = await resolver.resolveExternalUri(resource, options);
|
||||
if (result) {
|
||||
this._resolvedUriTargets.set(result.resolved, resource);
|
||||
if (!this._resolvedUriTargets.has(result.resolved)) {
|
||||
this._resolvedUriTargets.set(result.resolved, resource);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user