Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No paste edits returned #60246

Closed
mjbvz opened this issue Oct 16, 2024 · 0 comments · Fixed by #60339
Closed

No paste edits returned #60246

mjbvz opened this issue Oct 16, 2024 · 0 comments · Fixed by #60339
Assignees
Labels
Bug A bug in TypeScript

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Oct 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants