Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

language specific snippets broken by extension #38

Open
bam opened this issue Sep 9, 2019 · 2 comments
Open

language specific snippets broken by extension #38

bam opened this issue Sep 9, 2019 · 2 comments

Comments

@bam
Copy link

bam commented Sep 9, 2019

I've created project located language specific snippet file:
.vscode/c.code-snippets
with such snippet:

{
	"Test JS snippet": {
		"scope": "javascript",
		"prefix": "testJsSnippet",
		"body": [
			"test"
		],
		"description": "JS test"
	}
}

and after installing of the sublime-babel ext there are 2 JS languages in VSCode:
Javascript (Babel) (javascript)
and
Javascript React (Babel) (javascriptreact)

Then I create a JS file a.js. Language mode is Javascript (Babel). And when I type snippet's prefix I don't see suggestion. But when I change scope in snippets file to javascriptreact it starts to work. Despite I have a plain js file with language mode of Javascript (Babel).
I've tried to reload VSCode without extensions and snippets work as expected with the scope property.
Seems there is a bug in affect of the extension on language mode...

@bam bam closed this as completed Sep 9, 2019
@bam
Copy link
Author

bam commented Sep 9, 2019

found wrong global file mapping on my side

@bam
Copy link
Author

bam commented Sep 9, 2019

no, it doesn't work. Mapping doesn't affect…

@bam bam reopened this Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant