-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phase 1 Partial - Colorization + share (#3679)
* add syntax files, add languages, grammars, to package.json copy over stuff to play with later got the grammars working with the other stuff commented out cleaned up, not tested remove stuff I don't think we really need to have a unique ID, we should tell people to only install our extension remove unnecessary method update our syntaxes from what we do in VS test pipeline update cgmanifest temporarly force cg test different version use .3 version update notice, it includes textmate reference manually add kitware/cmake reference to NOTICE fix trigger fix pipeline name get repo make sure we checkout the repos powershell inline reference variables correctly testing for differences, CHANGE LATER updating textmate see if we're getting the right git diff test with explicit path update dates write output try to properly access variables use embeddedbot put emails and username in variables switch when I update config orgurl add logging update auth update docs testing out PR tool remove 'description' option add console.log statements for testing map system token run index.ts for both grammars and quickinfo, put paths into variables, condition based on parameters fix trigger access variables correctly access variables correctly only run job if one of the share steps is enabled fix job name test without prefix remove difference remove snippets keyword until we actually add this remove stray miscopy remove powershell * small update * ignore tools directory when packaging * don't build the tools directory when building and testing the extension * exclude tools for webpack? * revert webpack * try webpack fix again * try another fix * revert * we need to remote the NOTICE for testing earlier so yarn doesn't fail * rename notices.txt to get around yarn issue * update changelog
- Loading branch information
1 parent
31de14d
commit 25698e0
Showing
19 changed files
with
7,609 additions
and
2,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/component-detection-manifest.json", | ||
"Registrations": [ | ||
{ | ||
"Component": { | ||
"Type": "git", | ||
"git": { | ||
"repositoryUrl": "https://github.com/darthwalsh/vs.language.cmake", | ||
"commitHash": "25a6749b2dd233233be0ab0ebb1d04d41cef6387" | ||
} | ||
} | ||
}, | ||
{ | ||
"Component": { | ||
"Type": "git", | ||
"git": { | ||
"repositoryUrl": "https://github.com/Kitware/CMake", | ||
"commitHash": "5e984bb35232116a54de7db39788cb162ca7c263" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# This pipeline is designed to foster sharing our text mate grammars. | ||
|
||
parameters: | ||
- name: shareGrammars | ||
type: boolean | ||
default: false | ||
values: | ||
- true | ||
- false | ||
- name: shareQuickInfo | ||
type: boolean | ||
default: false | ||
values: | ||
- true | ||
- false | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
clean: true | ||
- repository: VS-Platform | ||
type: git | ||
name: VS-Platform | ||
|
||
# Every time we merge into main, we want to check for changes to code that is shared in other repos and that is synced other places. | ||
trigger: | ||
branches: | ||
include: | ||
- main | ||
pr: none | ||
|
||
pool: | ||
name: "AzurePipelines-EO" | ||
demands: | ||
- ImageOverride -equals AzurePipelinesWindows2022compliant | ||
|
||
name: $(Date:yyMMdd)$(Rev:rrr) | ||
|
||
jobs: | ||
- job: Copy_Code_Create_PRs | ||
displayName: Copy shared code and create PRs if changes | ||
condition: or(${{ parameters.shareGrammars }}, ${{ parameters.shareQuickInfo }}) | ||
steps: | ||
- checkout: self | ||
- checkout: VS-Platform | ||
- task: UseNode@1 | ||
displayName: "Use Node 16.18" | ||
inputs: | ||
version: "16.18" | ||
- script: npm install | ||
displayName: "npm install" | ||
workingDirectory: $(Build.SourcesDirectory)/vscode-cmake-tools/tools/pr-creator | ||
- script: npm run build | ||
displayName: "npm run build" | ||
workingDirectory: $(Build.SourcesDirectory)/vscode-cmake-tools/tools/pr-creator | ||
- script: node $(Build.SourcesDirectory)/vscode-cmake-tools/tools/pr-creator/dist/index.js --source-file-location $(grammarSourcePath) --target-repo $(grammarTargetRepo) --target-file-location $(grammarTargetPath) | ||
displayName: Grammar - Copy files and Create PR | ||
workingDirectory: $(Build.SourcesDirectory)/$(grammarTargetRepo) | ||
env: | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
condition: ${{ parameters.shareGrammars }} | ||
- script: node $(Build.SourcesDirectory)/vscode-cmake-tools/tools/pr-creator/dist/index.js --source-file-location $(quickInfoSourcePath) --target-repo $(quickInfoTargetRepo) --target-file-location $(quickInfoTargetPath) | ||
displayName: QuickInfo - Copy files and Create PR | ||
workingDirectory: $(Build.SourcesDirectory)/$(quickInfoTargetRepo) | ||
env: | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
condition: ${{ parameters.shareQuickInfo }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,16 @@ | |
"tools", | ||
"build", | ||
"c++", | ||
"native" | ||
"native", | ||
"syntaxes" | ||
], | ||
"engines": { | ||
"vscode": "^1.63.0" | ||
}, | ||
"categories": [ | ||
"Other", | ||
"Debuggers" | ||
"Debuggers", | ||
"Programming Languages" | ||
], | ||
"galleryBanner": { | ||
"color": "#13578c", | ||
|
@@ -59,10 +61,30 @@ | |
"workspaceContains:*/CMakeLists.txt", | ||
"workspaceContains:*/*/CMakeLists.txt", | ||
"workspaceContains:*/*/*/CMakeLists.txt", | ||
"workspaceContains:.vscode/cmake-kits.json" | ||
"workspaceContains:.vscode/cmake-kits.json", | ||
"onLanguage:cmake" | ||
], | ||
"main": "./dist/main", | ||
"contributes": { | ||
"languages": [ | ||
{ | ||
"id": "cmake", | ||
"extensions": [ | ||
".cmake" | ||
], | ||
"filenames": ["CMakeLists.txt"], | ||
"aliases": [ | ||
"CMake" | ||
] | ||
}, | ||
{ | ||
"id": "cmake-cache", | ||
"filenames": ["CMakeCache.txt"], | ||
"aliases": [ | ||
"CMake Cache" | ||
] | ||
} | ||
], | ||
"commands": [ | ||
{ | ||
"command": "cmake.openCMakePresets", | ||
|
@@ -827,6 +849,18 @@ | |
"category": "CMake" | ||
} | ||
], | ||
"grammars": [ | ||
{ | ||
"language": "cmake", | ||
"scopeName": "source.cmake", | ||
"path": "./syntaxes/CMake.tmLanguage" | ||
}, | ||
{ | ||
"language": "cmake-cache", | ||
"scopeName": "source.cmakecache", | ||
"path": "./syntaxes/CMakeCache.tmLanguage" | ||
} | ||
], | ||
"taskDefinitions": [ | ||
{ | ||
"type": "cmake", | ||
|
@@ -3748,9 +3782,6 @@ | |
"xml2js": "^0.5.0", | ||
"tsconfig-paths*/json5": "^1.0.2", | ||
"minimatch": "^3.0.5" | ||
}, | ||
"extensionPack": [ | ||
"twxs.cmake" | ||
], | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.