未验证 提交 e61d5b90 编写于 作者: S SteVen Batten 提交者: GitHub

Merge branch 'master' into misolori/dialog-polish

...@@ -30,7 +30,7 @@ export class CodeActionUi extends Disposable { ...@@ -30,7 +30,7 @@ export class CodeActionUi extends Disposable {
quickFixActionId: string, quickFixActionId: string,
preferredFixActionId: string, preferredFixActionId: string,
private readonly delegate: { private readonly delegate: {
applyCodeAction: (action: CodeAction, regtriggerAfterApply: boolean) => void applyCodeAction: (action: CodeAction, regtriggerAfterApply: boolean) => Promise<void>
}, },
@IContextMenuService contextMenuService: IContextMenuService, @IContextMenuService contextMenuService: IContextMenuService,
@IKeybindingService keybindingService: IKeybindingService, @IKeybindingService keybindingService: IKeybindingService,
...@@ -81,7 +81,7 @@ export class CodeActionUi extends Disposable { ...@@ -81,7 +81,7 @@ export class CodeActionUi extends Disposable {
// Apply if we only have one action or requested autoApply // Apply if we only have one action or requested autoApply
if (newState.trigger.autoApply === CodeActionAutoApply.First || (newState.trigger.autoApply === CodeActionAutoApply.IfSingle && actions.actions.length === 1)) { if (newState.trigger.autoApply === CodeActionAutoApply.First || (newState.trigger.autoApply === CodeActionAutoApply.IfSingle && actions.actions.length === 1)) {
try { try {
this.delegate.applyCodeAction(actions.actions[0], false); await this.delegate.applyCodeAction(actions.actions[0], false);
} finally { } finally {
actions.dispose(); actions.dispose();
} }
......
...@@ -107,7 +107,7 @@ export class TrustedDomainsFileSystemProvider implements IFileSystemProviderWith ...@@ -107,7 +107,7 @@ export class TrustedDomainsFileSystemProvider implements IFileSystemProviderWith
writeFile(resource: URI, content: Uint8Array, opts: FileWriteOptions): Promise<void> { writeFile(resource: URI, content: Uint8Array, opts: FileWriteOptions): Promise<void> {
try { try {
const trustedDomainsContent = content.toString(); const trustedDomainsContent = VSBuffer.wrap(content).toString();
const trustedDomains = parse(trustedDomainsContent); const trustedDomains = parse(trustedDomainsContent);
this.storageService.store('http.linkProtectionTrustedDomainsContent', trustedDomainsContent, StorageScope.GLOBAL); this.storageService.store('http.linkProtectionTrustedDomainsContent', trustedDomainsContent, StorageScope.GLOBAL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册