Closed
Description
From #59539
🔎 Search Terms
- paste imports
🕗 Version & Regression Information
5.7.0-dev.20241015
💻 Code
- 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() { }
- Create a second file
other.ts
:
import { window } from "vscode";
window.createWebviewPanel({});
- Enable paste with imports
- In
other.ts
copywindow.createWebviewPanel({});
and paste it into into the body ofactivate
🙁 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