You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'use strict';// The module 'vscode' contains the VS Code extensibility API// Import the module and reference it with the alias vscode in your code belowimport*asvscodefrom'vscode';// this method is called when your extension is activated// your extension is activated the very first time the command is executedexportfunctionactivate(context: vscode.ExtensionContext){vscode.languages.registerRenameProvider('plaintext',{provideRenameEdits: ()=>{returnPromise.reject(newError('Only locals can be renamed'));}});}// this method is called when your extension is deactivatedexportfunctiondeactivate(){}
I tested it and it didn't work. I was using the latest insider on latest Electron. This crashed on my so I went back and now the strings case is working.
@Tyriar@bpasero FYI. There seems to be more broken with the new Electron build.
Extension code:
package.json
I would expect the message that I pass in the Error of the rejected promise.
The text was updated successfully, but these errors were encountered: