File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ export default () => {
243
243
registerExtensionCommand ( 'insertNameOfCompletion' , async ( _ , { insertMode } = { } ) => {
244
244
const editor = vscode . window . activeTextEditor
245
245
if ( ! editor ) return
246
- if ( ! getExtensionSetting ( 'experiments.enableInsertNameOfSuggestionFix' ) ) {
246
+ if ( ! getExtensionSetting ( 'experiments.enableInsertNameOfSuggestionFix' ) && editor . document . languageId !== 'vue' ) {
247
247
const result = await sendCommand < RequestResponseTypes [ 'getLastResolvedCompletion' ] > ( 'getLastResolvedCompletion' )
248
248
if ( ! result ) return
249
249
const position = editor . selection . active
@@ -288,4 +288,10 @@ export default () => {
288
288
const { text } = response
289
289
await vscode . env . clipboard . writeText ( text )
290
290
} )
291
+
292
+ registerExtensionCommand ( 'pasteCodeWithImports' , async ( ) => {
293
+ const clipboard = await vscode . env . clipboard . readText ( )
294
+ const lines = clipboard . split ( '\n' )
295
+ const lastImportLineIndex = lines . findIndex ( line => line !== 'import' )
296
+ } )
291
297
}
You can’t perform that action at this time.
0 commit comments