Create Textmate extension problem
-
Good morning all,
I tried to create an extension so that VS 2019 can support a programming language called CpcdosC +. There is already a functional extension but for Visual Studio Code.
My problem is that despite having applied everything to the letter of the tutorial from Microsoft
https://youtu.be/5LaVcOP2X4gBy replacing the Language file in the Grammars folder with my json file
https://github.com/SPinti-Software/vscode-cpcdos/blob/master/syntaxes/cpc.tmLanguage.json
When I test the project and add a cpcdosc + (.cpc) file in Visual Studio (the Visual Studio working test), the code does not color.
Sorry for the English I am French.
Thank you for the attention you will bring me ! -
Good morning all,
I tried to create an extension so that VS 2019 can support a programming language called CpcdosC +. There is already a functional extension but for Visual Studio Code.
My problem is that despite having applied everything to the letter of the tutorial from Microsoft
https://youtu.be/5LaVcOP2X4gBy replacing the Language file in the Grammars folder with my json file
https://github.com/SPinti-Software/vscode-cpcdos/blob/master/syntaxes/cpc.tmLanguage.json
When I test the project and add a cpcdosc + (.cpc) file in Visual Studio (the Visual Studio working test), the code does not color.
Sorry for the English I am French.
Thank you for the attention you will bring me !You seem to be missing the
fileTypes
element in your JSON file:{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "CpcdosC+",
"fileTypes": [
"cpc"
],Without that, I suspect Visual Studio doesn't know to associate your grammar with the file.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer