Closed floyd-li closed 2 weeks ago
Same issue here, I tried doing exactly that (run VSCode with admin privileges) and nothing, still happening 馃珷 waiting for a knight in shining armor to find a solution for this
I'm having the same issue and the problem is coming again...
estamos iguales caballeros apenas llego la actualizaci贸n de vs code dejo de funcionar y intente parchar el c贸digo y ni as铆 debe ser ya un error de estructura de c贸digo o no se..
Same issue here, I tried doing exactly that (run VSCode with admin privileges) and nothing, still happening 馃珷 waiting for a knight in shining armor to find a solution for this
I have faced the same problem even after it had been apparently fixed by #327 I did the following and the issue was fixed for me:
1) Open VS Code (Non-Administrator Mode).
2) Open the extension.js
file in the editor from %USERPROFILE%\.vscode\extensions\robbowen.synthwave-vscode-0.1.16\src
folder (for Windows).
3) Replace the contents of extension.js
with the code provided below:
Courtesy of vinayakkulkarni@bd8444b05d68aca4882b5827fdff5376884faa22 (#318)
4) Save the file and restart VS Code in Administrator Mode.
5) Press Ctrl+Shift+P
and use the Synthwave '84: Enable Neon Dreams
command.
6) Restart VS Code once again if prompted.
This should hopefully fix the issue in VS Code 1.95.0 (in Windows).
```javascript const path = require("path"); const fs = require("fs"); const vscode = require("vscode"); /** * @param {vscode.ExtensionContext} context */ function activate(context) { this.extensionName = "RobbOwen.synthwave-vscode"; this.cntx = context; const config = vscode.workspace.getConfiguration("synthwave84"); let disableGlow = config && config.disableGlow ? !!config.disableGlow : false; let brightness = parseFloat(config.brightness) > 1 ? 1 : parseFloat(config.brightness); brightness = brightness < 0 ? 0 : brightness; brightness = isNaN(brightness) ? 0.45 : brightness; const parsedBrightness = Math.floor(brightness * 255) .toString(16) .toUpperCase(); let neonBrightness = parsedBrightness; let disposable = vscode.commands.registerCommand( "synthwave84.enableNeon", function () { const isWin = /^win/.test(process.platform); const appDir = `${path.dirname(vscode.env.appRoot)}/app/out`; const base = appDir + (isWin ? "\\vs\\code" : "/vs/code"); const electronBase = isVSCodeBelowVersion("1.70.0") ? "electron-browser" : "electron-sandbox"; const htmlFileName = "workbench.html"; const htmlFile = base + (isWin ? "\\" + electronBase + "\\workbench\\" + htmlFileName : "/" + electronBase + "/workbench/" + htmlFileName); const templateFile = base + (isWin ? "\\" + electronBase + "\\workbench\\neondreams.js" : "/" + electronBase + "/workbench/neondreams.js"); try { // const version = context.globalState.get(`${context.extensionName}.version`); // generate production theme JS const chromeStyles = fs.readFileSync( __dirname + "/css/editor_chrome.css", "utf-8" ); const jsTemplate = fs.readFileSync( __dirname + "/js/theme_template.js", "utf-8" ); const themeWithGlow = jsTemplate.replace( /\[DISABLE_GLOW\]/g, disableGlow ); const themeWithChrome = themeWithGlow.replace( /\[CHROME_STYLES\]/g, chromeStyles ); const finalTheme = themeWithChrome.replace( /\[NEON_BRIGHTNESS\]/g, neonBrightness ); fs.writeFileSync(templateFile, finalTheme, "utf-8"); // modify workbench html const html = fs.readFileSync(htmlFile, "utf-8"); // check if the tag is already there const isEnabled = html.includes("neondreams.js"); if (!isEnabled) { // delete synthwave script tag if there let output = html.replace( /^.*(\n` ); output += "
Seems the latest vscode breaks something....
You may need to run VS code with admin privileges in order to enable Neon Dreams.