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 () => {
243243 registerExtensionCommand ( 'insertNameOfCompletion' , async ( _ , { insertMode } = { } ) => {
244244 const editor = vscode . window . activeTextEditor
245245 if ( ! editor ) return
246- if ( ! getExtensionSetting ( 'experiments.enableInsertNameOfSuggestionFix' ) ) {
246+ if ( ! getExtensionSetting ( 'experiments.enableInsertNameOfSuggestionFix' ) && editor . document . languageId !== 'vue' ) {
247247 const result = await sendCommand < RequestResponseTypes [ 'getLastResolvedCompletion' ] > ( 'getLastResolvedCompletion' )
248248 if ( ! result ) return
249249 const position = editor . selection . active
@@ -288,4 +288,10 @@ export default () => {
288288 const { text } = response
289289 await vscode . env . clipboard . writeText ( text )
290290 } )
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+ } )
291297}
You can’t perform that action at this time.
0 commit comments