Git Product home page Git Product logo

Comments (3)

nikitavoloboev avatar nikitavoloboev commented on August 16, 2024
image

Deno even fails to ignore the lints when it shouldn't so I can't solve above with this either. 😿

from deno.

nikitavoloboev avatar nikitavoloboev commented on August 16, 2024

Ideally what I want is not to have the deno.enable: true inside my .code-workspace I open.

But I want VSCode Deno extension to use this:

image

This should be enough to not have Deno extension breaking down.

image

from deno.

CalvinWilkinson avatar CalvinWilkinson commented on August 16, 2024

I, as well, am having some issues with vscode workspaces. I have a regular deno project so no bun is involved. But I do have the setup where I have a subdirectory with deno code that I want to be linted, formatted, and enabled for deno scripts, and for the rest of the project, I do not want to use deno.

The issues that I am having are related to manually formatting my deno scripts which are typescript code.
When I use the VSCode key combination 'Shift + Alt + F' to format my deno scripts, I get the following message box:
image

I only get this when I have my project opened as a vscode workspace. If I open the project in a standard way at the root of the project/repo, formatting works fine, I get no message box, and I also do not get any strange enable vs disable behavior.

Note

I am running deno version v1.43.1 and the extension version is v3.37.0

At this point, it seems obvious to me that the issue is related to deno support with VSCode workspaces.

I have a docusaurus website where I am using deno for dev stuff and cicd related things. This is why I have the workspaces.

The project is open source named VelaptorDocs and you can see what I have set up there.

Here is my vscode workspace

{
	"folders": [
		{
			"name": "VelaptorDocs",
			"path": ".",
		},
		{
			"name": "SampleProjects",
			"path": "./SampleProjects",
		},
		{
			"name": "CICD",
			"path": ".github/cicd",
		}
	],
	"settings": {
        "testing.followRunningTest": true,
        "testing.gutterEnabled": false,
        "testing.openTesting": "neverOpen",
		"typescript.referencesCodeLens.enabled": true,
		"powershell.cwd": "VelaptorDocs",
	}
}

I have 2 `setting.json` files. One is in the standard location at the root `.vscode` directory shown below

{
	"deno.enable": false,
	"cSpell.words": [
		"cicd",
		"clsx",
		"defaultdocumentation",
		"Infima",
		"Kinson",
		"KXVA",
		"Multiauthor",
		"Playmegames",
		"preinstall",
		"Reguler",
		"Structs",
		"tailwindcss",
		"Texinfo",
		"typecheck",
		"Velaptor"
	],
	"files.exclude": {
		".docusaurus/": true,
		"node_modules": true,
		"VelaptorDocs.code-workspace": true,
		"build/": true,
		".github/cicd/": true,
		".config": false,
		"RepoSrc/": true,
		"*.lock": true,
		"SampleProjects": true,
	},
	"search.exclude": {
		"**/node_modules": true,
		"**/bower_components": true,
		"**/*.code-search": true,
		"build/": true
	},
	"[typescriptreact]": {
		"editor.defaultFormatter": "vscode.typescript-language-features",
		"editor.insertSpaces": false,
		"editor.tabSize": 3,
	},
	"[typescript]": {
		"editor.defaultFormatter": "vscode.typescript-language-features",
		"editor.insertSpaces": false,
		"editor.tabSize": 4,
	},
	"[yaml]": {
		"editor.insertSpaces": true,
		"editor.tabSize": 2,
	},
	"[jsonc]": {
		"editor.insertSpaces": false,
		"editor.tabSize": 4,
	},
	"[mdx]": {
		"editor.insertSpaces": true,
		"editor.tabSize": 4,
	},
	"editor.detectIndentation": false,
	"[github-actions-workflow]": {
		"editor.tabSize": 2,
		"editor.insertSpaces": true
	}
}

The other 'settings.json' file is in the .github/cicd/.vscode/ directory. File is shown below:

{
	"deno.enable": true,
	"deno.config": "../deno.json",
	"cSpell.words": [
		"cicd",
		"defaultdocumentation",
		"docu",
		"Kinson",
		"Velaptor"
	],
}

I have tried simple projects with minimum files just to try and get it working. I have also tried disabling all extensions except for the deno extension to see if that would help.

from deno.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.