mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
SQL Operations Studio Public Preview 1 (0.23) release source code
This commit is contained in:
1
extensions/ruby/.vscodeignore
Normal file
1
extensions/ruby/.vscodeignore
Normal file
@@ -0,0 +1 @@
|
||||
test/**
|
||||
22
extensions/ruby/OSSREADME.json
Normal file
22
extensions/ruby/OSSREADME.json
Normal file
@@ -0,0 +1,22 @@
|
||||
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
|
||||
[{
|
||||
"name": "textmate/ruby.tmbundle",
|
||||
"version": "0.0.0",
|
||||
"license": "TextMate Bundle License",
|
||||
"repositoryURL": "https://github.com/textmate/ruby.tmbundle",
|
||||
"licenseDetail": [
|
||||
"Copyright (c) textmate-ruby.tmbundle project authors",
|
||||
"",
|
||||
"If not otherwise specified (see below), files in this folder fall under the following license: ",
|
||||
"",
|
||||
"Permission to copy, use, modify, sell and distribute this",
|
||||
"software is granted. This software is provided \"as is\" without",
|
||||
"express or implied warranty, and with no claim as to its",
|
||||
"suitability for any purpose.",
|
||||
"",
|
||||
"An exception is made for files in readable text which contain their own license information, ",
|
||||
"or files where an accompanying file exists (in the same directory) with a \"-license\" suffix added ",
|
||||
"to the base-name name of the original file, and an extension of txt, html, or similar. For example ",
|
||||
"\"tidy\" is accompanied by \"tidy-license.txt\"."
|
||||
]
|
||||
}]
|
||||
29
extensions/ruby/language-configuration.json
Normal file
29
extensions/ruby/language-configuration.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "#",
|
||||
"blockComment": [ "=begin", "=end" ]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""],
|
||||
["'", "'"]
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""],
|
||||
["'", "'"]
|
||||
],
|
||||
"indentationRules": {
|
||||
"increaseIndentPattern": "^\\s*((begin|class|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while)|(.*\\sdo\\b))\\b[^\\{;]*$",
|
||||
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)"
|
||||
}
|
||||
}
|
||||
24
extensions/ruby/package.json
Normal file
24
extensions/ruby/package.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "ruby",
|
||||
"version": "0.2.1",
|
||||
"publisher": "vscode",
|
||||
"engines": { "vscode": "*" },
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js textmate/ruby.tmbundle Syntaxes/Ruby.plist ./syntaxes/ruby.tmLanguage.json"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "ruby",
|
||||
"extensions": [ ".rb", ".rbx", ".rjs", ".gemspec", ".rake", ".ru", ".erb" ],
|
||||
"filenames": [ "rakefile", "gemfile", "guardfile", "podfile", "capfile" ],
|
||||
"aliases": [ "Ruby", "rb" ],
|
||||
"firstLine": "^#!/.*\\bruby\\b",
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "ruby",
|
||||
"scopeName": "source.ruby",
|
||||
"path": "./syntaxes/ruby.tmLanguage.json"
|
||||
}]
|
||||
}
|
||||
}
|
||||
2814
extensions/ruby/syntaxes/ruby.tmLanguage.json
Normal file
2814
extensions/ruby/syntaxes/ruby.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load Diff
46
extensions/ruby/test/colorize-fixtures/test.rb
Normal file
46
extensions/ruby/test/colorize-fixtures/test.rb
Normal file
@@ -0,0 +1,46 @@
|
||||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::ARM::Scheduler
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
class SchedulerManagementClient < MsRestAzure::AzureServiceClient
|
||||
include Azure::ARM::Scheduler::Models
|
||||
include MsRestAzure
|
||||
|
||||
# @return job_collections
|
||||
attr_reader :job_collections
|
||||
|
||||
#
|
||||
# Creates initializes a new instance of the SchedulerManagementClient class.
|
||||
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
||||
# @param base_url [String] the base URI of the service.
|
||||
# @param options [Array] filters to be applied to the HTTP requests.
|
||||
#
|
||||
def initialize(credentials, base_url = nil, options = nil)
|
||||
super(credentials, options)
|
||||
@base_url = base_url || 'https://management.azure.com'
|
||||
|
||||
fail ArgumentError, 'credentials is nil' if credentials.nil?
|
||||
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
||||
@credentials = credentials
|
||||
|
||||
@job_collections = JobCollections.new(self)
|
||||
@jobs = Jobs.new(self)
|
||||
@api_version = '2016-01-01'
|
||||
@long_running_operation_retry_timeout = 30
|
||||
@generate_client_request_id = true
|
||||
if MacOS.version >= :mavericks
|
||||
version = `#{MAVERICKS_PKG_PATH}/usr/bin/clang --version`
|
||||
else
|
||||
version = `/usr/bin/clang --version`
|
||||
end
|
||||
version = version[/clang-(\d+\.\d+\.\d+(\.\d+)?)/, 1] || "0"
|
||||
version < latest_version
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
2840
extensions/ruby/test/colorize-results/test_rb.json
Normal file
2840
extensions/ruby/test/colorize-results/test_rb.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user