vscode安装后双击后任务栏的vscode图标一闪而过无法打开vscode

yan Gao 5 信誉分
2025-09-20T08:57:46.82+00:00

系统:win10专业版1909;操作系统内部版本18363.1556

vscode版本:1.98.2

问题:如标题所述

查看日志:在cmd执行code --verbose得到以下输出:

C:\Users\Administrator>code --status

Warning: The --status argument can only be used if Code is already running. Please run it again after Code has started.

C:\Users\Administrator>code

C:\Users\Administrator>code -v
1.98.2
ddc367ed5c8936efe395cffeec279b04ffd7db78
x64

C:\Users\Administrator>code --verbose

[main 2025-09-20T08:46:14.955Z] PolicyConfiguration#initialize
[main 2025-09-20T08:46:14.956Z] PolicyConfiguration#updatePolicyDefinitions [
  'update.mode',
  'update.channel',
  'update.enableWindowsBackgroundUpdates',
  'update.showReleaseNotes',
  'http.useLocalProxyConfiguration',
  'http.electronFetch',
  'http.proxy',
  'http.proxyStrictSSL',
  'http.proxyKerberosServicePrincipal',
  'http.noProxy',
  'http.proxyAuthorization',
  'http.proxySupport',
  'http.systemCertificates',
  'http.experimental.systemCertificatesV2',
  'http.fetchAdditionalSupport',
  'telemetry.telemetryLevel',
  'telemetry.enableTelemetry'
]
[main 2025-09-20T08:46:14.959Z] NativePolicyService#_updatePolicyDefinitions - Found 1 policy definitions
[main 2025-09-20T08:46:14.969Z] [File Watcher (node.js)] Request to start watching: c:\Users\Administrator\AppData\Roaming\Code\User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),c:\Users\Administrator\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2025-09-20T08:46:14.993Z] NativePolicyService#_onDidPolicyChange - Updated policy values: {}
[main 2025-09-20T08:46:14.993Z] PolicyConfiguration#update [ 'update.mode' ]
[main 2025-09-20T08:46:15.000Z] Starting VS Code
[main 2025-09-20T08:46:15.000Z] from: c:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\resources\app
[main 2025-09-20T08:46:15.000Z] args: {
  _: [],
  diff: false,
  merge: false,
  add: false,
  remove: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  'pre-release': false,
  'update-extensions': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'no-cached-data': false,
  'prof-v8-extensions': false,
  'disable-extensions': false,
  'disable-lcd-text': false,
  'disable-gpu': false,
  'disable-chromium-sandbox': false,
  sandbox: false,
  telemetry: false,
  debugRenderer: false,
  'enable-smoke-test-driver': false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'skip-welcome': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'use-inmemory-secretstorage': false,
  'disable-workspace-trust': false,
  'disable-crash-reporter': false,
  'crash-reporter-id': 'c55496ea-1980-4f70-9b38-d920bdb396f1',
  'skip-add-to-recently-opened': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  force: false,
  'do-not-sync': false,
  'do-not-include-pack-dependencies': false,
  trace: false,
  'trace-memory-infra': false,
  'preserve-env': false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  'disable-gpu-sandbox': false,
  '__enable-file-policy': false,
  'enable-coi': false,
  'no-proxy-server': false,
  'no-sandbox': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  'disable-dev-shm-usage': false,
  'profile-temp': false,
  logsPath: 'C:\\Users\\Administrator\\AppData\\Roaming\\Code\\logs\\20250920T164614'
}
[main 2025-09-20T08:46:15.001Z] Resolving machine identifier...
[main 2025-09-20T08:46:15.001Z] Resolved machine identifier: 5b4b63042832c5f2bf641eae4b602889c51deb25c4d536c087c65d9402b1f56b
[main 2025-09-20T08:46:15.001Z] Main->SharedProcess#connect
[main 2025-09-20T08:46:15.003Z] PolicyConfiguration#updatePolicyDefinitions [
  'terminal.integrated.automationProfile.linux',
  'terminal.integrated.automationProfile.osx',
  'terminal.integrated.automationProfile.windows',
  'terminal.integrated.profiles.windows',
  'terminal.integrated.profiles.osx',
  'terminal.integrated.profiles.linux',
  'terminal.integrated.useWslProfiles',
  'terminal.integrated.inheritEnv',
  'terminal.integrated.persistentSessionScrollback',
  'terminal.integrated.showLinkHover',
  'terminal.integrated.ignoreProcessNames'
]
[main 2025-09-20T08:46:15.004Z] PolicyConfiguration#updatePolicyDefinitions [
  'terminal.integrated.defaultProfile.linux',
  'terminal.integrated.defaultProfile.osx',
  'terminal.integrated.defaultProfile.windows'
]
[main 2025-09-20T08:46:15.006Z] PolicyConfiguration#update []
[main 2025-09-20T08:46:15.007Z] PolicyConfiguration#update []
[main 2025-09-20T08:46:15.031Z] [File Watcher (node.js)] Started watching: 'c:\Users\Administrator\AppData\Roaming\Code\User'
[main 2025-09-20T08:46:15.032Z] StorageMainService: creating application storage
[main 2025-09-20T08:46:15.039Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2025-09-20T08:46:15.039Z] lifecycle (main): phase changed (value: 2)
[main 2025-09-20T08:46:15.039Z] windowsManager#open
[main 2025-09-20T08:46:15.041Z] windowsManager#open pathsToOpen [
  {
    workspace: { id: '6e1902070f00af4ba0fff50068064a6b', uri: [Wr] },
    type: 2,
    exists: true
  }
]
[main 2025-09-20T08:46:15.042Z] windowsManager#doOpenFolderOrWorkspace {
  folderOrWorkspace: {
    workspace: { id: '6e1902070f00af4ba0fff50068064a6b', uri: [Wr] },
    type: 2,
    exists: true
  },
  filesToOpen: undefined
}
[main 2025-09-20T08:46:15.044Z] IPC Object URL: Registered new channel vscode:d9e72c69-3815-4682-9bbd-5e3c37bbba0c.
[main 2025-09-20T08:46:15.044Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 128, y: 0, width: 1024, height: 680 }
[main 2025-09-20T08:46:15.044Z] window#validateWindowState: single monitor working area { x: 0, y: 0, width: 1280, height: 680 }
[main 2025-09-20T08:46:15.044Z] window#ctor: using window state { mode: 0, x: 128, y: 0, width: 1024, height: 680 }
[main 2025-09-20T08:46:15.089Z] window#load: attempt to load window (id: 1)
[main 2025-09-20T08:46:15.091Z] TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Yl.getWindowSplash (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:35:91636)
    at oc.Bb (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:68:58157)
    at oc.load (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:68:57116)
    at ou.tb (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:69:29181)
    at async ou.sb (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:69:28543)
    at async ou.Z (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:69:15291)
    at async ou.open (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:69:11785)
    at async xu.startup (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:77:18691)
    at async q2.a (file:///C:/Users/Administrator/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/main.js:108:37609)
[main 2025-09-20T08:46:15.091Z] Lifecycle#kill()
[main 2025-09-20T08:46:15.092Z] Lifecycle#onWillShutdown.fire()
[main 2025-09-20T08:46:15.093Z] Lifecycle#onWillShutdown - begin 'instanceLockfile'
[main 2025-09-20T08:46:15.094Z] storageMainService#onWillShutdown()
[main 2025-09-20T08:46:15.094Z] Lifecycle#onWillShutdown - begin 'applicationStorage'
[main 2025-09-20T08:46:15.094Z] Lifecycle#onWillShutdown - begin 'extHostStarter'
[main 2025-09-20T08:46:15.094Z] Lifecycle#onWillShutdown - end 'extHostStarter'
[main 2025-09-20T08:46:15.094Z] StorageMainService: closed application storage
[main 2025-09-20T08:46:15.094Z] Lifecycle#onWillShutdown - end 'applicationStorage'
[main 2025-09-20T08:46:15.143Z] [File Watcher (node.js)] Started watching: 'c:\Users\Administrator\AppData\Roaming\Code\User\settings.json'
[main 2025-09-20T08:46:15.143Z] Lifecycle#onWillShutdown - end 'instanceLockfile'
[main 2025-09-20T08:46:15.147Z] [File Watcher (node.js)] Request to stop watching: c:\Users\Administrator\AppData\Roaming\Code\User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),c:\Users\Administrator\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2025-09-20T08:46:15.147Z] [File Watcher (node.js)] stopping file watcher (c:\Users\Administrator\AppData\Roaming\Code\User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>))
[main 2025-09-20T08:46:15.147Z] [File Watcher (node.js)] stopping file watcher (c:\Users\Administrator\AppData\Roaming\Code\User\settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>))
[main 2025-09-20T08:46:15.159Z] IPC Object URL: Removed channel vscode:d9e72c69-3815-4682-9bbd-5e3c37bbba0c.
[main 2025-09-20T08:46:15.159Z] Lifecycle#window.on('closed') - window ID 1
[main 2025-09-20T08:46:15.159Z] Lifecycle#app.on(window-all-closed)
[main 2025-09-20T08:46:15.159Z] Lifecycle#app.on(before-quit)
[main 2025-09-20T08:46:15.159Z] Lifecycle#onBeforeShutdown.fire()
[main 2025-09-20T08:46:15.160Z] [WindowsStateHandler] onBeforeShutdown {
  lastActiveWindow: undefined,
  lastPluginDevelopmentHostWindow: undefined,
  openedWindows: []
}
[main 2025-09-20T08:46:15.160Z] Lifecycle#app.on(will-quit) - begin
[main 2025-09-20T08:46:15.160Z] Lifecycle#app.on(will-quit) - after fireOnWillShutdown
[main 2025-09-20T08:46:15.160Z] Lifecycle#app.on(will-quit) - calling app.quit()
[main 2025-09-20T08:46:15.165Z] NativePolicyService#_onDidPolicyChange - Updated policy values: undefined
(node:16584) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=true to handle those exceptions properly.
(Use `Code --trace-deprecation ...` to show where the warning was created)

开发人员技术 | Visual Studio | 安装
0 个注释 无注释
{count} 票

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。