Skip to content

No paste edits returned #60246

Closed
Closed
@mjbvz

Description

@mjbvz

From #59539

🔎 Search Terms

  • paste imports

🕗 Version & Regression Information

5.7.0-dev.20241015

💻 Code

  1. Using a VS Code starter extension created with yo code
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import { log } from 'console';
import * as vscode from 'vscode';

// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {

	// Use the console to output diagnostic information (console.log) and errors (console.error)
	// This line of code will only be executed once when your extension is activated
	console.log('Congratulations, your extension "test-ext" is now active!');



}

// This method is called when your extension is deactivated
export function deactivate() { }
  1. Create a second file other.ts:
import { window } from "vscode";

window.createWebviewPanel({});
  1. Enable paste with imports
  2. In other.ts copy window.createWebviewPanel({}); and paste it into into the body of activate

🙁 Actual behavior

No edits returned from getPasteEdits:

    {"seq":0,"type":"response","command":"getPasteEdits","request_seq":34,"success":true,"performanceData":{"updateGraphDurationMs":6.14574999999968},"body":{"edits":[],"fixId":"providePostPasteEdits"}}

Here's the full log: tsserver.log

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions