Useful or not, from you.
vscode The operand of a 'delete' operator must be optional

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- Please search existing issues to avoid creating duplicates. --> <!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. --> Version: 1.47.3 (system setup) Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e Date: 2020-07-23T13:12:49.994Z Electron: 7.3.2 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18362

"nexus": "^0.26.0-next.3",

Steps to Reproduce:

  1. Create file graphql.ts
  2. In file type following code
    import { schema } from 'nexus'

    t.field('createAddress', {
      type: 'Address',
      nullable: false,
      args: {
        userId: schema.idArg({ nullable: false}), 
        email: schema.stringArg({ nullable: false}), 
        address_line: schema.stringArg({ nullable: false}),
        city: schema.stringArg({ nullable: false}), 
        postcode: schema.stringArg({ nullable: false}), 
        country: schema.stringArg({ nullable: false}), 
        card_name: schema.stringArg({ nullable: false}),
      },
      resolve: async (_, args, ctx) => {

         // remove the id and email from args
        delete args.userId; // VSCode issues error here
        delete args.email; // VSCode issues error here

        const address = await ctx.client.address.create({
          data: {
            user: {
              connect: {
                id: ctx.req.userId,
              },
            },
            ...args,
          },
        })

        // add the email to the return object
        return address;

      }
    })

<!-- Launch with code --disable-extensions to check. --> Does this issue occur when all extensions are disabled?: No

That's a useful answer
Without any help

This error doesn't exist in 3.9.6.

As you've mentioned - this doesn't happen with extension disabled. What extensions do you have? Do you have JavaScript and TypeScript Nightly?