Skip to content

Commit

Permalink
use terminal instance.resource
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Jun 15, 2021
1 parent fb50a7f commit c29d362
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { Schemas } from 'vs/base/common/network';
import { URI } from 'vs/base/common/uri';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { EditorInput } from 'vs/workbench/common/editor/editorInput';
Expand All @@ -25,7 +24,7 @@ export class TerminalEditorInput extends EditorInput {
}

get resource(): URI {
return URI.from({ scheme: Schemas.vscodeTerminal, path: this._terminalInstance!.instanceId.toString() });
return this.terminalInstance.resource;
}

constructor(
Expand Down

0 comments on commit c29d362

Please sign in to comment.